[Engine-devel] F17 maven build failure

Hey, I'm trying to build ovirt-engine in Fedora 17, and getting the following error: [INFO] oVirt Modules - manager ........................... FAILURE [1:05.421s] .... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check (default) on project manager-modules: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: checkstyle:checkstyle:jar:5.0, antlr:antlr:jar:2.7.6, commons-beanutils:commons-beanutils-core:jar:1.7.0, com.google.collections:google-collections:jar:0.9: Could not find artifact checkstyle:checkstyle:jar:5.0 -> [Help 1] Any idea how can I resolve it? --- Ofer Schreiber

On 05/20/2012 04:39 PM, Ofer Schreiber wrote:
I'm trying to build ovirt-engine in Fedora 17, and getting the following error:
[INFO] oVirt Modules - manager ........................... FAILURE [1:05.421s] ....
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check (default) on project manager-modules: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: checkstyle:checkstyle:jar:5.0, antlr:antlr:jar:2.7.6, commons-beanutils:commons-beanutils-core:jar:1.7.0, com.google.collections:google-collections:jar:0.9: Could not find artifact checkstyle:checkstyle:jar:5.0 -> [Help 1]
Any idea how can I resolve it?
Are you building with regular "mvn" or with "mvn-rpmbuild"? If you are using the later you will have to update to checkstyle 5.5 and to maven-checkstyle-plugin 2.9.1, as those are what are available in Fedora 17. In addition the gid:aid of checkstyle changed from checkstyle:checkstyle to com.puppycrawl.tools:checkstyle somewhere between 5.0 and 5.5. -- 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.

--Apple-Mail-9A4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DI4MDE2IE1h ZHJpZCwgU3BhaW48L3NwYW4+PGJyPjxzcGFuPkluc2NyaXRhIGVuIGVsIFJlZy4gTWVyY2FudGls IGRlIE1hZHJpZCDigJMgQy5JLkYuIEI4MjY1Nzk0MSAtIFJlZCBIYXQgUy5MLjwvc3Bhbj48YnI+ PC9kaXY+PC9ibG9ja3F1b3RlPjwvYm9keT48L2h0bWw+ --Apple-Mail-9A4D66A3-4B89-46FC-A2CF-13961EDDDCB1--

On 05/20/2012 07:29 PM, Ofer Schreiber wrote:
I'm using the regular mvn install command, should I do some changes in the main pom file?
I think that this is probably a bug in maven, but one that we are triggering due to the fact that we assign different identifiers to the repositories used for normal artifacts and the repositories used for plugins. Can you try the attached patch and let me know if it fixes your problem?
On 20 May 2012, at 18:54, Juan Hernandez<jhernand@redhat.com> wrote:
On 05/20/2012 04:39 PM, Ofer Schreiber wrote:
I'm trying to build ovirt-engine in Fedora 17, and getting the following error:
[INFO] oVirt Modules - manager ........................... FAILURE [1:05.421s] ....
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check (default) on project manager-modules: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: checkstyle:checkstyle:jar:5.0, antlr:antlr:jar:2.7.6, commons-beanutils:commons-beanutils-core:jar:1.7.0, com.google.collections:google-collections:jar:0.9: Could not find artifact checkstyle:checkstyle:jar:5.0 -> [Help 1]
Any idea how can I resolve it?
Are you building with regular "mvn" or with "mvn-rpmbuild"?
If you are using the later you will have to update to checkstyle 5.5 and to maven-checkstyle-plugin 2.9.1, as those are what are available in Fedora 17. In addition the gid:aid of checkstyle changed from checkstyle:checkstyle to com.puppycrawl.tools:checkstyle somewhere between 5.0 and 5.5.
-- 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.

----- Original Message -----
On 05/20/2012 07:29 PM, Ofer Schreiber wrote:
I'm using the regular mvn install command, should I do some changes in the main pom file?
I think that this is probably a bug in maven, but one that we are triggering due to the fact that we assign different identifiers to the repositories used for normal artifacts and the repositories used for plugins. Can you try the attached patch and let me know if it fixes your problem?
Indeed, Thanks! what about a patch in gerrit about it?
On 20 May 2012, at 18:54, Juan Hernandez<jhernand@redhat.com> wrote:
On 05/20/2012 04:39 PM, Ofer Schreiber wrote:
I'm trying to build ovirt-engine in Fedora 17, and getting the following error:
[INFO] oVirt Modules - manager ........................... FAILURE [1:05.421s] ....
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check (default) on project manager-modules: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: checkstyle:checkstyle:jar:5.0, antlr:antlr:jar:2.7.6, commons-beanutils:commons-beanutils-core:jar:1.7.0, com.google.collections:google-collections:jar:0.9: Could not find artifact checkstyle:checkstyle:jar:5.0 -> [Help 1]
Any idea how can I resolve it?
Are you building with regular "mvn" or with "mvn-rpmbuild"?
If you are using the later you will have to update to checkstyle 5.5 and to maven-checkstyle-plugin 2.9.1, as those are what are available in Fedora 17. In addition the gid:aid of checkstyle changed from checkstyle:checkstyle to com.puppycrawl.tools:checkstyle somewhere between 5.0 and 5.5.
-- 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.

On 05/21/2012 03:58 PM, Ofer Schreiber wrote:
----- Original Message -----
On 05/20/2012 07:29 PM, Ofer Schreiber wrote:
I'm using the regular mvn install command, should I do some changes in the main pom file?
I think that this is probably a bug in maven, but one that we are triggering due to the fact that we assign different identifiers to the repositories used for normal artifacts and the repositories used for plugins. Can you try the attached patch and let me know if it fixes your problem?
Indeed, Thanks! what about a patch in gerrit about it?
Yes, of course: http://gerrit.ovirt.org/4623
On 20 May 2012, at 18:54, Juan Hernandez<jhernand@redhat.com> wrote:
On 05/20/2012 04:39 PM, Ofer Schreiber wrote:
I'm trying to build ovirt-engine in Fedora 17, and getting the following error:
[INFO] oVirt Modules - manager ........................... FAILURE [1:05.421s] ....
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check (default) on project manager-modules: Execution default of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: checkstyle:checkstyle:jar:5.0, antlr:antlr:jar:2.7.6, commons-beanutils:commons-beanutils-core:jar:1.7.0, com.google.collections:google-collections:jar:0.9: Could not find artifact checkstyle:checkstyle:jar:5.0 -> [Help 1]
Any idea how can I resolve it?
Are you building with regular "mvn" or with "mvn-rpmbuild"?
If you are using the later you will have to update to checkstyle 5.5 and to maven-checkstyle-plugin 2.9.1, as those are what are available in Fedora 17. In addition the gid:aid of checkstyle changed from checkstyle:checkstyle to com.puppycrawl.tools:checkstyle somewhere between 5.0 and 5.5.
-- 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.
-- 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)
-
Juan Hernandez
-
Ofer Schreiber