You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Usman Muhammed Syed (JIRA)" <ji...@codehaus.org> on 2009/03/10 16:46:13 UTC

[jira] Created: (MASSEMBLY-398) ${artifactId}.${extension} is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10

<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping> is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: MASSEMBLY-398
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-398
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
            Reporter: Usman Muhammed Syed


Maven Assembly Syntax:
<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
working with Maven 2.0.4 but with Maven 2.0.10, it creates all the jar file with one single name which is the artificat id of the project and .${extension} as the filename extension. Here is my clientAssembly file.

<assembly>
	<formats>
		<format>zip</format>
	</formats>
	<includeBaseDirectory>false</includeBaseDirectory>
	<fileSets>
		<fileSet>
			<directory>
				../../kiosk/presentation-war/src/main/webapp/images
			</directory>
			<outputDirectory>/images/</outputDirectory>
		</fileSet>
		<fileSet>
			<outputDirectory>/images/</outputDirectory>
		</fileSet>
	</fileSets>
	<dependencySets>
		<dependencySet>
			<outputDirectory>/images/</outputDirectory>
			<!-- The line below is not working in newer versions of Maven. Working with Maven included in Maestro 1.1. A regression in Maven -->
			<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
			<unpack>false</unpack>
			<scope>runtime</scope>
			<includes>
				<include>commons-logging:commons-logging</include>
				<include>org.apache.log4j:log4j</include>
				<include>idl:idl</include>
				<include>jacorb:jacorb</include>
				<include>xerces:xercesImpl</include>
				<include>xml-apis:xml-apis</include>
				<!--<include>org.netscape.plugin:plugin</include>-->
				
			</includes>
		</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

        

[jira] Commented: (MASSEMBLY-398) ${artifactId}.${extension} is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168780#action_168780 ] 

John Casey commented on MASSEMBLY-398:
--------------------------------------

Try ${artifact.artifactId} and ${artifact.extension} instead...that should work.

> <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping> is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-398
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-398
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>            Reporter: Usman Muhammed Syed
>
> Maven Assembly Syntax:
> <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
> working with Maven 2.0.4 but with Maven 2.0.10, it creates all the jar file with one single name which is the artificat id of the project and .${extension} as the filename extension. Here is my clientAssembly file.
> <assembly>
> 	<formats>
> 		<format>zip</format>
> 	</formats>
> 	<includeBaseDirectory>false</includeBaseDirectory>
> 	<fileSets>
> 		<fileSet>
> 			<directory>
> 				../../kiosk/presentation-war/src/main/webapp/images
> 			</directory>
> 			<outputDirectory>/images/</outputDirectory>
> 		</fileSet>
> 		<fileSet>
> 			<outputDirectory>/images/</outputDirectory>
> 		</fileSet>
> 	</fileSets>
> 	<dependencySets>
> 		<dependencySet>
> 			<outputDirectory>/images/</outputDirectory>
> 			<!-- The line below is not working in newer versions of Maven. Working with Maven included in Maestro 1.1. A regression in Maven -->
> 			<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
> 			<unpack>false</unpack>
> 			<scope>runtime</scope>
> 			<includes>
> 				<include>commons-logging:commons-logging</include>
> 				<include>org.apache.log4j:log4j</include>
> 				<include>idl:idl</include>
> 				<include>jacorb:jacorb</include>
> 				<include>xerces:xercesImpl</include>
> 				<include>xml-apis:xml-apis</include>
> 				<!--<include>org.netscape.plugin:plugin</include>-->
> 				
> 			</includes>
> 		</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

        

[jira] Commented: (MASSEMBLY-398) ${artifactId}.${extension} is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10

Posted by "Usman Muhammed Syed (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168778#action_168778 ] 

Usman Muhammed Syed commented on MASSEMBLY-398:
-----------------------------------------------

Is there a newer syntax?


> <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping> is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-398
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-398
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>            Reporter: Usman Muhammed Syed
>
> Maven Assembly Syntax:
> <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
> working with Maven 2.0.4 but with Maven 2.0.10, it creates all the jar file with one single name which is the artificat id of the project and .${extension} as the filename extension. Here is my clientAssembly file.
> <assembly>
> 	<formats>
> 		<format>zip</format>
> 	</formats>
> 	<includeBaseDirectory>false</includeBaseDirectory>
> 	<fileSets>
> 		<fileSet>
> 			<directory>
> 				../../kiosk/presentation-war/src/main/webapp/images
> 			</directory>
> 			<outputDirectory>/images/</outputDirectory>
> 		</fileSet>
> 		<fileSet>
> 			<outputDirectory>/images/</outputDirectory>
> 		</fileSet>
> 	</fileSets>
> 	<dependencySets>
> 		<dependencySet>
> 			<outputDirectory>/images/</outputDirectory>
> 			<!-- The line below is not working in newer versions of Maven. Working with Maven included in Maestro 1.1. A regression in Maven -->
> 			<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
> 			<unpack>false</unpack>
> 			<scope>runtime</scope>
> 			<includes>
> 				<include>commons-logging:commons-logging</include>
> 				<include>org.apache.log4j:log4j</include>
> 				<include>idl:idl</include>
> 				<include>jacorb:jacorb</include>
> 				<include>xerces:xercesImpl</include>
> 				<include>xml-apis:xml-apis</include>
> 				<!--<include>org.netscape.plugin:plugin</include>-->
> 				
> 			</includes>
> 		</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

        

[jira] Closed: (MASSEMBLY-398) ${artifactId}.${extension} is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-398.
--------------------------------

    Resolution: Won't Fix
      Assignee: John Casey

use ${artifact.artifactId} and ${artifact.extension} instead.

> <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping> is working on Maven 2.0.4 (provided with Maestro 1.1) but not working with Maven 2.0.10
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-398
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-398
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>            Reporter: Usman Muhammed Syed
>            Assignee: John Casey
>
> Maven Assembly Syntax:
> <outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
> working with Maven 2.0.4 but with Maven 2.0.10, it creates all the jar file with one single name which is the artificat id of the project and .${extension} as the filename extension. Here is my clientAssembly file.
> <assembly>
> 	<formats>
> 		<format>zip</format>
> 	</formats>
> 	<includeBaseDirectory>false</includeBaseDirectory>
> 	<fileSets>
> 		<fileSet>
> 			<directory>
> 				../../kiosk/presentation-war/src/main/webapp/images
> 			</directory>
> 			<outputDirectory>/images/</outputDirectory>
> 		</fileSet>
> 		<fileSet>
> 			<outputDirectory>/images/</outputDirectory>
> 		</fileSet>
> 	</fileSets>
> 	<dependencySets>
> 		<dependencySet>
> 			<outputDirectory>/images/</outputDirectory>
> 			<!-- The line below is not working in newer versions of Maven. Working with Maven included in Maestro 1.1. A regression in Maven -->
> 			<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
> 			<unpack>false</unpack>
> 			<scope>runtime</scope>
> 			<includes>
> 				<include>commons-logging:commons-logging</include>
> 				<include>org.apache.log4j:log4j</include>
> 				<include>idl:idl</include>
> 				<include>jacorb:jacorb</include>
> 				<include>xerces:xercesImpl</include>
> 				<include>xml-apis:xml-apis</include>
> 				<!--<include>org.netscape.plugin:plugin</include>-->
> 				
> 			</includes>
> 		</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