Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.1-beta-2
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
Description
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.
Issue Links
- is superceded by
-
MPDIST-29
src distribution archive has incorrect directory structure
-
Ah sorry. I didn't notice that there are separate Jira areas for all plugins. Reported this to the maven-dist-plugin subproject. This issue can be closed/deleted.