Re: Assembly plugin Question

2009-07-19 Thread Jim Collings
Brian E. Fox wrote:
> Make a new module that builds your assembly and place a dependency on
> the war so that it will run last.

Hey, that's a great idea! That will also allow me to separate the
assembly from the rest, making is easier for other Dev's to understand.
Thanks! :-)


Jim C.



signature.asc
Description: OpenPGP digital signature


Re: Assembly plugin Question

2009-07-18 Thread Brian E. Fox
Make a new module that builds your assembly and place a dependency on  
the war so that it will run last.


--Brian (mobile)


On Jul 17, 2009, at 9:10 AM, Jim Collings  wrote:


So I have a project which builds several submodules but culminates in
the construction of a war file out of those submodules.  In the end,
all I need is the war file. How can I run an assembly AFTER and ONLY
AFTER everything else is done and exclusive of the submodules?


Jim C.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Assembly plugin Question

2009-07-17 Thread Jim Collings
I figured a way to make this work.  The way the project is arranged,
there is the parent module... but there is also a submodule which
generates the war and has all the others as dependencies. Put the
assembly code in this module and it only runs when that module runs.
:-)

On Fri, Jul 17, 2009 at 9:36 AM, Jim Collings wrote:
> So in other terms, I want to run an assembly in a specified phase for
> a specified module.
>
> On Fri, Jul 17, 2009 at 9:10 AM, Jim Collings wrote:
>> So I have a project which builds several submodules but culminates in
>> the construction of a war file out of those submodules.  In the end,
>> all I need is the war file. How can I run an assembly AFTER and ONLY
>> AFTER everything else is done and exclusive of the submodules?
>>
>>
>> Jim C.
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Assembly plugin Question

2009-07-17 Thread Jim Collings
So in other terms, I want to run an assembly in a specified phase for
a specified module.

On Fri, Jul 17, 2009 at 9:10 AM, Jim Collings wrote:
> So I have a project which builds several submodules but culminates in
> the construction of a war file out of those submodules.  In the end,
> all I need is the war file. How can I run an assembly AFTER and ONLY
> AFTER everything else is done and exclusive of the submodules?
>
>
> Jim C.
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Assembly Plugin question, unpacking a fileset

2007-09-03 Thread John Casey
We don't support that at present, unfortunately. I think you'd  
probably have to use a different plugin to unpack the file/fileset to  
some location, then include that location in your assembly...either  
that, or somehow arrange to refer to these file(s) as artifacts from  
the Maven repository...then you can use a dependencySet to handle it.


It might be a nice option, though...you're welcome to submit it as a  
feature request: http://jira.codehaus.org/browse/MASSEMBLY


Thanks,

-john

On Aug 30, 2007, at 12:29 PM, Marc-Andre Houle wrote:



Hello everybody.

i want to use the assembly plug-in to generate a tarball of the  
project I am
working on.  Everything is working fine and this plug-in have just  
saved my

life...

But one of the things I haven't found while searching on the list  
and on the

examples, is how can I unpack a fileset.  I got a zip file containing
different files.  They have to be transfered at a specific place in  
the

assembly and have to be unpacked.

But, from what I have seen, I would need a fileset or a simple  
file.  But

either of them offer the possibility to unpack.

Is there a possible workaround?  Or maybe it can be a future  
enhencment to

the assembly descriptor/plugin.

Thanks in advance for helping me.

Marc
--
View this message in context: http://www.nabble.com/Assembly-Plugin- 
question%2C-unpacking-a-fileset-tf4355399s177.html#a12411037

Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john




Re: Assembly plugin question

2007-08-10 Thread John Casey
I think this is *almost* right, and should work like a champ, though  
I haven't ever tried it either.


What you'll need to do is have a project that looks like this:

my-assembly-descriptor
|
+- pom.xml
|
+- src
|
+- main
|
+- resources
|
+- assemblies
|
+- my-assembly.xml


The pom will look just like any other normal 'jar' packaging pom. The  
my-assembly.xml file will be a normal assembly descriptor.


Now, to use it, you'll need to add this new artifact as a plugin- 
level dependency in your main prjoect's pom.xml, like this:




  [...]

  

  [...]

  
maven-assembly-plugin


  
org.myproject.assemblies
my-assembly-descriptor
1.0
  


[...]
  

  



I think you've got a good idea, Tim, and I think these minor tweaks  
will make it work.


Good luck, Adam.

-john


On Aug 10, 2007, at 3:37 AM, Tim Kettler wrote:


Hi,

-- Beware: Untested Instructions --  :-)

I.
Create a new project, put the assembly descriptors you want to have  
available across projects in 'src/resources/assemblies' and install/ 
deploy the artifact to your local/internal repository.


II.
In your projects configure the plugin like this:

  
org.apache.maven.plugins
maven-assembly-plugin

  

  


  
name-of-your-descriptor
  

  

-Tim

Adam schrieb:

Hey all, question about the assembly plugin.
Is there a way to specify one assembly.xml descriptor within a POM
that is global to all projects and to have it inherit down to all
sub-projects?  Right now when I run the execution phase the assembly
is tied to from a sub-project of a parent project (that is in turn a
child to the global POM) I get an error saying it can not locate the
descriptor.  I would like to only have one descriptor for all  
projects
and have it in the master parent POM.  That way I can specify a  
global

execution phase so all sources get added into each project every time
they are built but, I only want ZIP files, not TAR and tarball as in
the default.
Thanks in advance,
Adam
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john




Re: Assembly plugin question

2007-08-10 Thread Adam
Is there any way to do it with a configuration like this by adding the
plugin abd descriptor to a super POM and to have it inherit down
without having to specify the assembly in each project.  Right now
this is in the super POM:



maven-assembly-plugin



src




install

attached   






That keeps from having to update it across all projects.  I'd like to
be able to add a descriptor but, not have to add it to every project
if at all possible.

OR

Is there any way with the above src descriptorRef to only get back one
of the three source archives?

Thanks,

Adam


On 8/10/07, Tim Kettler <[EMAIL PROTECTED]> wrote:
> Hi,
>
> -- Beware: Untested Instructions --  :-)
>
> I.
> Create a new project, put the assembly descriptors you want to have
> available across projects in 'src/resources/assemblies' and
> install/deploy the artifact to your local/internal repository.
>
> II.
> In your projects configure the plugin like this:
>
>
>  org.apache.maven.plugins
>  maven-assembly-plugin
>  
>
>  
>
>  
>  
>
>  name-of-your-descriptor
>
>  
>
>
> -Tim
>
> Adam schrieb:
> > Hey all, question about the assembly plugin.
> >
> > Is there a way to specify one assembly.xml descriptor within a POM
> > that is global to all projects and to have it inherit down to all
> > sub-projects?  Right now when I run the execution phase the assembly
> > is tied to from a sub-project of a parent project (that is in turn a
> > child to the global POM) I get an error saying it can not locate the
> > descriptor.  I would like to only have one descriptor for all projects
> > and have it in the master parent POM.  That way I can specify a global
> > execution phase so all sources get added into each project every time
> > they are built but, I only want ZIP files, not TAR and tarball as in
> > the default.
> >
> > Thanks in advance,
> >
> > Adam
> > [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Assembly plugin question

2007-08-10 Thread Tim Kettler

Hi,

-- Beware: Untested Instructions --  :-)

I.
Create a new project, put the assembly descriptors you want to have 
available across projects in 'src/resources/assemblies' and 
install/deploy the artifact to your local/internal repository.


II.
In your projects configure the plugin like this:

  
org.apache.maven.plugins
maven-assembly-plugin

  

  


  
name-of-your-descriptor
  

  

-Tim

Adam schrieb:

Hey all, question about the assembly plugin.

Is there a way to specify one assembly.xml descriptor within a POM
that is global to all projects and to have it inherit down to all
sub-projects?  Right now when I run the execution phase the assembly
is tied to from a sub-project of a parent project (that is in turn a
child to the global POM) I get an error saying it can not locate the
descriptor.  I would like to only have one descriptor for all projects
and have it in the master parent POM.  That way I can specify a global
execution phase so all sources get added into each project every time
they are built but, I only want ZIP files, not TAR and tarball as in
the default.

Thanks in advance,

Adam
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]