[jira] Commented: (MASSEMBLY-73) Sharing a default assembly descriptor across sub modules

2008-09-02 Thread JIRA

[ 
http://jira.codehaus.org/browse/MASSEMBLY-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=146703#action_146703
 ] 

Grégory Joseph commented on MASSEMBLY-73:
-

I surprisingly had to add {code}configuration
  ignoreMissingDescriptortrue/ignoreMissingDescriptor
/configuration{code} to the assembly plugin configuration when trying this 
again today. How come this could have changed ?

Also, a little bump on the question above.

 Sharing a default assembly descriptor across sub modules
 

 Key: MASSEMBLY-73
 URL: http://jira.codehaus.org/browse/MASSEMBLY-73
 Project: Maven 2.x Assembly Plugin
  Issue Type: New Feature
Affects Versions: 2.0.1
Reporter: vinoth rajasekaran
Assignee: John Casey
 Fix For: 2.2-beta-2


 I have a multi-project folders setup like one shown below,
   
 root 
 |_ sub-folder1 
 |_ sub-folder2 
 |_ sub-folder3 
 |_ etc   
   
 Have a root pom.xml at the root folder level and in that I have defined 
 plugin 
 artifactIdmaven-assembly-plugin/artifactId 
 configuration 
 descriptors 
 descriptorsrc/main/assembly/descriptor.xml 
 /descriptor 
 /descriptors   
 /configuration 
 /plugin 
   
 Above descriptor works fine only if I have defined a descriptor file on the 
 src/main/assembly folder for each sub-folder1, sub-folder2, etc. 
 It would be great if maven supports me in defining a common assembly 
 descriptor and can be shared by all the sub modules from a common location.  

-- 
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-73) Sharing a default assembly descriptor across sub modules

2008-09-02 Thread John Casey (JIRA)

[ 
http://jira.codehaus.org/browse/MASSEMBLY-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=146717#action_146717
 ] 

John Casey commented on MASSEMBLY-73:
-

There's a much simpler way to accomplish all this. In fact, I've even moved 
away from using the descriptor and component packaging types in favor of it. 
Simply put all your standardized descriptors, components, etc. into a normal 
jar project, and install that project. The project directory might look 
something like this:

{noformat}
/ my-custom-assemblies
|   +- pom.xml
|   +- src
|   |   +- main
|   |   |   +- resources
|   |   |   |   +- assemblies
|   |   |   |   |   +- custom-one.xml
|   |   |   |   |   +- custom-two.xml
{noformat}

Then, in the plugin-level dependencies of the POM from which you want to create 
an assembly (or, it could be in the top-level POM for a bunch of projects you 
want to use the same assembly...you can get pretty creative using 
pluginManagement here), you simply reference that standardized 
assembly-descriptor project:

{code:xml}
build
  pluginManagement
plugins
  plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-2/version
dependencies
  dependency
groupIdorg.myproject/groupId
artifactIdmy-custom-assemblies/artifactId
version1.0/version
  /dependency
/dependencies
executions
  execution
idmake-assembly/id
phasepackage/phase
goals
  goalsingle/goal
/goals
configuration
  descriptorRefs
descriptorRefcustom-one.xml/descriptorRef
descriptorRefcustom-two.xml/descriptorRef
  /descriptorRefs
/configuration
  /execution
/executions
  /plugin
/plugins
  /pluginManagement
/build
{code}

Then, wherever you want a sub-module to create these two assemblies, you add 
this to the sub-module pom:

{code:xml}
build
  plugins
plugin
  artifactIdmaven-assembly-plugin/artifactId
/plugin
  /plugins
/build
{code}

 Sharing a default assembly descriptor across sub modules
 

 Key: MASSEMBLY-73
 URL: http://jira.codehaus.org/browse/MASSEMBLY-73
 Project: Maven 2.x Assembly Plugin
  Issue Type: New Feature
Affects Versions: 2.0.1
Reporter: vinoth rajasekaran
Assignee: John Casey
 Fix For: 2.2-beta-2


 I have a multi-project folders setup like one shown below,
   
 root 
 |_ sub-folder1 
 |_ sub-folder2 
 |_ sub-folder3 
 |_ etc   
   
 Have a root pom.xml at the root folder level and in that I have defined 
 plugin 
 artifactIdmaven-assembly-plugin/artifactId 
 configuration 
 descriptors 
 descriptorsrc/main/assembly/descriptor.xml 
 /descriptor 
 /descriptors   
 /configuration 
 /plugin 
   
 Above descriptor works fine only if I have defined a descriptor file on the 
 src/main/assembly folder for each sub-folder1, sub-folder2, etc. 
 It would be great if maven supports me in defining a common assembly 
 descriptor and can be shared by all the sub modules from a common location.  

-- 
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-73) Sharing a default assembly descriptor across sub modules

2008-09-02 Thread JIRA

[ 
http://jira.codehaus.org/browse/MASSEMBLY-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=146728#action_146728
 ] 

Grégory Joseph commented on MASSEMBLY-73:
-

ha, excellent, works indeed and is simpler. The documentation for 
descriptorRefs doesn't make this obvious, tho.

Thanks !

 Sharing a default assembly descriptor across sub modules
 

 Key: MASSEMBLY-73
 URL: http://jira.codehaus.org/browse/MASSEMBLY-73
 Project: Maven 2.x Assembly Plugin
  Issue Type: New Feature
Affects Versions: 2.0.1
Reporter: vinoth rajasekaran
Assignee: John Casey
 Fix For: 2.2-beta-2


 I have a multi-project folders setup like one shown below,
   
 root 
 |_ sub-folder1 
 |_ sub-folder2 
 |_ sub-folder3 
 |_ etc   
   
 Have a root pom.xml at the root folder level and in that I have defined 
 plugin 
 artifactIdmaven-assembly-plugin/artifactId 
 configuration 
 descriptors 
 descriptorsrc/main/assembly/descriptor.xml 
 /descriptor 
 /descriptors   
 /configuration 
 /plugin 
   
 Above descriptor works fine only if I have defined a descriptor file on the 
 src/main/assembly folder for each sub-folder1, sub-folder2, etc. 
 It would be great if maven supports me in defining a common assembly 
 descriptor and can be shared by all the sub modules from a common location.  

-- 
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-73) Sharing a default assembly descriptor across sub modules

2008-05-17 Thread Kaizer Sogiawala (JIRA)

[ 
http://jira.codehaus.org/browse/MASSEMBLY-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=135279#action_135279
 ] 

Kaizer Sogiawala commented on MASSEMBLY-73:
---

What are the plans of releasing maven-assembly-artifact-types:2.2-beta-2 ?
I see maven-assembly-plugin:2.2-beta-2 is already available

 Sharing a default assembly descriptor across sub modules
 

 Key: MASSEMBLY-73
 URL: http://jira.codehaus.org/browse/MASSEMBLY-73
 Project: Maven 2.x Assembly Plugin
  Issue Type: New Feature
Affects Versions: 2.0.1
Reporter: vinoth rajasekaran
Assignee: John Casey
 Fix For: 2.2-beta-2


 I have a multi-project folders setup like one shown below,
   
 root 
 |_ sub-folder1 
 |_ sub-folder2 
 |_ sub-folder3 
 |_ etc   
   
 Have a root pom.xml at the root folder level and in that I have defined 
 plugin 
 artifactIdmaven-assembly-plugin/artifactId 
 configuration 
 descriptors 
 descriptorsrc/main/assembly/descriptor.xml 
 /descriptor 
 /descriptors   
 /configuration 
 /plugin 
   
 Above descriptor works fine only if I have defined a descriptor file on the 
 src/main/assembly folder for each sub-folder1, sub-folder2, etc. 
 It would be great if maven supports me in defining a common assembly 
 descriptor and can be shared by all the sub modules from a common location.  

-- 
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-73) Sharing a default assembly descriptor across sub modules

2007-11-19 Thread Wouter Hermeling (JIRA)

[ 
http://jira.codehaus.org/browse/MASSEMBLY-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_114213
 ] 

Wouter Hermeling commented on MASSEMBLY-73:
---

I'm confused. Why not choose for uploading the assembly descriptor in a 
repository like it is done for the site.xml of the site plugin???

With this solution:
* If i want to use the solution above, i have to change the packaging of my 
parent project to: assembly-descriptor
* i cannot to reuse an assembly descriptor in another project (with a different 
parent pom hierarchy

NOTE: Since i require this functionality, i might implement a site-plugin like 
solution and post the patch here.

 Sharing a default assembly descriptor across sub modules
 

 Key: MASSEMBLY-73
 URL: http://jira.codehaus.org/browse/MASSEMBLY-73
 Project: Maven 2.x Assembly Plugin
  Issue Type: New Feature
Affects Versions: 2.0.1
Reporter: vinoth rajasekaran
Assignee: John Casey
 Fix For: 2.2-beta-2


 I have a multi-project folders setup like one shown below,
   
 root 
 |_ sub-folder1 
 |_ sub-folder2 
 |_ sub-folder3 
 |_ etc   
   
 Have a root pom.xml at the root folder level and in that I have defined 
 plugin 
 artifactIdmaven-assembly-plugin/artifactId 
 configuration 
 descriptors 
 descriptorsrc/main/assembly/descriptor.xml 
 /descriptor 
 /descriptors   
 /configuration 
 /plugin 
   
 Above descriptor works fine only if I have defined a descriptor file on the 
 src/main/assembly folder for each sub-folder1, sub-folder2, etc. 
 It would be great if maven supports me in defining a common assembly 
 descriptor and can be shared by all the sub modules from a common location.  

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