maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Casey (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MASSEMBLY-164) "Unrecognised tag: 'unpackOptions' " error in unpackOptions tag in the dependencySet
Date Sat, 17 Mar 2007 05:32:37 GMT

     [ http://jira.codehaus.org/browse/MASSEMBLY-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Casey closed MASSEMBLY-164.
--------------------------------

      Assignee: John Casey
    Resolution: Fixed

> "Unrecognised tag: 'unpackOptions' " error in unpackOptions tag in the dependencySet

> -------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-164
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-164
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: version 2.1 of maven-assembly-plugin 
> maven version 2.0.4
> java version 1.5.0_07
> Windows XP version 5.1.2600
>            Reporter: Tom McGee
>         Assigned To: John Casey
>            Priority: Blocker
>             Fix For: 2.2
>
>
> I'm using version 2.1 of maven-assembly-plugin.
> The documentaion on the assembly saids I can have  unpackOptions tag in the dependencySet
but I get an "Unrecognised tag: 'unpackOptions' " error.
> Here's the stack 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.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         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:
'unpackOptions' (position: START_TAG seen ...</unpack>\r\n       \r\n
>    <unpackOptions>... @11:23)
>         at org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.parseDependencySet(AssemblyXpp3Reader.java:638)
>         at org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.parseAssembly(AssemblyXpp3Reader.java:456)
>         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
> The pom:
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>play.ejb</groupId>
>   <artifactId>play-ejb</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>play-ejb</name>
>   <url>http://maven.apache.org</url>
>   <dependencies>
>     <dependency>
>       <groupId>org.springframework</groupId>
>       <artifactId>spring</artifactId>
>       <version>2.0</version>
>       <scope>compile</scope>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>   
>   <build>
>      <plugins>
>       <plugin>
>         <!-- NOTE: We don't need a groupId specification because the group is
>              org.apache.maven.plugins ...which is assumed by default.
>          -->
>         <artifactId>maven-assembly-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>assembly</id>
>             <phase>package</phase>
>             <goals>
>               <goal>assembly</goal>
>             </goals>
>         
>         <configuration>
>            <descriptors>
>               <descriptor>src/assemble/src.xml</descriptor>
>            </descriptors>
>         </configuration>
>          </execution>
>         </executions>
>        </plugin>
>      </plugins>
>   </build>
> </project>
> The assembly:
> <assembly>
>   <id>jar-with-dependencies</id>
>   <formats>
>     <format>jar</format>
>   </formats>
>   <includeBaseDirectory>false</includeBaseDirectory>
>   <dependencySets>
>     <dependencySet>
>        <unpack>true</unpack>
>        
>        <unpackOptions>
>           <excludes>
>              <exclude>*.properties</exclude>
>           </excludes>
>         </unpackOptions>
>         
>     </dependencySet>
>   </dependencySets>
>   <fileSets>
>     <fileSet>
>       <directory>target/classes</directory>
>     </fileSet>
>   </fileSets>
> </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

        

Mime
View raw message