maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Arnott <b...@autonomy.com>
Subject Assembly problem
Date Thu, 07 Dec 2006 17:36:01 GMT
Hello list, I've got an issue with the assembly plugin, I'm getting this
error:

[INFO] [assembly:assembly]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error reading descriptor

Embedded error: Unrecognised tag: 'dependencySets' (position: START_TAG seen ...</includeDependencies>\r\n
       <dependencySets
 >... @58:25)
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error reading descriptor
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
         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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error reading descriptor
         at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssembly(AbstractAssemblyMojo.java:839)
         at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssembly(AbstractAssemblyMojo.java:814)
         at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.readAssemblies(AbstractAssemblyMojo.java:742)
         at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:233)
         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
         ... 16 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'dependencySets'
(position: START_TAG seen
  ...</includeDependencies>\r\n        <dependencySets>... @58:25)
         at org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.parseModuleBinaries(AssemblyXpp3Reader.java:1022)
         at org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.parseModuleSet(AssemblyXpp3Reader.java:1103)
         at org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.parseAssembly(AssemblyXpp3Reader.java:393)
         at org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.read(AssemblyXpp3Reader.java:1717)
         at org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.read(AssemblyXpp3Reader.java:1728)
         at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssembly(AbstractAssemblyMojo.java:829)
         ... 21 more

Now http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html says
that I can have a <dependencySets> like:

<assembly>
   <id>bin</id>
   <formats>
     <format>tar.gz</format>
     <format>zip</format>
   </formats>
   <moduleSets>
     <moduleSet>
       <includes>
         <include>${groupId}:${artifactId}</include>
         <include>${groupId}:${artifactId}</include>
       </includes>
       <binaries>
         <outputDirectory></outputDirectory>
         <dependencySets>
           <dependencySet>
             <outputDirectory>libs</outputDirectory>
             <scope>runtime</scope>
             <excludes>
               <exclude>${groupId}:${artifactId}</exclude>
             </excludes>
           </dependencySet>
         </dependencySets>
       </binaries>
     </moduleSet>
   <moduleSets>
</assembly>

Is the documentation wrong...? Basically I've got a multi module build and I would
like one binary and one source assembly. I've got the source one, that was easy,
but I would like the binary one to be like:

binary.zip
   module1.jar
   module2.jar
   libs
     module1 deps
     module2 deps
   docs
     generated by site:site

So how do I do it if I can't use a <dependencySets> tag...?

Cheers,

-- 
Bob Arnott


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message