I want to use features of 2.2-SNAPSHOT assembly plugin, but now its time to
release my project.  The release plugin refuses to prepare my project until
I use the released version of the assembly plugin.  I have two choices:

1) revert back to 2.1 release of assembly plugin,
2) build and install/deploy my own build of 2.2-SNAPSHOT, but change its 
version to make it look like a release (e.g. 2.2.xxxxxxx where xxxxxx is the
subversion revision id).

I tried 2 and am having trouble.  I've deployed my own frozen version of the
assembly plugin, but I am getting an error in the project that uses it.  I
think I may have revert my project to using 2.1 assembly plugin:

java.lang.NoClassDefFoundError:
org/apache/maven/shared/repository/model/RepositoryInfo

Does anyone know where this class is found?
Why doesn't this show up when I run with the SNAPSHOT version?
How can I build the assembly plugin correctly?

Thanks
John




Here is abbreviated stack trace.  I hope I didn't leave out anything useful.

org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'org.apache.maven.plugins:maven-assembly-plugin:2.2.495495:attached': Unable
to find the mojo
'org.apache.maven.plugins:maven-assembly-plugin:2.2.495495:attached' in the
plugin 'org.apache.maven.plugins:maven-assembly-plugin'
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)

    ....
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find
the mojo
'org.apache.maven.plugins:maven-assembly-plugin:2.2.495495:attached' in the
plugin 'org.apache.maven.plugins:maven-assembly-plugin'
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:541)
    ....
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-assembly-plugin:2.2.495495:attached',
it could not be started
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
    ....
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
Error starting component
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.
    ....
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
Error composing component
        at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
    ....
Caused by: org.codehaus.plexus.component.composition.CompositionException:
Composition failed of field assemblyArchiver in object of type
org.apache.maven.plugin.assembly.mojos.AttachedAssemblyMojo because the
requirement
ComponentRequirement{role='org.apache.maven.plugin.assembly.archive.AssemblyArchiver',
roleHint='null', fieldName='assemblyArchiver'} was missing
        at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer
    ....
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.assembly.archive.AssemblyArchiver', it could not be
started
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
    ....
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
Error starting component
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.
    ....
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
Error composing component
        at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
    .....
Caused by: org.codehaus.plexus.component.composition.CompositionException:
Composition failed of field assemblyPhases in object of type
org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver because the
requirement
ComponentRequirement{role='org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase',
roleHint='null', fieldName='assemblyPhases'} was missing
        at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer
    .....
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhaserepositories',
it could not be created
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
    ....
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException: Could
not instanciate component: role:
'org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase',
implementation:
'org.apache.maven.plugin.assembly.archive.phase.RepositoryAssemblyPhase',
role hint: 'repositories'
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
    ....
Caused by: java.lang.NoClassDefFoundError:
org/apache/maven/shared/repository/model/RepositoryInfo
        at java.lang.Class.newInstance(J)Ljava.lang.Object;(Unknown Source)
     ....


-- 
View this message in context: 
http://www.nabble.com/freezing-maven-assembly-plugin-for-my-build-tf3409508s177.html#a9498644
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to