You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2012/11/02 11:18:13 UTC

[jira] (MASSEMBLY-276) pom.properties and pom.xml missing from jar generated by jar-with-dependencies

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

Dennis Lundberg closed MASSEMBLY-276.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2-beta-2
    
> pom.properties and pom.xml missing from jar generated by jar-with-dependencies
> ------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-276
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-276
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-1
>            Reporter: Jaan Vajakas
>             Fix For: 2.2-beta-2
>
>
> How to reproduce:
> * create a new project with
>  mvn archetype:create -DgroupId=org.sample -DartifactId=sample2
> * modify the pom.xml, adding maven-assembly-plugin configuration (see below)
> * run mvn assembly:directory or mvn assemby:assembly
> Expected result: the created directory target/sample2-1.0-SNAPSHOT-jar-with-dependencies.dir or JAR target/sample2-1.0-SNAPSHOT-jar-with-dependencies.jar should contain files META-INF/maven/org.sample/sample2/pom.properties and META-INF/maven/org.sample/sample2/pom.xml,
> as in the example in http://maven.apache.org/plugins/maven-assembly-plugin/usage.html.
> Actual result: no pom.xml and pom.properties in the created directory or JAR.
> This is the pom.xml:
> {code:xml}
> <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>org.sample</groupId>
>   <artifactId>sample2</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>sample2</name>
>   <url>http://maven.apache.org</url>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>   <build>
>     <plugins>
>         <plugin>
>           <artifactId>maven-assembly-plugin</artifactId>
> 	  <version>2.2-beta-1</version>
>           <configuration>
>             <descriptorRefs>
>               <descriptorRef>jar-with-dependencies</descriptorRef>
>             </descriptorRefs>
>           </configuration>
>         </plugin>
>       </plugins>
>   </build>
>   <pluginRepositories>
>       <pluginRepository>
>       <id>pluginrepo</id>
>       <url>http://repo1.maven.org/maven2</url>
>       <releases>
>         <enabled>true</enabled>
>       </releases>
>       <snapshots>
>         <enabled>true</enabled>
>       </snapshots>
>     </pluginRepository>
>   </pluginRepositories>
> </project>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira