Re: Help needed with maven-ant-tasks

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

 



* Deepak Bhole <dbhole@xxxxxxxxxx> [2010-08-23 14:45]:
> * Orion Poplawski <orion@xxxxxxxxxxxxx> [2010-08-23 14:21]:
> > 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 /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@xxxxxxxxxxxxx
> > Boulder, CO 80301              http://www.cora.nwra.com
> --
> java-devel mailing list
> java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/java-devel
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel


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

  Powered by Linux