[ http://jira.codehaus.org/browse/MNG-687?page=all ] Kenney Westerhof closed MNG-687: --------------------------------
modified the clone of a MavenProject to have a modifyable attachment list > Crash: in source-plugin, using assembly:assembly goal, on non-SNAPSHOT > project. > ------------------------------------------------------------------------------- > > Key: MNG-687 > URL: http://jira.codehaus.org/browse/MNG-687 > Project: Maven 2 > Type: Bug > Components: maven-plugins > Versions: 2.0-beta-1 > Environment: 2.0-beta-1-SNAPSHOT (from SVN: 20050801-1940) - linux and XP > Reporter: Joakim Erdfelt > Assignee: Kenney Westerhof > Priority: Blocker > Fix For: 2.0-beta-1 > Attachments: assembly-unmodifiable-exception.tar.gz > > > When using the assembly:assembly plugin, the following Exception occurs. > java.lang.UnsupportedOperationException > at > java.util.Collections$UnmodifiableCollection.add(Collections.java:1004) > at > org.apache.maven.project.MavenProject.addAttachedArtifact(MavenProject.java:1016) > at > org.apache.maven.plugin.source.JarSourceMojo.execute(JarSourceMojo.java:106) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:361) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:378) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:351) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:437) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:373) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:359) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:341) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:229) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:123) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:209) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:267) > 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:324) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) > at org.codehaus.classworlds.Launcher.main(Launcher.java:363) > Attached is an example project that shows this behaviour. > I used the commands > $ m2 clean:clean package > $ m2 assembly:assembly -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]