뉴스/소식

Apache Source-Release Assembly Descriptor 1.0.2 릴리즈

노안돼지 2009. 11. 18. 10:23

The Maven team is pleased to announce the release of Apache Source-Release Assembly Descriptor, version 1.0.2.

This is a standardized assembly descriptor for use in the maven-assembly-plugin. Source-release artifacts are archives which contain the full project structure (sources only, no build output) that are the subject of an ASF release vote.

The new version of the descriptor fixes the erroneous exclusion of some file types like IDE files from the source archive even if those files are located in the src/ directory tree of a project, i.e. denote actual project sources (e.g. required for unit testing).

http://maven.apache.org/apache-resource-bundles/apache-source-release-assembly-descriptor/

This new descriptor will eventually be incorporated into the Apache Parent POM. If you want to try out the source-release descriptor in the meantime, you can include a configuration like the following:

<build>
 <plugins>
   <plugin>
     <artifactId>maven-assembly-plugin</artifactId>
     <version>2.2-beta-4</version>

     <dependencies>
       <dependency>
         <groupId>org.apache.apache.resources</groupId>

<artifactId>apache-source-release-assembly-descriptor</artifactId>
         <version>1.0.2</version>
       </dependency>
       <dependency>
         <!-- NOTE: The fix for PLXUTILS-120 is crucial for the new assembly descriptor -->
         <groupId>org.codehaus.plexus</groupId>
         <artifactId>plexus-utils</artifactId>
         <version>2.0.1</version>
       </dependency>
     </dependencies>

     <executions>
       <execution>
         <id>source-release</id>
         <phase>package</phase>
         <goals>
           <goal>single</goal>
         </goals>
         <configuration>
           <descriptorRefs>
             <descriptorRef>source-release</descriptorRef>
           </descriptorRefs>
           <tarLongFileMode>gnu</tarLongFileMode>
           <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
         </configuration>
       </execution>
     </executions>
   </plugin>
 </plugins>
</build>



Enjoy, The Maven Team