maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Ferguson (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MDEP-121) UnsupportedOperationException on depdendency:analyze
Date Mon, 03 Dec 2007 03:10:57 GMT
UnsupportedOperationException on depdendency:analyze
----------------------------------------------------

                 Key: MDEP-121
                 URL: http://jira.codehaus.org/browse/MDEP-121
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: analyze
    Affects Versions: 2.0-alpha-5
         Environment: maven-2.0.7
JDK 1.5.0_06
Windows XP
            Reporter: William Ferguson
            Assignee: Brian Fox


Executing:
{code}
mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:analyze
{code}

on 3-DEC-2007 (ie 2.0-alpha-5-20070703.005757) produced:

{code}
[INFO] snapshot org.codehaus.plexus:plexus-archiver:1.0-alpha-9-SNAPSHOT: checking for updates
from snapshot
[INFO] snapshot org.apache.maven.shared:maven-dependency-analyzer:1.0-alpha-3-SNAPSHOT: checking
for updates from snapshot
[INFO] [dependency:analyze]
[INFO] Used undeclared dependencies:
[WARNING]    commons-logging:commons-logging:jar:1.0:compile
[INFO] Unused declared dependencies:
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.UnsupportedOperationException
        at java.util.Collections$UnmodifiableCollection$1.remove(Collections.java:1012)
        at org.apache.maven.plugin.dependency.AnalyzeMojo.checkDependencies(AnalyzeMojo.java:213)
        at org.apache.maven.plugin.dependency.AnalyzeMojo.execute(AnalyzeMojo.java:162)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        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:585)
        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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58 seconds
[INFO] Finished at: Mon Dec 03 12:33:25 EST 2007
[INFO] Final Memory: 14M/28M
[INFO] ------------------------------------------------------------------------
{code}

NB I was using the snapshot because I had just run dependency:tree

Executing
{code}
mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:analyze
{code}
does not cause the UnsupportedOperationException to occur.


But the error doesn't occur in the trunk, so maybe time to release a new snapshot or even
a new release?

-- 
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