You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Leandro Aispuru (JIRA)" <ji...@codehaus.org> on 2010/03/03 19:10:55 UTC

[jira] Created: (MASSEMBLY-476) Use classpath resources as fileSets

Use classpath resources as fileSets
-----------------------------------

                 Key: MASSEMBLY-476
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-476
             Project: Maven 2.x Assembly Plugin
          Issue Type: Improvement
    Affects Versions: 2.2-beta-4
         Environment: Operating System : Ubuntu 8.04
            Reporter: Leandro Aispuru


We want to do assemblies of our projects using shared assembly descriptors (http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html). Also, we want to include some directories and files in the assemblies, but we want to store that particular directories and/or files inside the shared descriptor artifact JAR.
For example in our shared descriptor jar is included a file src/main/assembly/files/startup/startup.sh and we want to have the assembly generated containing that file.
Now when we execute the assembly plugin on a project using the shared descriptor, files contained inside sharedDescriptor.jar aren't copied into the assembly.

The shared assembly descriptor has a fileSet defined like this:

  	<fileSet>
  		<directory>files</directory>
  		<outputDirectory></outputDirectory>
  		<filtered>true</filtered>
  		<includes>
			<include>**/*.sh</include>
			<include>**/*.csh</include>
  		</includes>
		<fileMode>0755</fileMode>
	</fileSet>

And the *.sh and *.csh files are stored inside sharedDescriptors.jar.

We have a project "A" and "B" that use the shared descriptor. We want to include sh and csh files on the assembly of A and B but the only way to do this is that the sh and csh files are duplicated in the file structure of both projects in /files directory instead of instead of have them only one place ( at /files directory in sharedDescriptors project)

Is it possible to provide these files (*.csh, *.sh) within the shared descriptor jar?
If not, we propose extending the assembly plugin so it can have defined a FileSet in the form:

  	<fileSet>
  		<directory>classpath:/assembly/files</directory>
		...
	</fileSet>

-- 
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] (MASSEMBLY-476) Use classpath resources as fileSets

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MASSEMBLY-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MASSEMBLY-476.
-------------------------------------

    Resolution: Not A Bug
    
> Use classpath resources as fileSets
> -----------------------------------
>
>                 Key: MASSEMBLY-476
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-476
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2-beta-4
>         Environment: Operating System : Ubuntu 8.04
>            Reporter: Leandro Aispuru
>
> We want to do assemblies of our projects using shared assembly descriptors (http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html). Also, we want to include some directories and files in the assemblies, but we want to store that particular directories and/or files inside the shared descriptor artifact JAR.
> For example in our shared descriptor jar is included a file src/main/assembly/files/startup/startup.sh and we want to have the assembly generated containing that file.
> Now when we execute the assembly plugin on a project using the shared descriptor, files contained inside sharedDescriptor.jar aren't copied into the assembly.
> The shared assembly descriptor has a fileSet defined like this:
> {code:xml}
>   	<fileSet>
>   		<directory>files</directory>
>   		<outputDirectory></outputDirectory>
>   		<filtered>true</filtered>
>   		<includes>
> 			<include>**/*.sh</include>
> 			<include>**/*.csh</include>
>   		</includes>
> 		<fileMode>0755</fileMode>
> 	</fileSet>
> {code}
> And the *.sh and *.csh files are stored inside sharedDescriptors.jar.
> We have a project "A" and "B" that use the shared descriptor. We want to include sh and csh files on the assembly of A and B but the only way to do this is that the sh and csh files are duplicated in the file structure of both projects in /files directory instead of instead of have them only one place ( at /files directory in sharedDescriptors project)
> Is it possible to provide these files (*.csh, *.sh) within the shared descriptor jar?
> If not, we propose extending the assembly plugin so it can have defined a FileSet in the form:
> {code:xml}
>   	<fileSet>
>   		<directory>classpath:/assembly/files</directory>
> 		...
> 	</fileSet>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MASSEMBLY-476) Use classpath resources as fileSets

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MASSEMBLY-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MASSEMBLY-476:
--------------------------------------

    Description: 
We want to do assemblies of our projects using shared assembly descriptors (http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html). Also, we want to include some directories and files in the assemblies, but we want to store that particular directories and/or files inside the shared descriptor artifact JAR.
For example in our shared descriptor jar is included a file src/main/assembly/files/startup/startup.sh and we want to have the assembly generated containing that file.
Now when we execute the assembly plugin on a project using the shared descriptor, files contained inside sharedDescriptor.jar aren't copied into the assembly.

The shared assembly descriptor has a fileSet defined like this:
{code:xml}
  	<fileSet>
  		<directory>files</directory>
  		<outputDirectory></outputDirectory>
  		<filtered>true</filtered>
  		<includes>
			<include>**/*.sh</include>
			<include>**/*.csh</include>
  		</includes>
		<fileMode>0755</fileMode>
	</fileSet>
{code}

And the *.sh and *.csh files are stored inside sharedDescriptors.jar.

We have a project "A" and "B" that use the shared descriptor. We want to include sh and csh files on the assembly of A and B but the only way to do this is that the sh and csh files are duplicated in the file structure of both projects in /files directory instead of instead of have them only one place ( at /files directory in sharedDescriptors project)

Is it possible to provide these files (*.csh, *.sh) within the shared descriptor jar?
If not, we propose extending the assembly plugin so it can have defined a FileSet in the form:

{code:xml}
  	<fileSet>
  		<directory>classpath:/assembly/files</directory>
		...
	</fileSet>
{code}


  was:
We want to do assemblies of our projects using shared assembly descriptors (http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html). Also, we want to include some directories and files in the assemblies, but we want to store that particular directories and/or files inside the shared descriptor artifact JAR.
For example in our shared descriptor jar is included a file src/main/assembly/files/startup/startup.sh and we want to have the assembly generated containing that file.
Now when we execute the assembly plugin on a project using the shared descriptor, files contained inside sharedDescriptor.jar aren't copied into the assembly.

The shared assembly descriptor has a fileSet defined like this:

  	<fileSet>
  		<directory>files</directory>
  		<outputDirectory></outputDirectory>
  		<filtered>true</filtered>
  		<includes>
			<include>**/*.sh</include>
			<include>**/*.csh</include>
  		</includes>
		<fileMode>0755</fileMode>
	</fileSet>

And the *.sh and *.csh files are stored inside sharedDescriptors.jar.

We have a project "A" and "B" that use the shared descriptor. We want to include sh and csh files on the assembly of A and B but the only way to do this is that the sh and csh files are duplicated in the file structure of both projects in /files directory instead of instead of have them only one place ( at /files directory in sharedDescriptors project)

Is it possible to provide these files (*.csh, *.sh) within the shared descriptor jar?
If not, we propose extending the assembly plugin so it can have defined a FileSet in the form:

  	<fileSet>
  		<directory>classpath:/assembly/files</directory>
		...
	</fileSet>

    
> Use classpath resources as fileSets
> -----------------------------------
>
>                 Key: MASSEMBLY-476
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-476
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2-beta-4
>         Environment: Operating System : Ubuntu 8.04
>            Reporter: Leandro Aispuru
>
> We want to do assemblies of our projects using shared assembly descriptors (http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html). Also, we want to include some directories and files in the assemblies, but we want to store that particular directories and/or files inside the shared descriptor artifact JAR.
> For example in our shared descriptor jar is included a file src/main/assembly/files/startup/startup.sh and we want to have the assembly generated containing that file.
> Now when we execute the assembly plugin on a project using the shared descriptor, files contained inside sharedDescriptor.jar aren't copied into the assembly.
> The shared assembly descriptor has a fileSet defined like this:
> {code:xml}
>   	<fileSet>
>   		<directory>files</directory>
>   		<outputDirectory></outputDirectory>
>   		<filtered>true</filtered>
>   		<includes>
> 			<include>**/*.sh</include>
> 			<include>**/*.csh</include>
>   		</includes>
> 		<fileMode>0755</fileMode>
> 	</fileSet>
> {code}
> And the *.sh and *.csh files are stored inside sharedDescriptors.jar.
> We have a project "A" and "B" that use the shared descriptor. We want to include sh and csh files on the assembly of A and B but the only way to do this is that the sh and csh files are duplicated in the file structure of both projects in /files directory instead of instead of have them only one place ( at /files directory in sharedDescriptors project)
> Is it possible to provide these files (*.csh, *.sh) within the shared descriptor jar?
> If not, we propose extending the assembly plugin so it can have defined a FileSet in the form:
> {code:xml}
>   	<fileSet>
>   		<directory>classpath:/assembly/files</directory>
> 		...
> 	</fileSet>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MASSEMBLY-476) Use classpath resources as fileSets

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MASSEMBLY-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312803#comment-312803 ] 

Dennis Lundberg commented on MASSEMBLY-476:
-------------------------------------------

For this to work you need to do two things:

1. Add sharedDescriptors.jar as a dependency for maven-assembly-plugin. This is so the Assembly plugin can use the shared assembly descriptors.

2. Add sharedDescriptors.jar as a dependency to projects A and B. This is so that the .sh files in the jar are available as resources that can then be assembled by the Assembly plugin.
                
> Use classpath resources as fileSets
> -----------------------------------
>
>                 Key: MASSEMBLY-476
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-476
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2-beta-4
>         Environment: Operating System : Ubuntu 8.04
>            Reporter: Leandro Aispuru
>
> We want to do assemblies of our projects using shared assembly descriptors (http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html). Also, we want to include some directories and files in the assemblies, but we want to store that particular directories and/or files inside the shared descriptor artifact JAR.
> For example in our shared descriptor jar is included a file src/main/assembly/files/startup/startup.sh and we want to have the assembly generated containing that file.
> Now when we execute the assembly plugin on a project using the shared descriptor, files contained inside sharedDescriptor.jar aren't copied into the assembly.
> The shared assembly descriptor has a fileSet defined like this:
> {code:xml}
>   	<fileSet>
>   		<directory>files</directory>
>   		<outputDirectory></outputDirectory>
>   		<filtered>true</filtered>
>   		<includes>
> 			<include>**/*.sh</include>
> 			<include>**/*.csh</include>
>   		</includes>
> 		<fileMode>0755</fileMode>
> 	</fileSet>
> {code}
> And the *.sh and *.csh files are stored inside sharedDescriptors.jar.
> We have a project "A" and "B" that use the shared descriptor. We want to include sh and csh files on the assembly of A and B but the only way to do this is that the sh and csh files are duplicated in the file structure of both projects in /files directory instead of instead of have them only one place ( at /files directory in sharedDescriptors project)
> Is it possible to provide these files (*.csh, *.sh) within the shared descriptor jar?
> If not, we propose extending the assembly plugin so it can have defined a FileSet in the form:
> {code:xml}
>   	<fileSet>
>   		<directory>classpath:/assembly/files</directory>
> 		...
> 	</fileSet>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira