maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Theussl (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MPDIST-29) src distribution archive has incorrect directory structure
Date Sun, 10 Sep 2006 01:46:02 GMT
     [ http://jira.codehaus.org/browse/MPDIST-29?page=all ]

Lukas Theussl closed MPDIST-29.
-------------------------------

      Assignee: Lukas Theussl
    Resolution: Fixed

Fixed using maven.src.dir. Note that this reverts the fix for MPDIST-12, the sourceDirectory
element of the pom has to be a sub-directory of maven.src.dir.

> src distribution archive has incorrect directory structure
> ----------------------------------------------------------
>
>                 Key: MPDIST-29
>                 URL: http://jira.codehaus.org/browse/MPDIST-29
>             Project: maven-dist-plugin
>          Issue Type: Bug
>    Affects Versions: 1.7
>            Reporter: Jarkko Viinamäki
>         Assigned To: Lukas Theussl
>             Fix For: 1.7.1
>
>
> With Maven 1.1-beta-2 and maven-dist-plugin-1.7:
> if my project.xml defines:
> <build>
> <sourceDirectory>src/main/java</sourceDirectory>
> ...
> Then the dist:build-src target generates an incorrect src distribution file since the
source files are packaged to path src/foo/bar/MyClass.java instead of src/main/java/foo/bar/MyClass.java
> -
> To fix this, change the dist:prepare-src-filesystem goal in maven-dist-plugin-1.7 to
read:
> <util:available file="src">
> <ant:copy todir="${maven.dist.src.assembly.dir}/src">
> <ant:fileset dir="src" />
> </ant:copy>
> </util:available>
> This will preserve the actual directory structure.

-- 
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

       

Mime
View raw message