• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

new to maven, error in mvn war:war

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am learning axis2, I found a tutorial, it said download , unzip and run :

I unziped the book.zip,

and run :

$ mvn install war:war

But I got this error :


C:\maj\practices\axis2\How2EmbedAxis2InWeb\book>mvn install war:war
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.apache.axis2.examples:axis2-book:jar:1.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-
plugin is missing. @ line 117, column 21
[WARNING] 'repositories.repository.layout' for ibiblio uses the unsupported valu
e 'legacy', artifact resolution might fail. @ line 153, column 21
[WARNING] 'repositories.repository.layout' for apache uses the unsupported value
'legacy', artifact resolution might fail. @ line 159, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-pl
ugin/maven-metadata.xml
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plu
gin/maven-metadata.xml (649 B at 0.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-pl
ugin/2.1.1/maven-war-plugin-2.1.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plu
gin/2.1.1/maven-war-plugin-2.1.1.pom (7 KB at 19.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin
s/18/maven-plugins-18.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins
/18/maven-plugins-18.pom (13 KB at 30.1 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/16/mave
n-parent-16.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/16/maven
-parent-16.pom (23 KB at 58.1 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/apache/7/apache-7.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/apache/7/apache-7.pom (15 K
B at 33.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-pl
ugin/2.1.1/maven-war-plugin-2.1.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plu
gin/2.1.1/maven-war-plugin-2.1.1.jar (76 KB at 151.3 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Book Example 1.1
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
ces-plugin/2.4.3/maven-resources-plugin-2.4.3.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resourc
es-plugin/2.4.3/maven-resources-plugin-2.4.3.pom (6 KB at 14.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
ces-plugin/2.4.3/maven-resources-plugin-2.4.3.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resourc
es-plugin/2.4.3/maven-resources-plugin-2.4.3.jar (24 KB at 61.0 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil
er-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compile
r-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom (8 KB at 12.7 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil
er-plugin/2.3.2/maven-compiler-plugin-2.3.2.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compile
r-plugin/2.3.2/maven-compiler-plugin-2.3.2.jar (29 KB at 83.1 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefi
re-plugin/2.7.2/maven-surefire-plugin-2.7.2.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefir
e-plugin/2.7.2/maven-surefire-plugin-2.7.2.pom (10 KB at 20.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.
7.2/surefire-2.7.2.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.7
.2/surefire-2.7.2.pom (11 KB at 24.2 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/18/mave
n-parent-18.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/18/maven
-parent-18.pom (24 KB at 53.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/apache/8/apache-8.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/apache/8/apache-8.pom (14 K
B at 32.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefi
re-plugin/2.7.2/maven-surefire-plugin-2.7.2.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefir
e-plugin/2.7.2/maven-surefire-plugin-2.7.2.jar (29 KB at 62.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-pl
ugin/2.3.1/maven-jar-plugin-2.3.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plu
gin/2.3.1/maven-jar-plugin-2.3.1.pom (6 KB at 13.7 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-pl
ugin/2.3.1/maven-jar-plugin-2.3.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plu
gin/2.3.1/maven-jar-plugin-2.3.1.jar (32 KB at 64.7 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.3.1/maven-install-plugin-2.3.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install
-plugin/2.3.1/maven-install-plugin-2.3.1.pom (5 KB at 11.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.3.1/maven-install-plugin-2.3.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install
-plugin/2.3.1/maven-install-plugin-2.3.1.jar (23 KB at 52.7 KB/sec)
Downloading: http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.3/servlet
-api-2.3.pom
Downloaded: http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.3/servlet-
api-2.3.pom (156 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/axis2/axis2-kernel/1.0/axis2-kernel-1
.0.pom
Downloading: http://repo1.maven.org/maven2/axis2/axis2-codegen/1.0/axis2-codegen
-1.0.pom
Downloading: http://repo1.maven.org/maven2/axis2/axis2-adb/1.0/axis2-adb-1.0.pom

Downloading: http://repo1.maven.org/maven2/ws-commons/axiom-api/1.0/axiom-api-1.
0.pom
Downloaded: http://repo1.maven.org/maven2/ws-commons/axiom-api/1.0/axiom-api-1.0
.pom (347 B at 0.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/ws-commons/axiom-impl/1.0/axiom-impl-
1.0.pom
Downloaded: http://repo1.maven.org/maven2/ws-commons/axiom-impl/1.0/axiom-impl-1
.0.pom (348 B at 0.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/ws/commons/XmlSchema/1.0.2
/XmlSchema-1.0.2.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/ws/commons/XmlSchema/1.0.2/
XmlSchema-1.0.2.pom (11 KB at 23.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/stax/stax-api/1.0/stax-api-1.0.pom
Downloaded: http://repo1.maven.org/maven2/stax/stax-api/1.0/stax-api-1.0.pom (18
0 B at 0.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/ws-commons/neethi/1.0.1/neethi-1.0.1.
pom
Downloaded: http://repo1.maven.org/maven2/ws-commons/neethi/1.0.1/neethi-1.0.1.p
om (346 B at 1.0 KB/sec)
Downloading: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4
/commons-logging-1.0.4.pom
Downloaded: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/
commons-logging-1.0.4.pom (6 KB at 14.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/commons-httpclient/commons-httpclient
/3.0/commons-httpclient-3.0.pom
Downloaded: http://repo1.maven.org/maven2/commons-httpclient/commons-httpclient/
3.0/commons-httpclient-3.0.pom (8 KB at 19.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
Downloaded: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom (998
B at 2.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3
/commons-logging-1.0.3.pom
Downloaded: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/
commons-logging-1.0.3.pom (866 B at 2.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/commons-codec/commons-codec/1.2/commo
ns-codec-1.2.pom
Downloaded: http://repo1.maven.org/maven2/commons-codec/commons-codec/1.2/common
s-codec-1.2.pom (4 KB at 9.2 KB/sec)
Downloading: http://repo1.maven.org/maven2/commons-codec/commons-codec/1.3/commo
ns-codec-1.3.pom
Downloaded: http://repo1.maven.org/maven2/commons-codec/commons-codec/1.3/common
s-codec-1.3.pom (6 KB at 15.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/woodstox/wstx/asl-2.9.3/wstx-asl-2.9.
3.pom
Downloading: http://repo1.maven.org/maven2/wsdl4j/wsdl4j/1.5.2/wsdl4j-1.5.2.pom
Downloaded: http://repo1.maven.org/maven2/wsdl4j/wsdl4j/1.5.2/wsdl4j-1.5.2.pom (
380 B at 0.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/geronimo-spec/geronimo-spec-javamail/
1.3.1-rc5/geronimo-spec-javamail-1.3.1-rc5.pom
Downloaded: http://repo1.maven.org/maven2/geronimo-spec/geronimo-spec-javamail/1
.3.1-rc5/geronimo-spec-javamail-1.3.1-rc5.pom (173 B at 0.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/geronimo-spec/geronimo-spec-activatio
n/1.0.2-rc4/geronimo-spec-activation-1.0.2-rc4.pom
Downloaded: http://repo1.maven.org/maven2/geronimo-spec/geronimo-spec-activation
/1.0.2-rc4/geronimo-spec-activation-1.0.2-rc4.pom (175 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/xmlbeans/xbean/2.1.0/xbean-2.1.0.pom
Downloaded: http://repo1.maven.org/maven2/xmlbeans/xbean/2.1.0/xbean-2.1.0.pom (
147 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta
-8.pom
Downloaded: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-
8.pom (7 KB at 15.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pom
Downloaded: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pom (7 K
B at 19.2 KB/sec)
Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0
.b2.pom
Downloaded: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.
b2.pom (3 KB at 5.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.pom
Downloaded: http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.pom (2 KB at 2.
9 KB/sec)
Downloading: http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.2/xmlParserA
PIs-2.6.2.pom
Downloaded: http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.2/xmlParserAP
Is-2.6.2.pom (153 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.6.2/xercesImpl-2.
6.2.pom
Downloaded: http://repo1.maven.org/maven2/xerces/xercesImpl/2.6.2/xercesImpl-2.6
.2.pom (150 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/xom/xom/1.0b3/xom-1.0b3.pom
Downloaded: http://repo1.maven.org/maven2/xom/xom/1.0b3/xom-1.0b3.pom (2 KB at 2
.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserA
PIs-2.6.1.pom
Downloaded: http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAP
Is-2.6.1.pom (153 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.
2.1.pom
Downloaded: http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2
.1.pom (150 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.p
om
Downloaded: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.po
m (150 B at 0.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/xalan/xalan/2.6.0/xalan-2.6.0.pom
Downloaded: http://repo1.maven.org/maven2/xalan/xalan/2.6.0/xalan-2.6.0.pom (491
B at 1.2 KB/sec)
Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.
2.pom
Downloaded: http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2
.pom (346 B at 0.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/ccil/cowan/tagsoup/tagsoup/0.9.7/
tagsoup-0.9.7.pom
Downloaded: http://repo1.maven.org/maven2/org/ccil/cowan/tagsoup/tagsoup/0.9.7/t
agsoup-0.9.7.pom (681 B at 1.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/backport-util-concurrent/backport-uti
l-concurrent/2.1/backport-util-concurrent-2.1.pom
Downloaded: http://repo1.maven.org/maven2/backport-util-concurrent/backport-util
-concurrent/2.1/backport-util-concurrent-2.1.pom (909 B at 2.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/annogen/annogen/0.1.0/annogen-0.1.0.p
om
Downloaded: http://repo1.maven.org/maven2/annogen/annogen/0.1.0/annogen-0.1.0.po
m (148 B at 0.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.375s
[INFO] Finished at: Sat Jul 23 10:25:35 EDT 2011
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project axis2-book: Could not resolve dependen
cies for project org.apache.axis2.examples:axis2-book:jar:1.1: Failed to collect
dependencies for [javax.servlet:servlet-api:jar:2.3 (provided), axis2:axis2-ker
nel:jar:1.0 (compile), axis2:axis2-codegen:jar:1.0 (compile), axis2:axis2-adb:ja
r:1.0 (compile), ws-commons:axiom-api:jar:1.0 (compile), ws-commons:axiom-impl:j
ar:1.0 (compile), org.apache.ws.commons:XmlSchema:jar:1.0.2 (compile), ws-common
s:neethi:jar:1.0.1 (compile), commons-logging:commons-logging:jar:1.0.4 (compile
), commons-httpclient:commons-httpclient:jar:3.0 (compile), commons-codec:common
s-codec:jar:1.3 (compile), woodstox:wstx:jar:asl-2.9.3 (compile), stax:stax-api:
jar:1.0 (compile), wsdl4j:wsdl4j:jar:1.5.2 (compile), geronimo-spec:geronimo-spe
c-javamail:jar:1.3.1-rc5 (compile), geronimo-spec:geronimo-spec-activation:jar:1
.0.2-rc4 (compile), xmlbeans:xbean:jar:2.1.0 (compile), jaxen:jaxen:jar:1.1-beta
-8 (compile), backport-util-concurrent:backport-util-concurrent:jar:2.1 (compile
), annogen:annogen:jar:0.1.0 (compile)]: Failed to read artifact descriptor for
axis2:axis2-kernel:jar:1.0: Could not transfer artifact axis2:axis2-kernel:pom:1
.0 from/to ibiblio (http://ibiblio.org/maven/): No connector available to access
repository ibiblio (http://ibiblio.org/maven/) of type legacy using the availab
le factories WagonRepositoryConnectorFactory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
C:\maj\practices\axis2\How2EmbedAxis2InWeb\book>

Can you please help me. your help is appreciated.
Thanks
Majid

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I strongly suspect that the build requires Maven 1 and you used Maven 2. This must be a really old is this tutorial.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Following is README

This example shows how to use Axis2 in a servlet container. You must
have Maven 2.x installed to build this example. To build type:

$ mvn install war:war

Rename the resultant war as axis2.war and drop it into any servlet engine.
The WSDL file for the service should be viewable at:

http://yourhost:port/axis2/services/BookService?wsdl



And Following is maven details.

Apache Maven 3.0.3 (r1075438; 2011-02-28 22:31:09+0500)
Maven home: D:\tools\apache-maven-3.0.3\bin\..
Java version: 1.6.0_17, vendor: Sun Microsystems Inc.
Java home: D:\tools\jdk6.17\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"


I suspect repository is moved away.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the repository location is hard-coded in the pom.xml you might try commenting it out. Maven Central is no longer at ibiblio, its now at http://central.maven.org/maven2
 
Popeye has his spinach. I have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic