BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / java / #17923同步于 2011/4/14
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Java机器人发帖

求教~!MAVEN相关

chaizhaohang
2011/4/14镜像同步8 回复
用MAVEN建立SA,用MVN INSTALL的时候出现下面的错误: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Tutorial [INFO] Tutorial :: File SU [INFO] Tutorial :: SA [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Tutorial 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ parent --- [INFO] Installing E:\cc\pom.xml to C:\Documents and Settings\Administrator\.m2\r epository\org\apache\servicemix\tutorial\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT .pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Tutorial :: File SU 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://ws.zones.apache.org/repository2/bouncycastle/bcprov-jdk13/13 2/bcprov-jdk13-132.pom Downloading: http://repo1.maven.org/maven2/bouncycastle/bcprov-jdk13/132/bcprov- jdk13-132.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Tutorial .......................................... SUCCESS [0.125s] [INFO] Tutorial :: File SU ............................... FAILURE [2.047s] [INFO] Tutorial :: SA .................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.719s [INFO] Finished at: Thu Apr 14 13:14:28 CST 2011 [INFO] Final Memory: 5M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project tutorial-file-su: Could not resolve de pendencies for project org.apache.servicemix.tooling:tutorial-file-su:jbi-servic e-unit:1.0-SNAPSHOT: Failed to collect dependencies for [org.apache.servicemix:s ervicemix-file:jar:3.2.3 (test)]: Failed to read artifact descriptor for bouncyc astle:bcprov-jdk13:jar:132: Could not transfer artifact bouncycastle:bcprov-jdk1 3:pom:132 from/to java.net (http://download.java.net/maven/1): No connector avai lable to access repository java.net (http://download.java.net/maven/1) of type l egacy using the available 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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :tutorial-file-su 这是我的SU的POM.XML: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>parent</artifactId> <groupId>org.apache.servicemix.tutorial</groupId> <version>1.0-SNAPSHOT</version> </parent> <groupId>org.apache.servicemix.tooling</groupId> <artifactId>tutorial-file-su</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jbi-service-unit</packaging> <name>Tutorial :: File SU</name> <url>http://www.myorganization.org</url> <properties> <servicemix-version>3.2.3</servicemix-version> </properties> <dependencies> <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-file</artifactId> <version>${servicemix-version}</version> <scope>test</scope> </dependency> </dependencies> <repositories> <repository> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>apache</id> <name>Apache Repository</name> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url> </repository> <repository> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> <id>apache.snapshots</id> <name>Apache Snapshots Repository</name> <url>http://people.apache.org/repo/m2-snapshot-repository</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>apache</id> <name>Apache Repository</name> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url> </pluginRepository> <pluginRepository> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> <id>apache.snapshots</id> <name>Apache Snapshots Repository</name> <url>http://people.apache.org/repo/m2-snapshot-repository</url> </pluginRepository> </pluginRepositories> <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.servicemix.tooling</groupId> <artifactId>jbi-maven-plugin</artifactId> <version>${servicemix-version}</version> <extensions>true</extensions> </plugin> </plugins> </build> </project> GOOGLE了一下错误,貌似是缺少了什么东西,怎么修改啊,完全迷茫中,求教大牛~
订阅后,新回复会通过你的通知中心匿名送达。
8 条回复
chaizhaohang机器人#1 · 2011/4/14
【 在 chaizhaohang 的大作中提到: 】 : 用MAVEN建立SA,用MVN INSTALL的时候出现下面的错误: : [INFO] Scanning for projects... : [INFO] ------------------------------------------------------------------------ : ................... SU的问题是缺少了一个JAR,安装后就好了。 http://servicemix.396122.n5.nabble.com/Problems-deploying-a-JMS-su-td3249641.html Hi, I think you should add the jar file to your local repository (probably because none of the maven repositories your are pointing to do not contain such version). For instance, you can get the jar and pom from here. and then install it: mvn install:install-file -Dfile=bcprov-jdk13-132.jar -DgroupId=bouncycastle -DartifactId=bcprov-jdk13 -Dversion=132 -Dpackaging=jar -DgeneratePom=true Afterwards it should work fine. 刚解决了SU的问题,现在SA又有问题了。。。 LOG如下: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Tutorial [INFO] Tutorial :: SU [INFO] Tutorial :: SA [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Tutorial 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ parent --- [INFO] Installing E:\ff\pom.xml to C:\Documents and Settings\Administrator\.m2\r epository\org\apache\servicemix\tutorial\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT .pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Tutorial :: SU 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ tutorial-f ile-su --- [debug] execute contextualize [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e . build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- jbi-maven-plugin:3.2.3:generate-depends-file (default-generate-depend s-file) @ tutorial-file-su --- [INFO] Created: E:\ff\tutorial-file-su\target\classes\META-INF\maven\dependencie s.properties [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ tutorial-file -su --- [INFO] No sources to compile [INFO] [INFO] --- jbi-maven-plugin:3.2.3:generate-jbi-service-unit-descriptor (default- generate-jbi-service-unit-descriptor) @ tutorial-file-su --- [INFO] Generating jbi.xml [INFO] generated : consumes [] provides [] [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ tu torial-file-su --- [debug] execute contextualize [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e . build is platform dependent! [INFO] skip non existing resourceDirectory E:\ff\tutorial-file-su\src\test\resou rces [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ tutor ial-file-su --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.8:test (default-test) @ tutorial-file-su --- [INFO] No tests to run. [INFO] Surefire report directory: E:\ff\tutorial-file-su\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- There are no tests to run. Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ tutorial-file-su --- [INFO] Building jar: E:\ff\tutorial-file-su\target\tutorial-file-su-1.0-SNAPSHOT .jar [INFO] [INFO] --- jbi-maven-plugin:3.2.3:jbi-service-unit (default-jbi-service-unit) @ tutorial-file-su --- Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/opensaml/ opensaml/1.1/opensaml-1.1.pom Downloading: http://repo1.maven.org/maven2/opensaml/opensaml/1.1/opensaml-1.1.po m [WARNING] Missing POM for opensaml:opensaml:jar:1.1 Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apach e/woden/woden/1.0.0M6/woden-1.0.0M6.pom Downloading: http://repo1.maven.org/maven2/org/apache/woden/woden/1.0.0M6/woden- 1.0.0M6.pom [WARNING] Missing POM for org.apache.woden:woden:jar:1.0.0M6 [INFO] Generating service unit E:\ff\tutorial-file-su\target\tutorial-file-su-1. 0-SNAPSHOT.zip [INFO] Building jar: E:\ff\tutorial-file-su\target\tutorial-file-su-1.0-SNAPSHOT .zip [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ tutorial-file- su --- [INFO] Installing E:\ff\tutorial-file-su\target\tutorial-file-su-1.0-SNAPSHOT.ja r to C:\Documents and Settings\Administrator\.m2\repository\org\apache\servicemi x\tooling\tutorial-file-su\1.0-SNAPSHOT\tutorial-file-su-1.0-SNAPSHOT.jar [INFO] Installing E:\ff\tutorial-file-su\pom.xml to C:\Documents and Settings\Ad ministrator\.m2\repository\org\apache\servicemix\tooling\tutorial-file-su\1.0-SN APSHOT\tutorial-file-su-1.0-SNAPSHOT.pom [INFO] Installing E:\ff\tutorial-file-su\target\tutorial-file-su-1.0-SNAPSHOT.zi p to C:\Documents and Settings\Administrator\.m2\repository\org\apache\servicemi x\tooling\tutorial-file-su\1.0-SNAPSHOT\tutorial-file-su-1.0-SNAPSHOT.zip [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Tutorial :: SA 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SN APSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Tutorial .......................................... SUCCESS [0.125s] [INFO] Tutorial :: SU .................................... SUCCESS [4.094s] [INFO] Tutorial :: SA .................................... FAILURE [0.015s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.797s [INFO] Finished at: Thu Apr 14 17:28:12 CST 2011 [INFO] Final Memory: 6M/16M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project tutorial-sa: Could not resolve depende ncies for project org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly :1.0-SNAPSHOT: Failure to find org.apache.servicemix.tutorial:tutorial-file-su:j ar:1.0-SNAPSHOT in http://people.apache.org/repo/m2-snapshot-repository was cach ed in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :tutorial-sa 欲哭无泪啊。。。[ema1]
wks机器人#2 · 2011/4/14
http://people.apache.org/repo/m2-snapshot-repository/ 上面说很多项目都搬家了。搬到https://repository.apache.org/index.html https://repository.apache.org/content/repositories/snapshots/org/apache/servicemix/ 这里并没有tutorial什么的包。 请问lz在做什么tutorial?是不是很长时间以前的?教程的主人已经把相关资源移动到别的地方了?
chaizhaohang机器人#3 · 2011/4/14
【 在 wks 的大作中提到: 】 : http://people.apache.org/repo/m2-snapshot-repository/ : 上面说很多项目都搬家了。搬到https://repository.apache.org/index.html : https://repository.apache.org/content/repositories/snapshots/org/apache/servicemix/ : ................... Downloading: http://repo1.maven.org/maven2/opensaml/opensaml/1.1/opensaml-1.1.po m [WARNING] Missing POM for opensaml:opensaml:jar:1.1 Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apach e/woden/woden/1.0.0M6/woden-1.0.0M6.pom Downloading: http://repo1.maven.org/maven2/org/apache/woden/woden/1.0.0M6/woden- 1.0.0M6.pom [WARNING] Missing POM for org.apache.woden:woden:jar:1.0.0M6 虽然有上面两个WARNING,但是我差了本地库,是有那两个POM的。见图。
wks机器人#4 · 2011/4/15
文件在org/opensaml/opensaml/1.1里面,说明,groupId=org.opensaml,artifactId=opensaml,version=1.1 但是WARNING上说,找不到opensaml:opensaml:jar:1.1,它要找到groupid叫opensaml,没有org.。 【 在 chaizhaohang 的大作中提到: 】 : : http://people.apache.org/repo/m2-snapshot-repository/ : : 上面说很多项目都搬家了。搬到https://repository.apache.org/index.html : : https://repository.apache.org/content/repositories/snapshots/org/apache/servicemix/ : ...................
chaizhaohang机器人#5 · 2011/4/15
【 在 wks 的大作中提到: 】 : 文件在org/opensaml/opensaml/1.1里面,说明,groupId=org.opensaml,artifactId=opensaml,version=1.1 : 但是WARNING上说,找不到opensaml:opensaml:jar:1.1,它要找到groupid叫opensaml,没有org.。 : 【 在 chaizhaohang 的大作中提到: 】 : ................... 查了一下,那个东西是有的:
chaizhaohang机器人#6 · 2011/4/15
【 在 chaizhaohang 的大作中提到: 】 : : 文件在org/opensaml/opensaml/1.1里面,说明,groupId=org.opensaml,artifactId=opensaml,version=1.1 : : 但是WARNING上说,找不到opensaml:opensaml:jar:1.1,它要找到groupid叫opensaml,没有org.。 : : 【 在 chaizhaohang 的大作中提到: 】 : ................... it now seems the versions are ok, but the groupid is inconsistent. In one pom, it seems to be: org.apache.servicemix.tutorial and in another: org.apache.servicemix.tooling The groupId / artifactId / version from the SU pom must be exactly the same as the one from the dependency in the SA pom. On Wed, Feb 20, 2008 at 11:28 AM, Bhupinder Singh <[hidden email]> wrote: > > Still same problem... > I can tell u in detail what i am doing > > In starting When creating projects from archetypes, Maven's archetype plugin > is unable to locate e.g. servicemix-service-unit or > servicemix-service-assembly > Then i created a file "archetype-catalog.xml" with the following content in > ~/.m2 > <?xml version="1.0" encoding="utf-8"?> > <archetype-catalog> > <archetypes> > <archetype> > <groupId>org.apache.servicemix.tooling</groupId> > <artifactId>servicemix-service-unit</artifactId> > <version>3.2.1</version> > <repository>http://repo1.maven.org/maven2</repository> > <description>ServiceMix archetype for creating a simple SU</description> > </archetype> > <archetype> > <groupId>org.apache.servicemix.tooling</groupId> > <artifactId>servicemix-service-assembly</artifactId> > <version>3.2.1</version> > <repository>http://repo1.maven.org/maven2</repository> > <description>ServiceMix archetype for creating a simple SA</description> > </archetype> > </archetypes> > </archetype-catalog> > > Then i call maven with extra parameter "-DarchetypeCatalog=local" to point > to the local archetype configuration. > > C:\Apache Software Foundation\projects\tutorial>mvn archetype:create > -DarchetypeArtifactId=servicemix-service-unit > -DarchetypeGroupId=org.apache.servicemix.tooling > -DartifactId=tutorial-file-su -DarchetypeCatalog=local > > after running this command it is asking for following parameters > > Define value for groupId: : org.apache.servicemix.tooling > Define value for version: : 1.0-SNAPSHOT (here i mentioned version number) > Define value for package: : jar > after that SU created successfully > > same for service assembly > C:\Apache Software Foundation\projects\tutorial>mvn -e archetype:create > -DarchetypeArtifactId=servicemix-service-assembly > -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=tutorial-sa > -DarchetypeC > atalog=local > > Define value for groupId: : org.apache.servicemix.tooling > Define value for version: : 1.0-SNAPSHOT (here i mentioned version number) > Define value for package: : jar > > service assembly created sucessfully. > After that i modified the pom.xml files for defining dependencies.. > > Now i am running > mvn install and facing the same prob as mentioned below. > > C:\Apache Software Foundation\projects\tutorial>mvn -e archetype:create > -DarchetypeArtifactId=servicemix > -service-assembly -DarchetypeGroupId=org.apache.servicemix.tooling > -DartifactId=tutorial-sa -DarchetypeC > atalog=local > + Error stacktraces are turned on. > > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Tutorial > [INFO] Tutorial::File SU > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Tutorial > [INFO] task-segment: [archetype:create] (aggregator-style) > [INFO] > ------------------------------------------------------------------------ > [INFO] Preparing archetype:create > [INFO] No goals needed for project - skipping > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLo > aderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] [archetype:create] > [INFO] Archetype > [org.apache.servicemix.tooling:servicemix-service-assembly:3.2.1 -> > http://repo1.maven. > org/maven2] found in catalog local > Define value for groupId: : org.apache.servicemix.tooling > Define value for version: : 1.0-SNAPSHOT > Define value for package: : jar > Confirm properties configuration: > groupId: org.apache.servicemix.tooling > artifactId: tutorial-sa > version: 1.0-SNAPSHOT > package: jar > Y: : y > [INFO] > ---------------------------------------------------------------------------- > [INFO] Using following parameters for creating OldArchetype: > servicemix-service-assembly:3.2.1 > [INFO] > ---------------------------------------------------------------------------- > [INFO] Parameter: groupId, Value: org.apache.servicemix.tooling > [INFO] Parameter: packageName, Value: jar > [INFO] Parameter: basedir, Value: C:\Apache Software > Foundation\projects\tutorial > [INFO] Parameter: package, Value: jar > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] Parameter: artifactId, Value: tutorial-sa > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-res > ources/pom.xml [line 93,column 18] : ${servicemix-version} is not a valid > reference. > [INFO] ********************* End of debug info from resources from generated > POM *********************** > > [INFO] OldArchetype created in dir: C:\Apache Software > Foundation\projects\tutorial\tutorial-sa > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 44 seconds > [INFO] Finished at: Wed Feb 20 15:35:46 IST 2008 > [INFO] Final Memory: 8M/15M > [INFO] > ------------------------------------------------------------------------ > > C:\Apache Software Foundation\projects\tutorial>mvn install > > > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Tutorial > [INFO] Tutorial::File SU > [INFO] Tutorial::SA > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Tutorial > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [site:attach-descriptor] > [INFO] [install:install] > [INFO] Installing C:\Apache Software Foundation\projects\tutorial\pom.xml to > C:\Documents and Settings\b > husing\.m2\repository\org\apache\servicemix\tutorial\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT.pom > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Tutorial::File SU > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: > http://people.apache.org/repo/m2-ibiblio-rsync-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom > > Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom > Downloading: > http://people.apache.org/repo/m2-ibiblio-rsync-repository/xml-security/xmlsec/1.3.0/xmlsec- > 1.3.0.pom > Downloading: > http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom > [INFO] [jbi:generate-depends-file] > [INFO] Created: C:\Apache Software > Foundation\projects\tutorial\tutorial-file-su\target\classes\META-INF > \maven\dependencies.properties > [INFO] [compiler:compile] > [INFO] No sources to compile > [INFO] [jbi:generate-jbi-service-unit-descriptor] > [INFO] Generating jbi.xml > [INFO] generated : consumes [] provides [] > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] No sources to compile > [INFO] [surefire:test] > [INFO] No tests to run. > [INFO] [jar:jar] > [INFO] Building jar: C:\Apache Software > Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi > le-su-1.0-SNAPSHOT.jar > > [INFO] [jbi:jbi-service-unit] > [INFO] Resolving org.apache.servicemix:servicemix-file:jar:3.2.1:compile > [INFO] Resolving org.apache.servicemix:servicemix-shared:jar:3.2.1:compile > [INFO] Resolving org.apache.servicemix:servicemix-common:jar:3.2.1:compile > [INFO] Resolving wsdl4j:wsdl4j:jar:1.6.1:compile > [INFO] Resolving org.apache.servicemix:servicemix-soap:jar:3.2.1:compile > [INFO] Resolving wss4j:wss4j:jar:1.5.1:compile > [INFO] Resolving bouncycastle:bcprov-jdk14:jar:136:compile > [INFO] Resolving org.opensaml:opensaml:jar:1.1:compile > [INFO] Resolving xml-security:xmlsec:jar:1.3.0:compile > [INFO] Resolving org.apache.servicemix:servicemix-soap2:jar:3.2.1:compile > [INFO] Resolving org.apache.ws.commons.schema:XmlSchema:jar:1.2:compile > [INFO] Resolving org.apache.woden:woden:jar:1.0.0M6:compile > [INFO] Resolving org.apache.ws.commons:XmlSchema:jar:1.1:compile > [WARNING] Attempting to build MavenProject instance for Artifact > (org.apache.ws.commons:XmlSchema:1.1) o > f type: jar; constructing POM artifact instead. > [INFO] Resolving stax:stax-api:jar:1.0:compile > [INFO] Resolving xerces:xercesImpl:jar:2.8.0:compile > [INFO] Resolving xml-apis:xml-apis:jar:1.3.03:compile > [INFO] Resolving commons-logging:commons-logging:jar:1.1:compile > [INFO] Resolving log4j:log4j:jar:1.2.12:compile > [INFO] Generating service unit C:\Apache Software > Foundation\projects\tutorial\tutorial-file-su\target\t > utorial-file-su-1.0-SNAPSHOT.zip > > [INFO] Building jar: C:\Apache Software > Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi > le-su-1.0-SNAPSHOT.zip > > [INFO] [install:install] > [INFO] Installing C:\Apache Software > Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file- > su-1.0-SNAPSHOT.jar to C:\Documents and > Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tu > torial-file-su\1.0-SNAPSHOT\tutorial-file-su-1.0-SNAPSHOT.jar > > [INFO] Installing C:\Apache Software > Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file- > su-1.0-SNAPSHOT.zip to C:\Documents and > Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tu > torial-file-su\1.0-SNAPSHOT\tutorial-file-su-1.0-SNAPSHOT.zip > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Tutorial::SA > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > Downloading: > http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria > l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.pom > Downloading: > http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria > l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.jar > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.apache.servicemix.tutorial > -DartifactId=tutorial-file-su -D > version=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=org.apache.servicemix.tutorial > -DartifactId=tutorial-file-su -Dve > rsion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] > -DrepositoryId=[id] > > Path to dependency: > 1) > org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0-SNAPSHOT > > 2) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT > > ---------- > 1 required artifact is missing. > > for artifact: > > org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0-SNAPSHOT > > > from the specified remote repositories: > central (http://repo1.maven.org/maven2), > apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), > apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository) > > > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 16 seconds > [INFO] Finished at: Wed Feb 20 15:39:48 IST 2008 > > [INFO] Final Memory: 19M/34M > [INFO] > ------------------------------------------------------------------------ > > > Please tell me where i am making a mistake > --------------------------------------------------------- > > > > gnodet wrote: > > > > Please try again with 1.0-SNAPSHOT and not 1.0 > > > > On Wed, Feb 20, 2008 at 10:25 AM, Bhupinder Singh > > <[hidden email]> wrote: > >> > >> I changed the version number of SU and SA's pom 1.0.Even then it is > >> showing > >> same error. > >> > >> > >> > >> > >> It sems there is an inconsistency between the versions numbers used > >> for the file SU. > >> The file SU pom seems to specify 3.2.1 (the servicemix version) and > >> the version referenced in the SA pom (1.0-SNAPSHOT). Please fix the > >> SU and SA so that the version is 1.0-SNAPSHOT. > >> > >> > >> [INFO] Scanning for projects... > >> [INFO] Reactor build order: > >> [INFO] Tutorial > >> [INFO] Tutorial :: File SU > >> [INFO] Tutorial :: SA > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Building Tutorial > >> [INFO] task-segment: [install] > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] [site:attach-descriptor] > >> [INFO] [install:install] > >> [INFO] Installing C:\Apache Software > >> Foundation\projects\tutorial\pom.xml to > >> C:\Documents and Settings\b > >> > >> husing\.m2\repository\org\apache\servicemix\tutorial\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT.pom > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Building Tutorial :: File SU > >> [INFO] task-segment: [install] > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] [resources:resources] > >> [INFO] Using default encoding to copy filtered resources. > >> Downloading: > >> > >> http://people.apache.org/repo/m2-ibiblio-rsync-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom > >> > >> Downloading: > >> http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom > >> Downloading: > >> > >> http://people.apache.org/repo/m2-ibiblio-rsync-repository/xml-security/xmlsec/1.3.0/xmlsec- > >> 1.3.0.pom > >> Downloading: > >> http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom > >> > >> [INFO] [jbi:generate-depends-file] > >> [INFO] Created: C:\Apache Software > >> Foundation\projects\tutorial\tutorial-file-su\target\classes\META-INF > >> \maven\dependencies.properties > >> [INFO] [compiler:compile] > >> [INFO] No sources to compile > >> [INFO] [jbi:generate-jbi-service-unit-descriptor] > >> [INFO] Generating jbi.xml > >> [INFO] generated : consumes [] provides [] > >> [INFO] [resources:testResources] > >> [INFO] Using default encoding to copy filtered resources. > >> [INFO] [compiler:testCompile] > >> [INFO] No sources to compile > >> [INFO] [surefire:test] > >> [INFO] No tests to run. > >> [INFO] [jar:jar] > >> [INFO] Building jar: C:\Apache Software > >> Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi > >> le-su-1.0.jar > >> > >> [INFO] [jbi:jbi-service-unit] > >> [INFO] Resolving org.apache.servicemix:servicemix-file:jar:3.2.1:compile > >> [INFO] Resolving > >> org.apache.servicemix:servicemix-shared:jar:3.2.1:compile > >> [INFO] Resolving > >> org.apache.servicemix:servicemix-common:jar:3.2.1:compile > >> [INFO] Resolving wsdl4j:wsdl4j:jar:1.6.1:compile > >> [INFO] Resolving org.apache.servicemix:servicemix-soap:jar:3.2.1:compile > >> [INFO] Resolving wss4j:wss4j:jar:1.5.1:compile > >> [INFO] Resolving bouncycastle:bcprov-jdk14:jar:136:compile > >> [INFO] Resolving org.opensaml:opensaml:jar:1.1:compile > >> [INFO] Resolving xml-security:xmlsec:jar:1.3.0:compile > >> [INFO] Resolving > >> org.apache.servicemix:servicemix-soap2:jar:3.2.1:compile > >> [INFO] Resolving org.apache.ws.commons.schema:XmlSchema:jar:1.2:compile > >> [INFO] Resolving org.apache.woden:woden:jar:1.0.0M6:compile > >> [INFO] Resolving org.apache.ws.commons:XmlSchema:jar:1.1:compile > >> [WARNING] Attempting to build MavenProject instance for Artifact > >> (org.apache.ws.commons:XmlSchema:1.1) o > >> f type: jar; constructing POM artifact instead. > >> [INFO] Resolving stax:stax-api:jar:1.0:compile > >> [INFO] Resolving xerces:xercesImpl:jar:2.8.0:compile > >> [INFO] Resolving xml-apis:xml-apis:jar:1.3.03:compile > >> > >> [INFO] Resolving commons-logging:commons-logging:jar:1.1:compile > >> [INFO] Resolving log4j:log4j:jar:1.2.12:compile > >> [INFO] Generating service unit C:\Apache Software > >> Foundation\projects\tutorial\tutorial-file-su\target\t > >> utorial-file-su-1.0.zip > >> > >> [INFO] Building jar: C:\Apache Software > >> Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi > >> le-su-1.0.zip > >> > >> [INFO] [install:install] > >> [INFO] Installing C:\Apache Software > >> Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file- > >> su-1.0.jar to C:\Documents and > >> > >> Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tutorial-fi > >> le-su\1.0\tutorial-file-su-1.0.jar > >> > >> [INFO] Installing C:\Apache Software > >> Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file- > >> su-1.0.zip to C:\Documents and > >> > >> Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tutorial-fi > >> le-su\1.0\tutorial-file-su-1.0.zip > >> > >> > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Building Tutorial :: SA > >> [INFO] task-segment: [install] > >> [INFO] > >> ------------------------------------------------------------------------ > >> Downloading: > >> > >> http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria > >> l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.pom > >> Downloading: > >> > >> http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria > >> l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.jar > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] BUILD ERROR > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Failed to resolve artifact. > >> > >> Missing: > >> ---------- > >> 1) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT > >> > >> Try downloading the file manually from the project website. > >> > >> Then, install it using the command: > >> mvn install:install-file -DgroupId=org.apache.servicemix.tutorial > >> -DartifactId=tutorial-file-su -D > >> version=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file > >> > >> Alternatively, if you host your own repository you can deploy the file > >> there: > >> mvn deploy:deploy-file -DgroupId=org.apache.servicemix.tutorial > >> -DartifactId=tutorial-file-su -Dve > >> rsion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] > >> -DrepositoryId=[id] > >> > >> Path to dependency: > >> 1) > >> org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0 > >> > >> 2) > >> org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT > >> > >> ---------- > >> 1 required artifact is missing. > >> > >> for artifact: > >> org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0 > >> > >> > >> from the specified remote repositories: > >> central (http://repo1.maven.org/maven2), > >> apache.snapshots > >> (http://people.apache.org/repo/m2-snapshot-repository), > >> apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository) > >> > >> > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] For more information, run Maven with the -e switch > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: 16 seconds > >> [INFO] Finished at: Wed Feb 20 14:47:45 IST 2008 > >> > >> [INFO] Final Memory: 19M/34M > >> [INFO] > >> ------------------------------------------------------------------------ > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Getting-failed-to-resolve-artifact-error-when-installing-project-component-using-Maven-tp15582805s12049p15585237.html > >> > >> > >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >> > >> > > > > > > > > -- > > Cheers, > > Guillaume Nodet > > ------------------------ > > Blog: http://gnodet.blogspot.com/ > > > > > > -- > View this message in context: http://www.nabble.com/Getting-failed-to-resolve-artifact-error-when-installing-project-component-using-Maven-tp15582805s12049p15586191.html > > > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
chaizhaohang机器人#7 · 2011/4/15
【 在 chaizhaohang 的大作中提到: 】 : 用MAVEN建立SA,用MVN INSTALL的时候出现下面的错误: : [INFO] Scanning for projects... : [INFO] ------------------------------------------------------------------------ : ................... 最终的原因是SA中的groupId与SU中groupId不一致造成的。 归根结底还是对MAVEN不熟悉造成的。看来空闲的时候还是要多多学习啊! 上一张令人欣慰的图:
chaizhaohang机器人#8 · 2011/4/15
感谢WKS~!