[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed with maven-ant-tasks

On 08/23/2010 11:26 AM, Deepak Bhole wrote:
> * Orion Poplawski<orion@xxxxxxxxxxxxx>  [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-ant-1.8.0/build.log
> The above seems to have been successful.
>> http://www.cora.nwra.com/~orion/fedora/maven-ant-tasks/ant-run-plugin-with-ant-1.6/build.log
> 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-plugin/build.log
> 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 
&& /usr/share/maven2/bin/mvn -B -X -D 
/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: 
[DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode
[DEBUG] Executing: /bin/sh -c cd 
ugin-with-ant-1.8.0 && /usr/share/maven2/bin/mvn -B -o -X -D 
/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: 
[DEBUG] Building Maven global-level plugin registry from: 
[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.


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.


Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com
java-devel mailing list

[Index of Archives]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux