[Users] 'mvn install' error

------=_Part_30589_1847727401.1362101419355 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit hi: os centos6.3, engine is pulled this moning from 'git clone git://gerrit.ovirt.org/ovirt-engine ' i fellow 'http://www.ovirt.org/Building_oVirt_engine', it error when reach 'mvn clean install'. error message: [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /mnt/ovirt-engine/backend/manager/dependencies/target [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/main/java [INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/main/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] [jar:jar {execution: default-jar}] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /mnt/ovirt-engine/backend/manager/dependencies/target/dependencies-3.3.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.ovirt.engine:jboss-modules-maven-plugin:1.0-SNAPSHOT Cause: Class 'java.util.List' cannot be instantiated [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24 seconds [INFO] Finished at: Thu Feb 28 20:26:34 CST 2013 [INFO] Final Memory: 56M/135M [INFO] ------------------------------------------------------------------------ [root@ovirtdev ovirt-engine]# mvn clean install ------=_Part_30589_1847727401.1362101419355 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit <div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>hi:</div><div>os centos6.3, engine is pulled this moning from '<span style="white-space: pre-wrap; line-height: 1.7;">git clone git://gerrit.ovirt.org/ovirt-engine</span></div><div>'</div><div>i fellow 'http://www.ovirt.org/Building_oVirt_engine', it error when reach 'mvn clean install'.</div><div><br></div><div><br></div><div>error message:</div><div><br></div><div><div>[INFO] ------------------------------------------------------------------------</div><div>[INFO] [clean:clean {execution: default-clean}]</div><div>[INFO] Deleting directory /mnt/ovirt-engine/backend/manager/dependencies/target</div><div>[INFO] [resources:resources {execution: default-resources}]</div><div>[INFO] Using 'UTF-8' encoding to copy filtered resources.</div><div>[INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/main/java</div><div>[INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/main/resources</div><div>[INFO] [compiler:compile {execution: default-compile}]</div><div>[INFO] No sources to compile</div><div>[INFO] [resources:testResources {execution: default-testResources}]</div><div>[INFO] Using 'UTF-8' encoding to copy filtered resources.</div><div>[INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/test/resources</div><div>[INFO] [compiler:testCompile {execution: default-testCompile}]</div><div>[INFO] No sources to compile</div><div>[INFO] [surefire:test {execution: default-test}]</div><div>[INFO] No tests to run.</div><div>[INFO] [jar:jar {execution: default-jar}]</div><div>[WARNING] JAR will be empty - no content was marked for inclusion!</div><div>[INFO] Building jar: /mnt/ovirt-engine/backend/manager/dependencies/target/dependencies-3.3.0-SNAPSHOT.jar</div><div>[INFO] ------------------------------------------------------------------------</div><div>[ERROR] BUILD ERROR</div><div>[INFO] ------------------------------------------------------------------------</div><div>[INFO] Failed to configure plugin parameters for: org.ovirt.engine:jboss-modules-maven-plugin:1.0-SNAPSHOT</div><div><br></div><div><br></div><div><br></div><div>Cause: Class 'java.util.List' cannot be instantiated</div><div>[INFO] ------------------------------------------------------------------------</div><div>[INFO] For more information, run Maven with the -e switch</div><div>[INFO] ------------------------------------------------------------------------</div><div>[INFO] Total time: 24 seconds</div><div>[INFO] Finished at: Thu Feb 28 20:26:34 CST 2013</div><div>[INFO] Final Memory: 56M/135M</div><div>[INFO] ------------------------------------------------------------------------</div><div>[root@ovirtdev ovirt-engine]# mvn clean install</div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span> ------=_Part_30589_1847727401.1362101419355--

On 03/01/2013 02:30 AM, bigclouds wrote:
hi: os centos6.3, engine is pulled this moning from 'git clone git://gerrit.ovirt.org/ovirt-engine ' i fellow 'http://www.ovirt.org/Building_oVirt_engine', it error when reach 'mvn clean install'.
error message:
[INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /mnt/ovirt-engine/backend/manager/dependencies/target [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/main/java [INFO] skip non existing resourceDirect ory /mnt/ovirt-engine/backend/manager/dependencies/src/main/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /mnt/ovirt-engine/backend/manager/dependencies/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] [jar:jar {execution: default-jar}] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /mnt/ovirt-engine/backend/manager/dependencies/target/dependencies-3.3.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.ovirt.engine:jboss-modules-maven-plugin:1.0-SNAPSHOT
Cause: Class 'java.util.List' cannot be instantiated [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24 seconds [INFO] Finished at: Thu Feb 28 20:26:34 CST 2013 [INFO] Final Memory: 56M/135M [INFO] ------------------------------------------------------------------------ [root@ovirtdev ovirt-engine]# mvn clean install
This happens because you are using maven 2, but you need to use maven 3 to build the engine. As there are no maven 3 packages in CentOS you will have to download and install manually maven 3: 1. Download the maven 3 distribution from the maven website, for example: wget http://mirror.lividpenguin.com/pub/apache/maven/maven-3/3.0.5/binaries/apach... 2. Uncompress it to your favorite directory, for example to your home directory: tar xvf apache-maven-3.0.5-bin.tar.gz That will create a apache-maven-3.0.5 directory. 3. Add the maven bin directory to your path. Assuming that you uncompressed it in your home directory: PATH=$HOME/apache-maven-3.0.5/bin:$PATH export PATH It is important to put $HOME/apache-maven-3.0.5/bin before $PATH, as otherwise you will be using the maven 2 binaries. You may want to put these two lines in your $HOME/.bash_profile file to make it persistent. Once you do these three steps you can repeat the build and it should work fine. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
participants (2)
-
bigclouds
-
Juan Hernandez