I'm trying to package maven-ant-tasks, but have quickly gotten over my head. It appears that it is running maven directly (although I don't know if my execing mvn or calling maven classes) and this is then running into dependency version matching issues (so I can see why mvn-jpp ignores them!). Any help would be greatly appreciated.
http://koji.fedoraproject.org/koji/taskinfo?taskID=2418428 http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks.spec
* Orion Poplawski orion@cora.nwra.com [2010-08-23 11:15]:
I'm trying to package maven-ant-tasks, but have quickly gotten over my head. It appears that it is running maven directly (although I don't know if my execing mvn or calling maven classes) and this is then running into dependency version matching issues (so I can see why mvn-jpp ignores them!). Any help would be greatly appreciated.
http://koji.fedoraproject.org/koji/taskinfo?taskID=2418428 http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks.spec
The log above does not indicate the cause.
Can you try building locally in mock and post the files mentioned in the log?:
BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.6/build.log BUILD/maven-ant-tasks-2.1.1/target/it/ant-tasks-in-ant-run-plugin/build.log
Additionally, in the spec file, can you add an argument '-X' to mvn-jpp and post the build log as well?
Cheers, Deepak
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com -- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On 08/23/2010 09:45 AM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-23 11:15]:
I'm trying to package maven-ant-tasks, but have quickly gotten over my head. It appears that it is running maven directly (although I don't know if my execing mvn or calling maven classes) and this is then running into dependency version matching issues (so I can see why mvn-jpp ignores them!). Any help would be greatly appreciated.
http://koji.fedoraproject.org/koji/taskinfo?taskID=2418428 http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks.spec
The log above does not indicate the cause.
Can you try building locally in mock and post the files mentioned in the log?:
BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.6/build.log BUILD/maven-ant-tasks-2.1.1/target/it/ant-tasks-in-ant-run-plugin/build.log
Additionally, in the spec file, can you add an argument '-X' to mvn-jpp and post the build log as well?
Ah, yes, forgot about that.
Here we go:
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
With that build log I can see that it is running "mvn" to build those tasks. Not sure how to change that to mvn-jpp, or to pass MAVEN_OPTS.
* Orion Poplawski orion@cora.nwra.com [2010-08-23 13:17]:
On 08/23/2010 09:45 AM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-23 11:15]:
I'm trying to package maven-ant-tasks, but have quickly gotten over my head. It appears that it is running maven directly (although I don't know if my execing mvn or calling maven classes) and this is then running into dependency version matching issues (so I can see why mvn-jpp ignores them!). Any help would be greatly appreciated.
http://koji.fedoraproject.org/koji/taskinfo?taskID=2418428 http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks.spec
The log above does not indicate the cause.
Can you try building locally in mock and post the files mentioned in the log?:
BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.6/build.log BUILD/maven-ant-tasks-2.1.1/target/it/ant-tasks-in-ant-run-plugin/build.log
Additionally, in the spec file, can you add an argument '-X' to mvn-jpp and post the build log as well?
Ah, yes, forgot about that.
Here we go:
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
The above seems to have been successful.
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
This one failed due to a missing dependency:
/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.6/build.xml:14: Unable to find component: org.apache.maven.project.MavenProjectBuilder
(perhaps maven-project?)
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
This one appears to be due to an unexpected ant version: java.lang.NoSuchMethodError: org.apache.tools.ant.launch.Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String;
Cheers, Deepak
With that build log I can see that it is running "mvn" to build those tasks. Not sure how to change that to mvn-jpp, or to pass MAVEN_OPTS.
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
On 08/23/2010 11:26 AM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-23 13:17]:
On 08/23/2010 09:45 AM, Deepak Bhole wrote: Here we go:
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
The above seems to have been successful.
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
This one failed due to a missing dependency:
/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.6/build.xml:14: Unable to find component: org.apache.maven.project.MavenProjectBuilder
(perhaps maven-project?)
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
This one appears to be due to an unexpected ant version: java.lang.NoSuchMethodError: org.apache.tools.ant.launch.Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String;
The problem is that it is using the invoker plugin to run maven. So it runs:
[DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml validate
In my local build this succeeded because maven download a needed jar. So, I'm trying to get "-Dmaven2.jpp.mode" passed to the mvn invocation by adding:
invoker.mavenOpts = -Dmaven2.jpp.mode invoker.offline = true
to the invoker.properties files. This appears to be partially picked up:
[DEBUG] Using invoker properties: [DEBUG] invoker.goals = validate [DEBUG] invoker.mavenOpts = -Dmaven2.jpp.mode [DEBUG] invoker.offline = true [DEBUG] build log initialized in: /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log [DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode [DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-pl ugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml validate [INFO] ..FAILED (0.9 s)
But I'm getting:
[DEBUG] Building Maven user-level plugin registry from: '/builddir/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml' [INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-antrun-plugin
Reason: POM 'org.apache.maven.plugins:maven-antrun-plugin' not found in repository: System is offline.
org.apache.maven.plugins:maven-antrun-plugin:pom:1.3
Neither of the repositories list above seem correct.
I've update the build.log links above with my latest attempt.
I wonder if I should just skip the validate step.
Thanks!
* Orion Poplawski orion@cora.nwra.com [2010-08-23 14:21]:
On 08/23/2010 11:26 AM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-23 13:17]:
On 08/23/2010 09:45 AM, Deepak Bhole wrote: Here we go:
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
The above seems to have been successful.
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
This one failed due to a missing dependency:
/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.6/build.xml:14: Unable to find component: org.apache.maven.project.MavenProjectBuilder
(perhaps maven-project?)
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
This one appears to be due to an unexpected ant version: java.lang.NoSuchMethodError: org.apache.tools.ant.launch.Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String;
The problem is that it is using the invoker plugin to run maven. So it runs:
[DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml validate
In my local build this succeeded because maven download a needed jar. So, I'm trying to get "-Dmaven2.jpp.mode" passed to the mvn invocation by adding:
invoker.mavenOpts = -Dmaven2.jpp.mode invoker.offline = true
to the invoker.properties files. This appears to be partially picked up:
Ah I see. In that case, you will also need to pass -DDmaven.repo.local=... and ensure that the value matches what you provided via the original mvn-jpp call in the spec file.
Cheers, Deepak
[DEBUG] Using invoker properties: [DEBUG] invoker.goals = validate [DEBUG] invoker.mavenOpts = -Dmaven2.jpp.mode [DEBUG] invoker.offline = true [DEBUG] build log initialized in: /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log [DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode [DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-pl ugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml validate [INFO] ..FAILED (0.9 s)
But I'm getting:
[DEBUG] Building Maven user-level plugin registry from: '/builddir/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml' [INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-antrun-plugin
Reason: POM 'org.apache.maven.plugins:maven-antrun-plugin' not found in repository: System is offline.
org.apache.maven.plugins:maven-antrun-plugin:pom:1.3
Neither of the repositories list above seem correct.
I've update the build.log links above with my latest attempt.
I wonder if I should just skip the validate step.
Thanks!
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
* Deepak Bhole dbhole@redhat.com [2010-08-23 14:45]:
- Orion Poplawski orion@cora.nwra.com [2010-08-23 14:21]:
On 08/23/2010 11:26 AM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-23 13:17]:
On 08/23/2010 09:45 AM, Deepak Bhole wrote: Here we go:
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
The above seems to have been successful.
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a...
This one failed due to a missing dependency:
/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.6/build.xml:14: Unable to find component: org.apache.maven.project.MavenProjectBuilder
(perhaps maven-project?)
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
This one appears to be due to an unexpected ant version: java.lang.NoSuchMethodError: org.apache.tools.ant.launch.Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String;
The problem is that it is using the invoker plugin to run maven. So it runs:
[DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml validate
In my local build this succeeded because maven download a needed jar. So, I'm trying to get "-Dmaven2.jpp.mode" passed to the mvn invocation by adding:
invoker.mavenOpts = -Dmaven2.jpp.mode invoker.offline = true
to the invoker.properties files. This appears to be partially picked up:
Ah I see. In that case, you will also need to pass -DDmaven.repo.local=... and ensure that the value matches what you provided via the original mvn-jpp call in the spec file.
Doh. I meant -Dmaven.repo.local=... (just one D)
Cheers, Deepak
[DEBUG] Using invoker properties: [DEBUG] invoker.goals = validate [DEBUG] invoker.mavenOpts = -Dmaven2.jpp.mode [DEBUG] invoker.offline = true [DEBUG] build log initialized in: /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log [DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode [DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-pl ugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml validate [INFO] ..FAILED (0.9 s)
But I'm getting:
[DEBUG] Building Maven user-level plugin registry from: '/builddir/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml' [INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-antrun-plugin
Reason: POM 'org.apache.maven.plugins:maven-antrun-plugin' not found in repository: System is offline.
org.apache.maven.plugins:maven-antrun-plugin:pom:1.3
Neither of the repositories list above seem correct.
I've update the build.log links above with my latest attempt.
I wonder if I should just skip the validate step.
Thanks!
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On 08/23/2010 12:45 PM, Deepak Bhole wrote:
Ah I see. In that case, you will also need to pass -DDmaven.repo.local=... and ensure that the value matches what you provided via the original mvn-jpp call in the spec file.
Tried that, but it really looks like the invoker.mavenOpts just aren't making it to the maven execution.
[DEBUG] Interpolate /builddir/build/BUILD/maven-ant-tasks-2.1.1/src/it/settings.xml to /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml [INFO] Building: ant-run-plugin-with-ant-1.8.0/pom.xml [DEBUG] Using invoker properties: [DEBUG] invoker.goals = validate [DEBUG] invoker.mavenOpts = -Dmaven2.jpp.mode [DEBUG] invoker.offline = true [DEBUG] build log initialized in: /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log [DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode [DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/ it/interpolated-settings.xml validate [INFO] ..FAILED (1.0 s)
[DEBUG] Building Maven user-level plugin registry from: '/builddir/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml' [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible.
Project ID: org.apache.maven.plugins:maven-antrun-plugin
Reason: POM 'org.apache.maven.plugins:maven-antrun-plugin' not found in repository: System is off line.
org.apache.maven.plugins:maven-antrun-plugin:pom:1.3
for project org.apache.maven.plugins:maven-antrun-plugin
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
* Orion Poplawski orion@cora.nwra.com [2010-08-23 15:52]:
On 08/23/2010 12:45 PM, Deepak Bhole wrote:
Ah I see. In that case, you will also need to pass -DDmaven.repo.local=... and ensure that the value matches what you provided via the original mvn-jpp call in the spec file.
Tried that, but it really looks like the invoker.mavenOpts just aren't making it to the maven execution.
[DEBUG] Interpolate /builddir/build/BUILD/maven-ant-tasks-2.1.1/src/it/settings.xml to /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml [INFO] Building: ant-run-plugin-with-ant-1.8.0/pom.xml [DEBUG] Using invoker properties: [DEBUG] invoker.goals = validate [DEBUG] invoker.mavenOpts = -Dmaven2.jpp.mode [DEBUG] invoker.offline = true [DEBUG] build log initialized in: /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log [DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode [DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/ it/interpolated-settings.xml validate [INFO] ..FAILED (1.0 s)
[DEBUG] Building Maven user-level plugin registry from: '/builddir/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml' [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible.
Project ID: org.apache.maven.plugins:maven-antrun-plugin
Reason: POM 'org.apache.maven.plugins:maven-antrun-plugin' not found in repository: System is off line.
org.apache.maven.plugins:maven-antrun-plugin:pom:1.3
for project org.apache.maven.plugins:maven-antrun-plugin
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
Doh! Sorry, I haven't used the invoker plugin enough to know what to do in this case :/ If you can provide me with a latest srpm, I can try building it and might be able to trace the issue..
Cheers, Deepak
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
On 08/23/2010 02:35 PM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-23 15:52]:
On 08/23/2010 12:45 PM, Deepak Bhole wrote:
Ah I see. In that case, you will also need to pass -DDmaven.repo.local=... and ensure that the value matches what you provided via the original mvn-jpp call in the spec file.
Tried that, but it really looks like the invoker.mavenOpts just aren't making it to the maven execution.
[DEBUG] Interpolate /builddir/build/BUILD/maven-ant-tasks-2.1.1/src/it/settings.xml to /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml [INFO] Building: ant-run-plugin-with-ant-1.8.0/pom.xml [DEBUG] Using invoker properties: [DEBUG] invoker.goals = validate [DEBUG] invoker.mavenOpts = -Dmaven2.jpp.mode [DEBUG] invoker.offline = true [DEBUG] build log initialized in: /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log [DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode [DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/ it/interpolated-settings.xml validate [INFO] ..FAILED (1.0 s)
[DEBUG] Building Maven user-level plugin registry from: '/builddir/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml' [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible.
Project ID: org.apache.maven.plugins:maven-antrun-plugin
Reason: POM 'org.apache.maven.plugins:maven-antrun-plugin' not found in repository: System is off line.
org.apache.maven.plugins:maven-antrun-plugin:pom:1.3
for project org.apache.maven.plugins:maven-antrun-plugin
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
Doh! Sorry, I haven't used the invoker plugin enough to know what to do in this case :/ If you can provide me with a latest srpm, I can try building it and might be able to trace the issue..
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm
Really seems like invoker should be handling this. Thanks for looking at it.
* Orion Poplawski orion@cora.nwra.com [2010-08-23 17:47]:
On 08/23/2010 02:35 PM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-23 15:52]:
On 08/23/2010 12:45 PM, Deepak Bhole wrote:
Ah I see. In that case, you will also need to pass -DDmaven.repo.local=... and ensure that the value matches what you provided via the original mvn-jpp call in the spec file.
Tried that, but it really looks like the invoker.mavenOpts just aren't making it to the maven execution.
[DEBUG] Interpolate /builddir/build/BUILD/maven-ant-tasks-2.1.1/src/it/settings.xml to /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/interpolated-settings.xml [INFO] Building: ant-run-plugin-with-ant-1.8.0/pom.xml [DEBUG] Using invoker properties: [DEBUG] invoker.goals = validate [DEBUG] invoker.mavenOpts = -Dmaven2.jpp.mode [DEBUG] invoker.offline = true [DEBUG] build log initialized in: /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0/build.log [DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode [DEBUG] Executing: /bin/sh -c cd /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/it/ant-run-plugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D maven.repo.local=/builddir/build/BUILD/maven-ant-tasks-2.1.1/target/local-repo -s /builddir/build/BUILD/maven-ant-tasks-2.1.1/target/ it/interpolated-settings.xml validate [INFO] ..FAILED (1.0 s)
[DEBUG] Building Maven user-level plugin registry from: '/builddir/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml' [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible.
Project ID: org.apache.maven.plugins:maven-antrun-plugin
Reason: POM 'org.apache.maven.plugins:maven-antrun-plugin' not found in repository: System is off line.
org.apache.maven.plugins:maven-antrun-plugin:pom:1.3
for project org.apache.maven.plugins:maven-antrun-plugin
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/build.log http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-a... http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-tasks-in-ant-run-...
Doh! Sorry, I haven't used the invoker plugin enough to know what to do in this case :/ If you can provide me with a latest srpm, I can try building it and might be able to trace the issue..
http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm
Really seems like invoker should be handling this. Thanks for looking at it.
After lots of poking, I think I finally found the problem. It comes down to this file:
http://svn.apache.org/repos/asf/maven/shared/tags/maven-shared-components-15...
That line builds the mvn command that gets executed and what is happening is that it is setting maven.repo.local based on the parent (mvn-jpp) call which has it set. However, there is a bug in the setEnvironmentPaths() function which causes it to provide the "-D" and "maven.repo.local..." as 2 separate args instead of one.
Outside of patching the above file, afaik here is no way to fix this and you are probably better off just disabling the integration tests.
Cheers, Deepak
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
On 08/26/2010 02:40 PM, Deepak Bhole wrote:
After lots of poking, I think I finally found the problem. It comes down to this file:
http://svn.apache.org/repos/asf/maven/shared/tags/maven-shared-components-15...
That line builds the mvn command that gets executed and what is happening is that it is setting maven.repo.local based on the parent (mvn-jpp) call which has it set. However, there is a bug in the setEnvironmentPaths() function which causes it to provide the "-D" and "maven.repo.local..." as 2 separate args instead of one.
Outside of patching the above file, afaik here is no way to fix this and you are probably better off just disabling the integration tests.
Thanks for looking at this, but working concurrently, it appears that using test.properties files with:
maven.jpp.mode=1
in them does what I want.
After further examination it looks like mavenOpts are really java options (e.g. -Xms32m) to be used when running maven.
* Orion Poplawski orion@cora.nwra.com [2010-08-26 16:55]:
On 08/26/2010 02:40 PM, Deepak Bhole wrote:
After lots of poking, I think I finally found the problem. It comes down to this file:
http://svn.apache.org/repos/asf/maven/shared/tags/maven-shared-components-15...
That line builds the mvn command that gets executed and what is happening is that it is setting maven.repo.local based on the parent (mvn-jpp) call which has it set. However, there is a bug in the setEnvironmentPaths() function which causes it to provide the "-D" and "maven.repo.local..." as 2 separate args instead of one.
Outside of patching the above file, afaik here is no way to fix this and you are probably better off just disabling the integration tests.
Thanks for looking at this, but working concurrently, it appears that using test.properties files with:
maven.jpp.mode=1
in them does what I want.
Ah cool. How did you manage to get it to see the right repo though?
Deepak
After further examination it looks like mavenOpts are really java options (e.g. -Xms32m) to be used when running maven.
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
On 08/26/2010 02:58 PM, Deepak Bhole wrote:
Ah cool. How did you manage to get it to see the right repo though?
I changed the build to use it:
export MAVEN_REPO_LOCAL=$(pwd)/target/local-repo
* Orion Poplawski orion@cora.nwra.com [2010-08-26 17:03]:
On 08/26/2010 02:58 PM, Deepak Bhole wrote:
Ah cool. How did you manage to get it to see the right repo though?
I changed the build to use it:
export MAVEN_REPO_LOCAL=$(pwd)/target/local-repo
Hmm, that was there before too. I wonder if repo was never a problem to begin with then.. anyway, glad it is resolved :)
Cheers, Deepak
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
On 08/26/2010 03:08 PM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-26 17:03]:
On 08/26/2010 02:58 PM, Deepak Bhole wrote:
Ah cool. How did you manage to get it to see the right repo though?
I changed the build to use it:
export MAVEN_REPO_LOCAL=$(pwd)/target/local-repo
Hmm, that was there before too. I wonder if repo was never a problem to begin with then.. anyway, glad it is resolved :)
We'll see if it is totally. I'm getting errors with ant 1.8.1, I've submitted a new build which I think should fix. Try again tomorrow.
On 08/26/2010 03:08 PM, Deepak Bhole wrote:
- Orion Poplawskiorion@cora.nwra.com [2010-08-26 17:03]:
On 08/26/2010 02:58 PM, Deepak Bhole wrote:
Ah cool. How did you manage to get it to see the right repo though?
I changed the build to use it:
export MAVEN_REPO_LOCAL=$(pwd)/target/local-repo
Hmm, that was there before too. I wonder if repo was never a problem to begin with then.. anyway, glad it is resolved :)
New package review:
https://bugzilla.redhat.com/show_bug.cgi?id=628030
Excerpts from Orion Poplawski's message of Mon Aug 23 17:14:58 +0200 2010:
I'm trying to package maven-ant-tasks, but have quickly gotten over my head. It appears that it is running maven directly (although I don't know if my execing mvn or calling maven classes) and this is then running into dependency version matching issues (so I can see why mvn-jpp ignores them!). Any help would be greatly appreciated.
http://koji.fedoraproject.org/koji/taskinfo?taskID=2418428 http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks.spec
Quick look seems to suggest your integration tests are failing because you removed "install" goal in %prep and I guess that affected something.
Have you tried to find out why:
# Fix 'install' was specified in an execution, but not found in the # plugin error sed -i -e "s|<goal>install</goal>||g" pom.xml
is needed? I am guessing this is causing your ITs to fail, but I might be completely wrong. I might check on it tomorrow when I don't have to manually install ant-1.8 into mock :-)
On 08/23/2010 09:51 AM, Stanislav Ochotnicky wrote:
Excerpts from Orion Poplawski's message of Mon Aug 23 17:14:58 +0200 2010:
I'm trying to package maven-ant-tasks, but have quickly gotten over my head. It appears that it is running maven directly (although I don't know if my execing mvn or calling maven classes) and this is then running into dependency version matching issues (so I can see why mvn-jpp ignores them!). Any help would be greatly appreciated.
http://koji.fedoraproject.org/koji/taskinfo?taskID=2418428 http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks-2.1.1-1.fc13.src.rpm http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks.spec
Quick look seems to suggest your integration tests are failing because you removed "install" goal in %prep and I guess that affected something.
Have you tried to find out why:
# Fix 'install' was specified in an execution, but not found in the # plugin error sed -i -e "s|<goal>install</goal>||g" pom.xml
is needed? I am guessing this is causing your ITs to fail, but I might be completely wrong. I might check on it tomorrow when I don't have to manually install ant-1.8 into mock :-)
I removed that line, and still get the same problems. That may have been a response to earlier issues that are now resolved.
java-devel@lists.fedoraproject.org