* Orion Poplawski <orion(a)cora.nwra.com> [2010-08-23 17:47]:
On 08/23/2010 02:35 PM, Deepak Bhole wrote:
>* Orion Poplawski<orion(a)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.
>>[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:
>>[DEBUG] Using MAVEN_OPTS: -Dmaven2.jpp.mode
>>[DEBUG] Executing: /bin/sh -c cd
>>&& /usr/share/maven2/bin/mvn -B -o -X -D
>>[INFO] ..FAILED (1.0 s)
>>[DEBUG] Building Maven user-level plugin registry from:
>>[DEBUG] Building Maven global-level plugin registry from:
>>[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.
>> for project org.apache.maven.plugins:maven-antrun-plugin
>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..
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:
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
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion(a)cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com