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 2011/09/23 13:32:17 UTC
[jira] Updated: (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 updated MASSEMBLY-276:
--------------------------------------
Description:
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}
was:
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:
<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>
> 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
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira