On Saturday 06 January 2007 04:12, Vincent Massol wrote:
-----Original
Message-----
From: Marc Lijour [mailto:marc@lijour.net]
Sent: samedi 6 janvier 2007 02:45
To: xwiki-dev(a)objectweb.org
Subject: Re: [xwiki-dev] Maven/build help
On Friday 05 January 2007 20:20, Vincent Massol wrote:
My bet is that it's going to work
automagically tomorrow... ;-)
Maven2 checks for updates for snapshots once every day, unless you
ask it.
I bet you had run a build earlier today.
Try running with -U (it updates snapshots).
$ mvn -U
[INFO] Scanning for projects...
[INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates
from xwiki
Downloading:
http://maven.xwiki.org/com/xpn/xwiki/xwiki/1.0-SNAPSHOT/xwiki-1.0-
20070105.163136-2.pom
4K downloaded
(...)
Ok. I got something new. But I still have a problem with mvn install:
(...)
Downloading:
http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-
SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar
[WARNING] Unable to get resource from repository xwiki
(
http://maven.xwiki.org)
(...)
It seems the package is not in the repository yet.
It is there:
http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/
x wiki-build-xar-handlers-1.0-20070105.153209-1.jar
The snapshot version is resolved by Maven against the latest timestamp (the
information comes from
http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/
m aven-metadata.xml).
So that's very strange. Have you tried removing all the xpn directory in
your local repository just in case (in ~user/.m2/repository/com)?
Could you please attach the full log to an email?
Thanks
-Vincent
Hi Vincent,
it looks like we are getting closer. But there is still a step to go.
Here is the full log.
$ tree ~/.m2/repository/com/xpn/xwiki
/home/marc/.m2/repository/com/xpn/xwiki
|-- xwiki
| `-- 1.0-SNAPSHOT
| |-- maven-metadata-xwiki.xml
| |-- maven-metadata-xwiki.xml.sha1
| |-- xwiki-1.0-20061207.105834-1.pom
| |-- xwiki-1.0-20061207.105834-1.pom.sha1
| |-- xwiki-1.0-20070105.163136-2.pom
| |-- xwiki-1.0-20070105.163136-2.pom.sha1
| `-- xwiki-1.0-SNAPSHOT.pom
|-- xwiki-build-xar-handlers
| `-- 1.0-SNAPSHOT
| `-- maven-metadata-xwiki.xml
|-- xwiki-core
| `-- 1.0-SNAPSHOT
| |-- maven-metadata-xwiki.xml
| |-- maven-metadata-xwiki.xml.sha1
| |-- maven-metadata-xwiki.xml.tmp.sha1.tmp
| |-- xwiki-core-1.0-20061207.110025-1.jar
| |-- xwiki-core-1.0-20061207.110025-1.jar.sha1
| |-- xwiki-core-1.0-20061207.110025-1.pom
| |-- xwiki-core-1.0-20061207.110025-1.pom.sha1
| |-- xwiki-core-1.0-SNAPSHOT.jar
| `-- xwiki-core-1.0-SNAPSHOT.pom
|-- xwiki-root
| `-- 1.0-SNAPSHOT
| |-- maven-metadata-xwiki.xml
| |-- maven-metadata-xwiki.xml.sha1
| |-- maven-metadata-xwiki.xml.tmp.sha1.tmp
| |-- xwiki-root-1.0-20061207.110025-1.pom
| |-- xwiki-root-1.0-20061207.110025-1.pom.sha1
| `-- xwiki-root-1.0-SNAPSHOT.pom
|-- xwiki-web
| `-- 1.0-SNAPSHOT
| |-- maven-metadata-xwiki.xml
| |-- maven-metadata-xwiki.xml.sha1
| |-- maven-metadata-xwiki.xml.tmp.sha1.tmp
| |-- xwiki-web-1.0-20061207.110025-1.pom
| |-- xwiki-web-1.0-20061207.110025-1.pom.sha1
| `-- xwiki-web-1.0-SNAPSHOT.pom
`-- xwiki-web-standard
|-- 1.0-20061207.110025-1
| |-- xwiki-web-standard-1.0-20061207.110025-1.pom
| `-- xwiki-web-standard-1.0-20061207.110025-1.pom.sha1
`-- 1.0-SNAPSHOT
|-- maven-metadata-xwiki.xml
|-- maven-metadata-xwiki.xml.sha1
|-- maven-metadata-xwiki.xml.tmp.sha1.tmp
|-- xwiki-web-standard-1.0-20061207.110025-1.pom
|-- xwiki-web-standard-1.0-20061207.110025-1.pom.sha1
|-- xwiki-web-standard-1.0-20061207.110025-1.war
|-- xwiki-web-standard-1.0-20061207.110025-1.war.sha1
|-- xwiki-web-standard-1.0-SNAPSHOT.pom
`-- xwiki-web-standard-1.0-SNAPSHOT.war
13 directories, 40 files
$ mvn -U
[INFO] Scanning for projects...
[INFO] snapshot com.xpn.xwiki:xwiki:1.0-SNAPSHOT: checking for updates from
xwiki
[INFO] Reactor build order:
[INFO] XWiki Tools
[INFO] XWiki Tools - Build
[INFO] XWiki Tools - Build - Shared Verification Resources
[INFO] XWiki Tools - Build - XAR Handlers
[INFO] XWiki Root
[INFO] XWiki Core
[INFO] XWiki Tool - Packager
[INFO] XWiki Web
[INFO] XWiki Web - Standard
[INFO] XWiki Web - Exo
[INFO] XWiki Wikis
[INFO] XWiki Wikis - Default
[INFO] XWiki Plugins
[INFO] XWiki Plugins - Adwords
[INFO] XWiki Plugins - Alexa
[INFO] XWiki Modules
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] You must specify at least one goal. Try 'install'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Sat Jan 06 09:01:33 EST 2007
[INFO] Final Memory: 2M/7M
[INFO] ------------------------------------------------------------------------
$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] XWiki Tools
[INFO] XWiki Tools - Build
[INFO] XWiki Tools - Build - Shared Verification Resources
[INFO] XWiki Tools - Build - XAR Handlers
[INFO] XWiki Root
[INFO] XWiki Core
[INFO] XWiki Tool - Packager
[INFO] XWiki Web
[INFO] XWiki Web - Standard
[INFO] XWiki Web - Exo
[INFO] XWiki Wikis
[INFO] XWiki Wikis - Default
[INFO] XWiki Plugins
[INFO] XWiki Plugins - Adwords
[INFO] XWiki Plugins - Alexa
[INFO] XWiki Modules
[INFO] snapshot com.xpn.xwiki:xwiki-build-xar-handlers:1.0-SNAPSHOT: checking
for updates from xwiki
Downloading:
http://maven.xwiki.org/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/…
2K downloaded
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Tools
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin…
981b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin…
8K downloaded
Downloading:
http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.0.0beta12/jetty-6.0…
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/mortbay/jetty/project/6.0.0beta12/project…
7K downloaded
Downloading:
http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.0.0beta12…
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-ap…
902b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting/2.…
738b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.2/maven-2.0.2.pom
12K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.2/maven-a…
765b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0/maven-set…
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.0.0beta12/jetty-6.0…
463K downloaded
Downloading:
http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0.0beta12…
[WARNING] Unable to get resource from repository codehaus
(
http://dist.codehaus.org)
Downloading:
http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.0.0beta12…
157K downloaded
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/pom.xml
to
/home/marc/.m2/repository/com/xpn/xwiki/xwiki-tools/1.0-SNAPSHOT/xwiki-tools-1.0-SNAPSHOT.pom
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Tools - Build
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO]
Installing /home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/pom.xml
to
/home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-tools/1.0-SNAPSHOT/xwiki-build-tools-1.0-SNAPSHOT.pom
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Tools - Build - Shared Verification Resources
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugi…
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugi…
14K downloaded
[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.1…
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/3/mave…
6K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.1…
18K downloaded
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.0…
770b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.0/surefi…
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-api/2.0/su…
741b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.0…
22K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-api/2.0/su…
47K downloaded
[INFO] [surefire:test]
[INFO] No tests to run.
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-arc…
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-componen…
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha…
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.6/p…
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8…
7K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.2/plexus-u…
767b downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha…
138K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-arc…
9K downloaded
[INFO] [jar:jar]
[INFO] Building
jar:
/home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO]
Installing
/home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-verifications/target/xwiki-build-verifications-1.0-SNAPSHOT.jar
to
/home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-verifications/1.0-SNAPSHOT/xwiki-build-verifications-1.0-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Tools - Build - XAR Handlers
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[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:
/home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO]
Installing
/home/marc/devel/xwikiandco/trunks-users/xwiki-tools/build-tools/build-xar-handlers/target/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar
to
/home/marc/.m2/repository/com/xpn/xwiki/xwiki-build-xar-handlers/1.0-SNAPSHOT/xwiki-build-xar-handlers-1.0-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Root
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/marc/devel/xwikiandco/trunks-users/xwiki/pom.xml
to
/home/marc/.m2/repository/com/xpn/xwiki/xwiki-root/1.0-SNAPSHOT/xwiki-root-1.0-SNAPSHOT.pom
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Core
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'poi:poi:pom:3.0-alpha3:compile' is invalid. It will be
ignored for artifact resolution. Reason: Parse error reading POM. Reason:
expected START_TAG or END_TAG not TEXT (position: TEXT
seen ...<logo>http://jakarta.apache.org/images/original-jakarta-logo.gif</...
@28:69)
Downloading:
http://maven.xwiki.org/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-jsr-06.p…
[WARNING] Unable to get resource from repository xwiki
(
http://maven.xwiki.org)
Downloading:
http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-j…
[WARNING] Unable to get resource from repository central
(
http://repo1.maven.org/maven2)
[WARNING]
Artifact jmock:jmock:jar:1.1.0:test retains local scope 'test'
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the
local scope.
Downloading:
http://maven.xwiki.org/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar
[WARNING] Unable to get resource from repository xwiki
(
http://maven.xwiki.org)
Downloading:
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar
815K downloaded
Downloading:
http://maven.xwiki.org/javax/jcr/jcr/1.0/jcr-1.0.jar
[WARNING] Unable to get resource from repository xwiki
(
http://maven.xwiki.org)
Downloading:
http://repo1.maven.org/maven2/javax/jcr/jcr/1.0/jcr-1.0.jar
[WARNING] Unable to get resource from repository central
(
http://repo1.maven.org/maven2)
Downloading:
http://maven.xwiki.org/xalan/xalan/2.4.1/xalan-2.4.1.jar
[WARNING] Unable to get resource from repository xwiki
(
http://maven.xwiki.org)
Downloading:
http://repo1.maven.org/maven2/xalan/xalan/2.4.1/xalan-2.4.1.jar
1006K downloaded
Downloading:
http://maven.xwiki.org/avalon-framework/avalon-framework/4.0/avalon-framewo…
[WARNING] Unable to get resource from repository xwiki
(
http://maven.xwiki.org)
Downloading:
http://repo1.maven.org/maven2/avalon-framework/avalon-framework/4.0/avalon-…
58K downloaded
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) javax.jcr:jcr:jar:1.0
Try downloading the file manually from:
http://www.day.com/maven/jsr170/jars/jcr-1.0.jar
Then, install it using the command:
mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \
-Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.xpn.xwiki:xwiki-core:jar:1.0-SNAPSHOT
2) javax.jcr:jcr:jar:1.0
----------
1 required artifact is missing.
for artifact:
com.xpn.xwiki:xwiki-core:jar:1.0-SNAPSHOT
from the specified remote repositories:
xwiki (
http://maven.xwiki.org),
central (
http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52 seconds
[INFO] Finished at: Sat Jan 06 09:02:32 EST 2007
[INFO] Final Memory: 14M/34M
[INFO] ------------------------------------------------------------------------