History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: MASSEMBLY-309
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: Michael Osipov
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Assembly Plugin

outputFileNameMapping fails and includes parent's name

Created: 14/Apr/08 05:17 AM   Updated: 14/Apr/08 05:17 AM
Component/s: None
Affects Version/s: 2.2-beta-2
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. broken_example.png
(29 kb)

2. expected_example.png
(28 kb)
Environment: Maven 2.0.9, JDK6, WinXP SP2 AND debian 4.0, Maven 2.0.8, JDK6 AND Maven Embedder m2eclipse 0.9.1


 Description  « Hide
I have created a bin assembly descriptor containing:
<moduleSets>
		<moduleSet>
			<includes>
				<include>*:jar</include>
			</includes>
			<binaries>
				<includeDependencies>false</includeDependencies>
				<outputFileNameMapping>
					fckeditor-${module.artifactId}-${module.version}.${module.extension}
				</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
		<moduleSet>
			<includes>
				<include>*:jar</include>
			</includes>
			<binaries>
				<attachmentClassifier>javadoc</attachmentClassifier>
				<includeDependencies>false</includeDependencies>
				<outputFileNameMapping>
					fckeditor-${module.artifactId}-${module.version}-${module.classifier}.${module.extension}
				</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
	</moduleSets>

The expected zip distro should look like the expected attachment but sometimes (80 %) the outcome is the broken example.
It seems like it does not resolves the module but the my parent. Browser my source here if you like.

Interesting to say if the bin distro is fine, maven reports (note the parent warning):

[INFO] [assembly:assembly]
[INFO] Reading assembly descriptor: src/main/assembly/src.xml
[INFO] Reading assembly descriptor: src/main/assembly/bin.xml
[INFO] Adding site directory to assembly : D:\workspace_\fckeditor-java\target\s
ite
[INFO] Processing sources for module project: net.fckeditor:java-demo:war:2.4-SN
APSHOT
[INFO] Processing sources for module project: net.fckeditor:java-core:jar:2.4-SN
APSHOT
[INFO] Building zip: D:\workspace_\fckeditor-java\target\fckeditor-java-2.4-SNAP
SHOT-src.zip
[WARNING] NOTE: Currently, inclusion of module dependencies may produce unpredic
table results if a version conflict occurs.
[WARNING] NOTE: Currently, inclusion of module dependencies may produce unpredic
table results if a version conflict occurs.
[INFO] Processing DependencySet (output=lib)
[WARNING] Cannot include project artifact: net.fckeditor:fckeditor-java:pom:2.4-
SNAPSHOT; it doesn't have an associated file or directory.
[INFO] Building zip: D:\workspace_\fckeditor-java\target\fckeditor-java-2.4-SNAP
SHOT-bin.zip
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] FCKeditor.Java Integration ............................ SUCCESS [32.797s]

[INFO] FCKeditor.Java Integration Core ....................... SUCCESS [15.203s]

[INFO] FCKeditor.Java Integration Demo Webapp ................ SUCCESS [4.609s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 2 seconds
[INFO] Finished at: Mon Apr 14 12:14:40 CEST 2008
[INFO] Final Memory: 18M/33M
[INFO] ------------------------------------------------------------------------

D:\workspace_\fckeditor-java>


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.