You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Henri Tremblay (JIRA)" <ji...@codehaus.org> on 2007/01/23 02:48:16 UTC

[jira] Commented: (MASSEMBLY-179) Assembled jar includes artifact names in path

    [ http://jira.codehaus.org/browse/MASSEMBLY-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85730 ] 

Henri Tremblay commented on MASSEMBLY-179:
------------------------------------------

I think I've encountered the same issue. I use, in 2.1, to have a jar containing a merge of jars from submodules. No, inside the final jar, there is a root dir for project.

e.g.:

parent
  sub-x
  sub-y

will create a jar containing:

sub-x-0.1/.../my classes from sub-x
sub-y-0.1/.../my classes from sub-y

For <sources/>, the solution was to add <includeModuleDirectory>false</includeModuleDirectory> but it isn't supported for <binaries>. If definetly should and it it quite critical... I can't build my application anymore with this plugin.


> Assembled jar includes artifact names in path
> ---------------------------------------------
>
>                 Key: MASSEMBLY-179
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-179
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Jonathan Komorek
>            Priority: Critical
>
> This issue does not occur in 2.1 and began occurring in 2.2-SNAPSHOT (roughly)  a couple months ago.
> After assembling a jar, the path for each of the included files begins with what seems to be ${artifactId}-${version}.${packaging}
> This includes files from dependent jars and files from sub-modules - all files.
> The plugin is configured in the POM as follows:
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-assembly-plugin</artifactId>
>         <executions>
> 		  <execution>
> 		    <id>1</id>
> 		    <phase>package</phase>
> 		    <goals>
> 			  <goal>attached</goal>
> 			</goals>
>           </execution>
>          </executions>
>         <version>2.2-SNAPSHOT</version>
>         <configuration>
>           <descriptor>assembly.xml</descriptor>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> The entire assembly.xml is as follows:
> <assembly>
>   <id>dependencies</id>
>   <formats>
>     <format>jar</format>
>   </formats>
>   <includeBaseDirectory>false</includeBaseDirectory>
>   <dependencySets>
>     <dependencySet>
>       <outputDirectory>/</outputDirectory>
>       <unpack>true</unpack>
>       <scope>runtime</scope>
>     </dependencySet>
>   </dependencySets>
> </assembly>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira