[ https://jira.codehaus.org/browse/MASSEMBLY-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=318137#comment-318137 ]
David Bernard commented on MASSEMBLY-196: ----------------------------------------- Same issue with maven 3.0.4 and maven-assembly-plugin 2.4 The jar of the project is missing (pom.xml is present) from the generated repository. It's a crappy but I used the following work arround : {code:xml} <!-- WORKAROUND because <repository> doesn't copy project's artifact (jar), only the pom --> <fileSet> <directory>${project.build.directory}</directory> <outputDirectory>/lib/net/alchim31/runner/${project.artifactId}/${project.version}</outputDirectory> <includes> <include>${project.build.finalName}.jar</include> </includes> </fileSet> </fileSets> <repositories> <repository> <outputDirectory>/lib</outputDirectory> <includeMetadata>true</includeMetadata> <scope>runtime</scope> </repository> </repositories> {code} > use of repository assembly is no longer working > ----------------------------------------------- > > Key: MASSEMBLY-196 > URL: https://jira.codehaus.org/browse/MASSEMBLY-196 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.2-beta-1 > Reporter: Brett Porter > Assignee: John Casey > Fix For: 2.2-beta-3 > > Original Estimate: 0 minutes > Remaining Estimate: 0 minutes > > I have the following that works in 2.1: > <repositories> > <repository> > <outputDirectory>repository/releases</outputDirectory> > <includeMetadata>true</includeMetadata> > <groupVersionAlignments> > <groupVersionAlignment> > <id>org.apache.maven</id> > <version>2.0.5</version> > <excludes> > <exclude>maven-plugin-surrogate-parent</exclude> > <exclude>maven-archetype</exclude> > <exclude>maven-archetype-core</exclude> > <exclude>maven-archiver</exclude> > <exclude>maven-parent</exclude> > <exclude>maven-jxr</exclude> > <exclude>maven-plugin-tools-java</exclude> > <exclude>maven-plugin-tools-beanshell</exclude> > <exclude>maven-plugin-tools-api</exclude> > <exclude>maven-plugin-tools</exclude> > </excludes> > </groupVersionAlignment> > </groupVersionAlignments> > </repository> > </repositories> > However, in 2.2-beta-1 it results in an empty directory being created in the > assembly instead of copying the repository contents. -- 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