[jboss-dev-forums] [Design of JBoss Build System] - assembly manifest entries

scott.stark@jboss.org do-not-reply at jboss.com
Sat Dec 15 11:48:33 EST 2007


Why doesn't the assembly plugin support the same manifest configuration as the jar plugin? The docs for the assembly plugin refer to the jar plugin for manfiest info, but the following does not work:


  |       <plugin>
  | 
  |         <groupId>org.apache.maven.plugins</groupId>
  | 
  |         <artifactId>maven-assembly-plugin</artifactId>
  | 
  |         <version>2.1</version>
  | 
  |         <executions>
  | 
  |           <execution>
  | 
  |             <phase>package</phase>
  | 
  |             <goals>
  | 
  |               <goal>attached</goal>
  | 
  |             </goals>
  | 
  |           </execution>
  | 
  |         </executions>
  | 
  |         <configuration>
  |           <archive>
  |             <manifest>
  |               <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  |               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  |             </manifest>
  |           </archive>
  |           <descriptors>
  | 
  |             <descriptor>assembly/bin.xml</descriptor>
  | 
  |             <descriptor>assembly/sources.xml</descriptor>
  | 
  |           </descriptors>
  | 
  |         </configuration>
  | 
  |         <inherited>false</inherited>
  | 
  |       </plugin>
  | 


  | [INFO] ------------------------------------------------------------------------
  | [ERROR] BUILD ERROR
  | [INFO] ------------------------------------------------------------------------
  | [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-assembly-plugin:2.1
  | 
  | 
  | 
  | Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'addDefaultSpecificationEntries'
  | [INFO] ------------------------------------------------------------------------
  | [INFO] For more information, run Maven with the -e switch
  | [INFO] ------------------------------------------------------------------------
  | [INFO] Total time: 2 seconds
  | [INFO] Finished at: Sat Dec 15 08:45:45 PST 2007
  | [INFO] Final Memory: 21M/293M
  | [INFO] ------------------------------------------------------------------------
  | [starksm at succubus security-jboss-sx]$
  | 
  | 

why doesn't this work? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113170#4113170

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113170



More information about the jboss-dev-forums mailing list