[xwiki-dev] Maven/build help

Marc Lijour marc at lijour.net
Sat Jan 6 15:10:06 CET 2007


On Saturday 06 January 2007 04:12, Vincent Massol wrote:
> > -----Original Message-----
> > From: Marc Lijour [mailto:marc at lijour.net]
> > Sent: samedi 6 janvier 2007 02:45
> > To: xwiki-dev at 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,

now I tried the same thing after removing the xpn directory as you suggested.

Apparently there is a syntax error in a POM file. This is what I got:

$ rm -rf ~/.m2/repository/com/xpn
$ mvn install
[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
[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/xwiki-build-xar-handlers-1.0-20070105.153209-1.jar
2K downloaded
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Tools
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[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] [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-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.pom
[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-jsr-06.pom
[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/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)
[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: 13 seconds
[INFO] Finished at: Sat Jan 06 09:06:54 EST 2007
[INFO] Final Memory: 14M/34M
[INFO] ------------------------------------------------------------------------




More information about the devs mailing list