I installed the missing dependency (jcr) manually as suggested by maven (see previous email). Now the target install works with maven2. There are still 2 issues. 1) POM for 'poi:poi:pom:3.0-alpha3:compile' is invalid (see below the log) 2) how can I specify -source 1.4 ? My shell classpath is empty and my jdk: $ java -version java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode) and I get this error when compiling: /home/marc/devel/xwikiandco/trunks-users/xwiki/core/src/main/java/com/xpn/xwiki/store/XWikiJDBCConnection.java: [34,7] com.xpn.xwiki.store.XWikiJDBCConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection This does not happen when I build with ant because the source compatibility 1.4 is required. $ 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] ---------------------------------------------------------------------------- [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.po... [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-js... [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. [INFO] [compiler:compile] Compiling 176 source files to /home/marc/devel/xwikiandco/trunks-users/xwiki/core/target/classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /home/marc/devel/xwikiandco/trunks-users/xwiki/core/src/main/java/com/xpn/xwiki/store/XWikiJDBCConnection.java: [34,7] com.xpn.xwiki.store.XWikiJDBCConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21 seconds [INFO] Finished at: Sat Jan 06 09:53:20 EST 2007 [INFO] Final Memory: 32M/76M [INFO] ------------------------------------------------------------------------