You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Timo Wolf <wo...@in.tum.de> on 2006/11/16 12:15:17 UTC

Release Plugin: Include assemblies for deploying

Hi All,

I have a multi module project with some modules that include a  
required assembly
to pack a complete application containing scripts, properties, etc.

When making a release on the top level directory, all jars, and poms  
etc get uploaded and
deployed on my repository.

Is it possible to invoke the assembly goals from some modules from  
the release plugin
and also deploy the packed applications in the repository.

When I invoke mvn release:perform, I want to have all artifacts in my  
repository, including the
assemblies of some submodules.

Thanks a lot

Timo


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


Re: Release Plugin: Include assemblies for deploying

Posted by Timo Wolf <wo...@in.tum.de>.
Hi,

I created a reactor project with a super pom and with many modules  
and module dependencies.
To some modules are complete applications so I added the assembly  
plugin to build the executable
application including scripts, jars, properties, etc.

So each module creates a jar file that is needed by another module  
and in addition, some modules
assemble to complete applications.

mainproject
	|-module1
	|-module2
	|-module3
	|-module4

The dependencies are:
	module2 -> module1
	module3 -> module2
	module4 -> moduel2 & module 3
Timo



On Nov 17, 2006, at 1:20 PM, LECAN Damien wrote:

>> I did this and it does not work. It only works when all dependencies
>> are already installed. I found in another
>> mail that binding the assembly to the package phase does not work in
>> a multi module project.
>> I must somehow configure maven to call mvn assembly:attached at the
>> top level so that
>> 	- for each subdirectory where an assembly is configured, the
>> assembly is invoked in that directory.
>>
>> In other words,
>> 	Instead of going in each sub directory and invoke mvn
>> assembly, I
>> just want to invoke it once
>> 	at the top level to integrate it in the release with one call.
> Can you describe in more details your project structure ?
>
> I don't understand how you can have sub-modules with assemblies  
> (not on the top level of project) depending on other sub-modules  
> that Maven reactor doesn't build before.
>
> Note : you can use assembly:single in a multi-module project
>
> Damien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


RE: Release Plugin: Include assemblies for deploying

Posted by LECAN Damien <Da...@B2i.fr>.
> I did this and it does not work. It only works when all dependencies  
> are already installed. I found in another
> mail that binding the assembly to the package phase does not work in  
> a multi module project.
> I must somehow configure maven to call mvn assembly:attached at the  
> top level so that
> 	- for each subdirectory where an assembly is configured, the  
> assembly is invoked in that directory.
> 
> In other words,
> 	Instead of going in each sub directory and invoke mvn 
> assembly, I  
> just want to invoke it once
> 	at the top level to integrate it in the release with one call.
Can you describe in more details your project structure ?

I don't understand how you can have sub-modules with assemblies (not on the top level of project) depending on other sub-modules that Maven reactor doesn't build before.

Note : you can use assembly:single in a multi-module project

Damien

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


Re: Release Plugin: Include assemblies for deploying

Posted by Timo Wolf <wo...@in.tum.de>.
Hi,

I did this and it does not work. It only works when all dependencies  
are already installed. I found in another
mail that binding the assembly to the package phase does not work in  
a multi module project.
I must somehow configure maven to call mvn assembly:attached at the  
top level so that
	- for each subdirectory where an assembly is configured, the  
assembly is invoked in that directory.

In other words,
	Instead of going in each sub directory and invoke mvn assembly, I  
just want to invoke it once
	at the top level to integrate it in the release with one call.

Timo
		

On Nov 16, 2006, at 5:08 PM, LECAN Damien wrote:

> Ok, I thought you were building your assembly at the top of your  
> multi-module project.
>
> If you build assemmbly in specific projet, bind the assembly  
> operation  to the package phase of your module :
> http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
> See "Building an Assembly as Part of the Build Lifecycle" in
>
> Damien
>
>
>> -----Message d'origine-----
>> De : Timo Wolf [mailto:wolft@in.tum.de]
>> Envoyé : jeudi 16 novembre 2006 14:42
>> À : Maven Users List
>> Objet : Re: Release Plugin: Include assemblies for deploying
>>
>>
>> Hi,
>>
>> The problem with this line is, that I have a multi module
>> project and
>> call the
>> mvn release from the top level directory. I have only
>> assembly goals for
>> some submodules and the invocation of mvn assembly:assembly fails
>> from the top level directory.
>>
>> Any help about this probem?
>>
>> Thanks
>>
>> Timo
>>
>> [INFO] [assembly:attached]
>> [INFO]
>> --------------------------------------------------------------
>> ----------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> --------------------------------------------------------------
>> ----------
>> [INFO] No assembly descriptors found.
>> [INFO]
>> --------------------------------------------------------------
>> ----------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> --------------------------------------------------------------
>> ----------
>> [INFO] Total time: 6 seconds
>> [INFO] Finished at: Thu Nov 16 13:14:56 CET 2006
>> [INFO] Final Memory: 5M/11M
>>
>>
>> On Nov 16, 2006, at 12:50 PM, LECAN Damien wrote:
>>
>>> I'm doing releases like that :
>>>
>>> mvn release:perform -Dgoals="install assembly:attached deploy site-
>>> deploy"
>>>
>>> Beware, some phases are executed twice, even three times
>>>
>>> Damien
>>>
>>>> -----Message d'origine-----
>>>> De : Timo Wolf [mailto:wolft@in.tum.de]
>>>> Envoyé : jeudi 16 novembre 2006 12:15
>>>> À : users@maven.apache.org
>>>> Objet : Release Plugin: Include assemblies for deploying
>>>>
>>>>
>>>> Hi All,
>>>>
>>>> I have a multi module project with some modules that include a
>>>> required assembly
>>>> to pack a complete application containing scripts, properties, etc.
>>>>
>>>> When making a release on the top level directory, all
>> jars, and poms
>>>> etc get uploaded and
>>>> deployed on my repository.
>>>>
>>>> Is it possible to invoke the assembly goals from some modules from
>>>> the release plugin
>>>> and also deploy the packed applications in the repository.
>>>>
>>>> When I invoke mvn release:perform, I want to have all
>>>> artifacts in my
>>>> repository, including the
>>>> assemblies of some submodules.
>>>>
>>>> Thanks a lot
>>>>
>>>> Timo
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


RE: Release Plugin: Include assemblies for deploying

Posted by LECAN Damien <Da...@B2i.fr>.
Ok, I thought you were building your assembly at the top of your multi-module project.

If you build assemmbly in specific projet, bind the assembly operation  to the package phase of your module :
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
See "Building an Assembly as Part of the Build Lifecycle" in

Damien


> -----Message d'origine-----
> De : Timo Wolf [mailto:wolft@in.tum.de]
> Envoyé : jeudi 16 novembre 2006 14:42
> À : Maven Users List
> Objet : Re: Release Plugin: Include assemblies for deploying
> 
> 
> Hi,
> 
> The problem with this line is, that I have a multi module 
> project and  
> call the
> mvn release from the top level directory. I have only 
> assembly goals for
> some submodules and the invocation of mvn assembly:assembly fails
> from the top level directory.
> 
> Any help about this probem?
> 
> Thanks
> 
> Timo
> 
> [INFO] [assembly:attached]
> [INFO]  
> --------------------------------------------------------------
> ----------
> [ERROR] BUILD FAILURE
> [INFO]  
> --------------------------------------------------------------
> ----------
> [INFO] No assembly descriptors found.
> [INFO]  
> --------------------------------------------------------------
> ----------
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> --------------------------------------------------------------
> ----------
> [INFO] Total time: 6 seconds
> [INFO] Finished at: Thu Nov 16 13:14:56 CET 2006
> [INFO] Final Memory: 5M/11M
> 
> 
> On Nov 16, 2006, at 12:50 PM, LECAN Damien wrote:
> 
> > I'm doing releases like that :
> >
> > mvn release:perform -Dgoals="install assembly:attached deploy site- 
> > deploy"
> >
> > Beware, some phases are executed twice, even three times
> >
> > Damien
> >
> >> -----Message d'origine-----
> >> De : Timo Wolf [mailto:wolft@in.tum.de]
> >> Envoyé : jeudi 16 novembre 2006 12:15
> >> À : users@maven.apache.org
> >> Objet : Release Plugin: Include assemblies for deploying
> >>
> >>
> >> Hi All,
> >>
> >> I have a multi module project with some modules that include a
> >> required assembly
> >> to pack a complete application containing scripts, properties, etc.
> >>
> >> When making a release on the top level directory, all 
> jars, and poms
> >> etc get uploaded and
> >> deployed on my repository.
> >>
> >> Is it possible to invoke the assembly goals from some modules from
> >> the release plugin
> >> and also deploy the packed applications in the repository.
> >>
> >> When I invoke mvn release:perform, I want to have all
> >> artifacts in my
> >> repository, including the
> >> assemblies of some submodules.
> >>
> >> Thanks a lot
> >>
> >> Timo
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

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


Re: Release Plugin: Include assemblies for deploying

Posted by Timo Wolf <wo...@in.tum.de>.
Hi,

The problem with this line is, that I have a multi module project and  
call the
mvn release from the top level directory. I have only assembly goals for
some submodules and the invocation of mvn assembly:assembly fails
from the top level directory.

Any help about this probem?

Thanks

Timo

[INFO] [assembly:attached]
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] No assembly descriptors found.
[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Nov 16 13:14:56 CET 2006
[INFO] Final Memory: 5M/11M


On Nov 16, 2006, at 12:50 PM, LECAN Damien wrote:

> I'm doing releases like that :
>
> mvn release:perform -Dgoals="install assembly:attached deploy site- 
> deploy"
>
> Beware, some phases are executed twice, even three times
>
> Damien
>
>> -----Message d'origine-----
>> De : Timo Wolf [mailto:wolft@in.tum.de]
>> Envoyé : jeudi 16 novembre 2006 12:15
>> À : users@maven.apache.org
>> Objet : Release Plugin: Include assemblies for deploying
>>
>>
>> Hi All,
>>
>> I have a multi module project with some modules that include a
>> required assembly
>> to pack a complete application containing scripts, properties, etc.
>>
>> When making a release on the top level directory, all jars, and poms
>> etc get uploaded and
>> deployed on my repository.
>>
>> Is it possible to invoke the assembly goals from some modules from
>> the release plugin
>> and also deploy the packed applications in the repository.
>>
>> When I invoke mvn release:perform, I want to have all
>> artifacts in my
>> repository, including the
>> assemblies of some submodules.
>>
>> Thanks a lot
>>
>> Timo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


RE: Release Plugin: Include assemblies for deploying

Posted by LECAN Damien <Da...@B2i.fr>.
I'm doing releases like that :

mvn release:perform -Dgoals="install assembly:attached deploy site-deploy"

Beware, some phases are executed twice, even three times

Damien

> -----Message d'origine-----
> De : Timo Wolf [mailto:wolft@in.tum.de]
> Envoyé : jeudi 16 novembre 2006 12:15
> À : users@maven.apache.org
> Objet : Release Plugin: Include assemblies for deploying
> 
> 
> Hi All,
> 
> I have a multi module project with some modules that include a  
> required assembly
> to pack a complete application containing scripts, properties, etc.
> 
> When making a release on the top level directory, all jars, and poms  
> etc get uploaded and
> deployed on my repository.
> 
> Is it possible to invoke the assembly goals from some modules from  
> the release plugin
> and also deploy the packed applications in the repository.
> 
> When I invoke mvn release:perform, I want to have all 
> artifacts in my  
> repository, including the
> assemblies of some submodules.
> 
> Thanks a lot
> 
> Timo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

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