maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shoe Maker (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MNG-4066) org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: java.lang.IllegalAccessError ( MAC OS )
Date Thu, 05 Mar 2009 01:29:12 GMT

    [ http://jira.codehaus.org/browse/MNG-4066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167943#action_167943
] 

Shoe Maker commented on MNG-4066:
---------------------------------


Bret,

This is what the antrun plugin reads.


            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-antrun-plugin</artifactId>
              <dependencies>
                <dependency>
                  <groupId>ant</groupId>
                  <artifactId>ant-nodeps</artifactId>
                  <version>1.6.5</version>
                </dependency>
              </dependencies>
            </plugin>


Thanks for the prompt response
---

> org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured:
java.lang.IllegalAccessError ( MAC OS )
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4066
>                 URL: http://jira.codehaus.org/browse/MNG-4066
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.10
>            Reporter: Shoe Maker
>            Priority: Blocker
>
> % mvn --version
> Maven version: 2.0.10
> Java version: 1.6.0_07
> OS name: "mac os x" version: "10.5.6" arch: "x86_64" Family: "mac"
> i% ant -version
> Apache Ant version 1.7.1 compiled on June 27 2008
> W hen trying to run
> # mvn -e install 
> on a MAC OS. I keep getting this exception.
> org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured:
java.lang.IllegalAccessError: tried to access method org.apache.tools.ant.launch.Locator.decodeUri(Ljava/lang/String;)Ljava/lang/String;
from class org.apache.tools.ant.AntClassLoader
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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.MojoExecutionException: An Ant BuildException has
occured: java.lang.IllegalAccessError: tried to access method org.apache.tools.ant.launch.Locator.decodeUri(Ljava/lang/String;)Ljava/lang/String;
from class org.apache.tools.ant.AntClassLoader
> 	at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:131)
> 	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> 	... 16 more
> Caused by: java.lang.IllegalAccessError: tried to access method org.apache.tools.ant.launch.Locator.decodeUri(Ljava/lang/String;)Ljava/lang/String;
from class org.apache.tools.ant.AntClassLoader
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.Target.execute(Target.java:357)
> 	at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:118)
> 	... 19 more
> Caused by: java.lang.IllegalAccessError: tried to access method org.apache.tools.ant.launch.Locator.decodeUri(Ljava/lang/String;)Ljava/lang/String;
from class org.apache.tools.ant.AntClassLoader
> 	at org.apache.tools.ant.AntClassLoader.addPathFile(AntClassLoader.java:542)
> 	at org.apache.tools.ant.AntClassLoader.addPathElement(AntClassLoader.java:458)
> 	at org.apache.tools.ant.AntClassLoader.setClassPath(AntClassLoader.java:358)
> 	at org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:241)
> 	at org.apache.tools.ant.Project.createClassLoader(Project.java:334)
> 	at org.apache.tools.ant.util.ClasspathUtils.getUniqueClassLoaderForPath(ClasspathUtils.java:219)
> 	at org.apache.tools.ant.util.ClasspathUtils.getClassLoaderForPath(ClasspathUtils.java:194)
> 	at org.apache.tools.ant.util.ClasspathUtils$Delegate.getClassLoader(ClasspathUtils.java:445)
> 	at org.apache.tools.ant.taskdefs.DefBase.createLoader(DefBase.java:142)
> 	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:197)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	... 22 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 33 seconds
> [INFO] Finished at: Wed Mar 04 12:55:49 PST 2009
> [INFO] Final Memory: 64M/245M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message