Re: antrun issues

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

 



> Building some stuff in rawhide I'm getting:
> 
> [INFO] Error configuring: org.apache.maven.plugins:maven-antrun-plugin.
> Reason: A required class was missing during mojo configuration:
> org/apache/tools/ant/launch/AntMain
> 
> org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring:
> org.apache.maven.plugins:maven-antrun-plugin. Reason: A required class was
> missing during mojo configuration: org/apache/tools/ant/launch/AntMain
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif
> ecycleExecutor.java:723) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl
> e(DefaultLifecycleExecutor.java:556) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLife
> cycleExecutor.java:535) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai
> lures(DefaultLifecycleExecutor.java:387) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Def
> aultLifecycleExecutor.java:348) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycl
> eExecutor.java:180) at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> 	at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 57) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> l.java:43) at java.lang.reflect.Method.invoke(Method.java:616)
> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.PluginConfigurationException: Error
> configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: A
> required class was missing during mojo configuration:
> org/apache/tools/ant/launch/AntMain at
> org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPl
> uginManager.java:1374) at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPlugi
> nManager.java:724) at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManag
> er.java:468) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif
> ecycleExecutor.java:694) ... 17 more
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/tools/ant/launch/AntMain at
> java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
> 	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> 	at
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.
> java:195) at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java
> :255) at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:
> 214) at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
> 	at org.apache.tools.ant.Project.initProperties(Project.java:313)
> 	at org.apache.tools.ant.Project.init(Project.java:300)
> 	at
> org.apache.maven.plugin.antrun.components.AntTargetConverter.processConfigu
> ration(AntTargetConverter.java:113) at
> org.apache.maven.plugin.antrun.components.AntTargetConverter.fromConfigurat
> ion(AntTargetConverter.java:83) at
> org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.
> configure(ComponentValueSetter.java:247) at
> org.codehaus.plexus.component.configurator.converters.composite.ObjectWithF
> ieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137) at
> org.codehaus.plexus.component.configurator.BasicComponentConfigurator.confi
> gureComponent(BasicComponentConfigurator.java:56) at
> org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPl
> uginManager.java:1357) ... 20 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.tools.ant.launch.AntMain at
> java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> 	at
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.
> java:195) at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java
> :255) at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java
> :274) at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:
> 214) at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
> 	... 42 more
> 
> 

Hi Orion,
> Now, I'm wondering if one or more of these is true:
> 
> - My ant 1.8.1 package needs fixing somehow
I already fixed the problem here :).
> - maven-antrun-plugin needs to list ant-launcher in its dependencies
I'm pretty sure that this is the right answer. But it should be done not on 
the RPM side but on the Maven side i.e. adding ant-launcher to maven-ant-
plugins dependencies in maven-ant-launcher pom.xml

Regards,
Alex
> - Packages that use maven-antrun-plugin need to list ant-launcher in their
> dependecies if they encounter this.
--
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