Re: [Users] 'mvn install' error

2013-03-01 Thread Juan Hernandez

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/apache-maven-3.0.5-bin.tar.gz


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.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] 'mvn install' error

2013-02-28 Thread bigclouds
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___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users