You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by teacup <m_...@yahoo.com> on 2008/12/17 21:47:55 UTC

Multiple modules project and Continuum 1.2.2

Hello, all:

I am using Continuum 1.2.2 and I have a multi-module project, with a parent
POM and 3 children POM.  When I upload parent POM as Maven 2.0 project and
click the 'Enter the local filename of the Maven 2 POM to upload (works only
for a single project without modules)' button, all loads up fine. When I
build this project recursively, everything (including site generation) works
fine too, except that Continuum deploys only the parent artifact in the
specified snapshots repository and none of the children artifacts make it to
this repository.  Here is the code from distributionManagement part that I
specify in all POM files:

<repository>
   <uniqueVersion>false</uniqueVersion>
   <id>internal</id>
   <name>Archiva Managed Internal Repository</name>
  
<url>scp://specialuser@server:/opt/apache-tomcat-6.0.14/data/repositories/internal/</url>
   <layout>default</layout>
</repository>
        
<snapshotRepository>
   <uniqueVersion>true</uniqueVersion>
   <id>snapshots</id>
   <name>Archiva Managed Snapshot Repository</name>
  
<url>scp://specialuser@server:/opt/apache-tomcat-6.0.14/data/repositories/snapshots/</url>
</snapshotRepository>

On Continuum Admin GUI, there is a 'Configuration' button that lets you
specify a 'Deployment Repository Directory' - there too I have the same
snapshots directory specified like this:
/opt/apache-tomcat-6.0.14/data/repositories/snapshots

But nothing works, and I still cannot get Continuum deploy children
artifacts under above directory.  Would I need to upload and build all 4 (1
parent and 3 children) POMs individually to get around this issue, or I am
missing something in the above setup?  Any help will be much appreciated. 
Thanks.
-- 
View this message in context: http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21060827.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Multiple modules project and Continuum 1.2.2

Posted by teacup <th...@yahoo.com>.
Thanks for correction.  I removed the 'install' part; I knew this but did not
pay attention.

It looks like Continuum can "deploy" artifacts through its own default
'Deployment Repository Directory' configuration only for a non-multi-module
project even if this project does not specify <repository> or
<snapshotRepository> elements in <distributionManagement> element and even
if you only "install" it.  Continuum deployed artifacts for all such
projects for me when I just "installed" them.  But if a multi-module project
does not define all these elements and you just "install" it, then Continuum
won't deploy artifacts for children modules - you would need to "deploy"
this project to do that.


apache.maillist wrote:
> 
> Please read thru the Maven build lifecycle
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> which you do not have to do "mvn install deploy", if you use "mvn deploy",
> it includes "install" as part of lifecycle. and be sure you do not use -N
> (--non-recursive). and yes, you have to use "deploy", Continuum does not
> deploy your artifacts to repository automatically as this is Maven
> specific
> task.
> 
> Thanks.
> 
> On Thu, Dec 18, 2008 at 6:40 AM, teacup <th...@yahoo.com> wrote:
> 
>>
>> It worked now.  This is what I did:
>>
>> I added back only <snapshotRepository> tag (mentioned in my original
>> post)
>> and then used the goal 'clean install deploy'.  Now Continuum deployed
>> artifacts for parent and all 3 children in the specified deployment
>> directory.
>>
>> But I would still like to know if this is the only way to deploy children
>> artifacts through Continuum.  Thanks.
>>
>>
>> teacup wrote:
>> >
>> > First off I made a mistake in my original post (thanks Wendy): when I
>> said
>> > I checked the button, I meant the 'For multi modules project, load only
>> > root as recursive build' button and also I did not load POM from my PC
>> but
>> > specified POM URL (with user name and password).  And, yes, I clicked
>> that
>> > button 'For multi modules ...'.  Still I get only parent artifact
>> > deployed; the children artifacts still do not make it to the deployment
>> > directory.
>> >
>> > Then I tried the same thing after removing <repository> and
>> > <snapshotRepository> tags from all POMs because 'Better Build with
>> Maven'
>> > book says I do not need these tags if I want Continuum to deploy the
>> > snapshot artifacts.  But this does not work either.
>> >
>> > Has anyone got children artifacts deployed through Continuum by adding
>> > only parent Maven 2.0 project? Would I need to add 'deploy' to the
>> goal?
>> > I am using only 'clean install' because I thought Continuum would
>> deploy
>> > it for me through its default config for 'Deployment Repository
>> > Directory'.  Thanks.
>> >
>> >
>> > apache.maillist wrote:
>> >>
>> >> Did you check the check box "For multi modules project, load only root
>> as
>> >> recursive build"?
>> >>
>> >> On Wed, Dec 17, 2008 at 12:47 PM, teacup <m_...@yahoo.com> wrote:
>> >>
>> >>>
>> >>> Hello, all:
>> >>>
>> >>> I am using Continuum 1.2.2 and I have a multi-module project, with a
>> >>> parent
>> >>> POM and 3 children POM.  When I upload parent POM as Maven 2.0
>> project
>> >>> and
>> >>> click the 'Enter the local filename of the Maven 2 POM to upload
>> (works
>> >>> only
>> >>> for a single project without modules)' button, all loads up fine.
>> When
>> I
>> >>> build this project recursively, everything (including site
>> generation)
>> >>> works
>> >>> fine too, except that Continuum deploys only the parent artifact in
>> the
>> >>> specified snapshots repository and none of the children artifacts
>> make
>> >>> it
>> >>> to
>> >>> this repository.  Here is the code from distributionManagement part
>> that
>> >>> I
>> >>> specify in all POM files:
>> >>>
>> >>> <repository>
>> >>>   <uniqueVersion>false</uniqueVersion>
>> >>>   <id>internal</id>
>> >>>   <name>Archiva Managed Internal Repository</name>
>> >>>
>> >>> <url>scp://specialuser@server
>> >>> :/opt/apache-tomcat-6.0.14/data/repositories/internal/</url>
>> >>>   <layout>default</layout>
>> >>> </repository>
>> >>>
>> >>> <snapshotRepository>
>> >>>   <uniqueVersion>true</uniqueVersion>
>> >>>   <id>snapshots</id>
>> >>>   <name>Archiva Managed Snapshot Repository</name>
>> >>>
>> >>> <url>scp://specialuser@server
>> >>> :/opt/apache-tomcat-6.0.14/data/repositories/snapshots/</url>
>> >>> </snapshotRepository>
>> >>>
>> >>> On Continuum Admin GUI, there is a 'Configuration' button that lets
>> you
>> >>> specify a 'Deployment Repository Directory' - there too I have the
>> same
>> >>> snapshots directory specified like this:
>> >>> /opt/apache-tomcat-6.0.14/data/repositories/snapshots
>> >>>
>> >>> But nothing works, and I still cannot get Continuum deploy children
>> >>> artifacts under above directory.  Would I need to upload and build
>> all
>> 4
>> >>> (1
>> >>> parent and 3 children) POMs individually to get around this issue, or
>> I
>> >>> am
>> >>> missing something in the above setup?  Any help will be much
>> >>> appreciated.
>> >>> Thanks.
>> >>> --
>> >>> View this message in context:
>> >>>
>> http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21060827.html
>> >>> Sent from the Continuum - Users mailing list archive at Nabble.com.
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21074027.html
>> Sent from the Continuum - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21090586.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Multiple modules project and Continuum 1.2.2

Posted by "L. J." <ap...@gmail.com>.
Please read thru the Maven build lifecycle
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
which you do not have to do "mvn install deploy", if you use "mvn deploy",
it includes "install" as part of lifecycle. and be sure you do not use -N
(--non-recursive). and yes, you have to use "deploy", Continuum does not
deploy your artifacts to repository automatically as this is Maven specific
task.

Thanks.

On Thu, Dec 18, 2008 at 6:40 AM, teacup <th...@yahoo.com> wrote:

>
> It worked now.  This is what I did:
>
> I added back only <snapshotRepository> tag (mentioned in my original post)
> and then used the goal 'clean install deploy'.  Now Continuum deployed
> artifacts for parent and all 3 children in the specified deployment
> directory.
>
> But I would still like to know if this is the only way to deploy children
> artifacts through Continuum.  Thanks.
>
>
> teacup wrote:
> >
> > First off I made a mistake in my original post (thanks Wendy): when I
> said
> > I checked the button, I meant the 'For multi modules project, load only
> > root as recursive build' button and also I did not load POM from my PC
> but
> > specified POM URL (with user name and password).  And, yes, I clicked
> that
> > button 'For multi modules ...'.  Still I get only parent artifact
> > deployed; the children artifacts still do not make it to the deployment
> > directory.
> >
> > Then I tried the same thing after removing <repository> and
> > <snapshotRepository> tags from all POMs because 'Better Build with Maven'
> > book says I do not need these tags if I want Continuum to deploy the
> > snapshot artifacts.  But this does not work either.
> >
> > Has anyone got children artifacts deployed through Continuum by adding
> > only parent Maven 2.0 project? Would I need to add 'deploy' to the goal?
> > I am using only 'clean install' because I thought Continuum would deploy
> > it for me through its default config for 'Deployment Repository
> > Directory'.  Thanks.
> >
> >
> > apache.maillist wrote:
> >>
> >> Did you check the check box "For multi modules project, load only root
> as
> >> recursive build"?
> >>
> >> On Wed, Dec 17, 2008 at 12:47 PM, teacup <m_...@yahoo.com> wrote:
> >>
> >>>
> >>> Hello, all:
> >>>
> >>> I am using Continuum 1.2.2 and I have a multi-module project, with a
> >>> parent
> >>> POM and 3 children POM.  When I upload parent POM as Maven 2.0 project
> >>> and
> >>> click the 'Enter the local filename of the Maven 2 POM to upload (works
> >>> only
> >>> for a single project without modules)' button, all loads up fine. When
> I
> >>> build this project recursively, everything (including site generation)
> >>> works
> >>> fine too, except that Continuum deploys only the parent artifact in the
> >>> specified snapshots repository and none of the children artifacts make
> >>> it
> >>> to
> >>> this repository.  Here is the code from distributionManagement part
> that
> >>> I
> >>> specify in all POM files:
> >>>
> >>> <repository>
> >>>   <uniqueVersion>false</uniqueVersion>
> >>>   <id>internal</id>
> >>>   <name>Archiva Managed Internal Repository</name>
> >>>
> >>> <url>scp://specialuser@server
> >>> :/opt/apache-tomcat-6.0.14/data/repositories/internal/</url>
> >>>   <layout>default</layout>
> >>> </repository>
> >>>
> >>> <snapshotRepository>
> >>>   <uniqueVersion>true</uniqueVersion>
> >>>   <id>snapshots</id>
> >>>   <name>Archiva Managed Snapshot Repository</name>
> >>>
> >>> <url>scp://specialuser@server
> >>> :/opt/apache-tomcat-6.0.14/data/repositories/snapshots/</url>
> >>> </snapshotRepository>
> >>>
> >>> On Continuum Admin GUI, there is a 'Configuration' button that lets you
> >>> specify a 'Deployment Repository Directory' - there too I have the same
> >>> snapshots directory specified like this:
> >>> /opt/apache-tomcat-6.0.14/data/repositories/snapshots
> >>>
> >>> But nothing works, and I still cannot get Continuum deploy children
> >>> artifacts under above directory.  Would I need to upload and build all
> 4
> >>> (1
> >>> parent and 3 children) POMs individually to get around this issue, or I
> >>> am
> >>> missing something in the above setup?  Any help will be much
> >>> appreciated.
> >>> Thanks.
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21060827.html
> >>> Sent from the Continuum - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21074027.html
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>

Re: Multiple modules project and Continuum 1.2.2

Posted by teacup <th...@yahoo.com>.
It worked now.  This is what I did:

I added back only <snapshotRepository> tag (mentioned in my original post)
and then used the goal 'clean install deploy'.  Now Continuum deployed
artifacts for parent and all 3 children in the specified deployment
directory.

But I would still like to know if this is the only way to deploy children
artifacts through Continuum.  Thanks.


teacup wrote:
> 
> First off I made a mistake in my original post (thanks Wendy): when I said
> I checked the button, I meant the 'For multi modules project, load only
> root as recursive build' button and also I did not load POM from my PC but
> specified POM URL (with user name and password).  And, yes, I clicked that
> button 'For multi modules ...'.  Still I get only parent artifact
> deployed; the children artifacts still do not make it to the deployment
> directory.
> 
> Then I tried the same thing after removing <repository> and
> <snapshotRepository> tags from all POMs because 'Better Build with Maven'
> book says I do not need these tags if I want Continuum to deploy the
> snapshot artifacts.  But this does not work either.
> 
> Has anyone got children artifacts deployed through Continuum by adding
> only parent Maven 2.0 project? Would I need to add 'deploy' to the goal? 
> I am using only 'clean install' because I thought Continuum would deploy
> it for me through its default config for 'Deployment Repository
> Directory'.  Thanks.
> 
> 
> apache.maillist wrote:
>> 
>> Did you check the check box "For multi modules project, load only root as
>> recursive build"?
>> 
>> On Wed, Dec 17, 2008 at 12:47 PM, teacup <m_...@yahoo.com> wrote:
>> 
>>>
>>> Hello, all:
>>>
>>> I am using Continuum 1.2.2 and I have a multi-module project, with a
>>> parent
>>> POM and 3 children POM.  When I upload parent POM as Maven 2.0 project
>>> and
>>> click the 'Enter the local filename of the Maven 2 POM to upload (works
>>> only
>>> for a single project without modules)' button, all loads up fine. When I
>>> build this project recursively, everything (including site generation)
>>> works
>>> fine too, except that Continuum deploys only the parent artifact in the
>>> specified snapshots repository and none of the children artifacts make
>>> it
>>> to
>>> this repository.  Here is the code from distributionManagement part that
>>> I
>>> specify in all POM files:
>>>
>>> <repository>
>>>   <uniqueVersion>false</uniqueVersion>
>>>   <id>internal</id>
>>>   <name>Archiva Managed Internal Repository</name>
>>>
>>> <url>scp://specialuser@server
>>> :/opt/apache-tomcat-6.0.14/data/repositories/internal/</url>
>>>   <layout>default</layout>
>>> </repository>
>>>
>>> <snapshotRepository>
>>>   <uniqueVersion>true</uniqueVersion>
>>>   <id>snapshots</id>
>>>   <name>Archiva Managed Snapshot Repository</name>
>>>
>>> <url>scp://specialuser@server
>>> :/opt/apache-tomcat-6.0.14/data/repositories/snapshots/</url>
>>> </snapshotRepository>
>>>
>>> On Continuum Admin GUI, there is a 'Configuration' button that lets you
>>> specify a 'Deployment Repository Directory' - there too I have the same
>>> snapshots directory specified like this:
>>> /opt/apache-tomcat-6.0.14/data/repositories/snapshots
>>>
>>> But nothing works, and I still cannot get Continuum deploy children
>>> artifacts under above directory.  Would I need to upload and build all 4
>>> (1
>>> parent and 3 children) POMs individually to get around this issue, or I
>>> am
>>> missing something in the above setup?  Any help will be much
>>> appreciated.
>>> Thanks.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21060827.html
>>> Sent from the Continuum - Users mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21074027.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Multiple modules project and Continuum 1.2.2

Posted by teacup <m_...@yahoo.com>.
First off I made a mistake in my original post (thanks Wendy): when I said I
checked the button, I meant the 'For multi modules project, load only root
as recursive build' button and also I did not load POM from my PC but
specified POM URL (with user name and password).  And, yes, I clicked that
button 'For multi modules ...'.  Still I get only parent artifact deployed;
the children artifacts still do not make it to the deployment directory.

Then I tried the same thing after removing <repository> and
<snapshotRepository> tags from all POMs because 'Better Build with Maven'
book says I do not need these tags if I want Continuum to deploy the
snapshot artifacts.  But this does not work either.

Has anyone got children artifacts deployed through Continuum by adding only
parent Maven 2.0 project? Would I need to add 'deploy' to the goal?  I am
using only 'clean install' because I thought Continuum would deploy it for
me through its default config for 'Deployment Repository Directory'. 
Thanks.


apache.maillist wrote:
> 
> Did you check the check box "For multi modules project, load only root as
> recursive build"?
> 
> On Wed, Dec 17, 2008 at 12:47 PM, teacup <m_...@yahoo.com> wrote:
> 
>>
>> Hello, all:
>>
>> I am using Continuum 1.2.2 and I have a multi-module project, with a
>> parent
>> POM and 3 children POM.  When I upload parent POM as Maven 2.0 project
>> and
>> click the 'Enter the local filename of the Maven 2 POM to upload (works
>> only
>> for a single project without modules)' button, all loads up fine. When I
>> build this project recursively, everything (including site generation)
>> works
>> fine too, except that Continuum deploys only the parent artifact in the
>> specified snapshots repository and none of the children artifacts make it
>> to
>> this repository.  Here is the code from distributionManagement part that
>> I
>> specify in all POM files:
>>
>> <repository>
>>   <uniqueVersion>false</uniqueVersion>
>>   <id>internal</id>
>>   <name>Archiva Managed Internal Repository</name>
>>
>> <url>scp://specialuser@server
>> :/opt/apache-tomcat-6.0.14/data/repositories/internal/</url>
>>   <layout>default</layout>
>> </repository>
>>
>> <snapshotRepository>
>>   <uniqueVersion>true</uniqueVersion>
>>   <id>snapshots</id>
>>   <name>Archiva Managed Snapshot Repository</name>
>>
>> <url>scp://specialuser@server
>> :/opt/apache-tomcat-6.0.14/data/repositories/snapshots/</url>
>> </snapshotRepository>
>>
>> On Continuum Admin GUI, there is a 'Configuration' button that lets you
>> specify a 'Deployment Repository Directory' - there too I have the same
>> snapshots directory specified like this:
>> /opt/apache-tomcat-6.0.14/data/repositories/snapshots
>>
>> But nothing works, and I still cannot get Continuum deploy children
>> artifacts under above directory.  Would I need to upload and build all 4
>> (1
>> parent and 3 children) POMs individually to get around this issue, or I
>> am
>> missing something in the above setup?  Any help will be much appreciated.
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21060827.html
>> Sent from the Continuum - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21073295.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Multiple modules project and Continuum 1.2.2

Posted by "L. J." <ap...@gmail.com>.
Did you check the check box "For multi modules project, load only root as
recursive build"?

On Wed, Dec 17, 2008 at 12:47 PM, teacup <m_...@yahoo.com> wrote:

>
> Hello, all:
>
> I am using Continuum 1.2.2 and I have a multi-module project, with a parent
> POM and 3 children POM.  When I upload parent POM as Maven 2.0 project and
> click the 'Enter the local filename of the Maven 2 POM to upload (works
> only
> for a single project without modules)' button, all loads up fine. When I
> build this project recursively, everything (including site generation)
> works
> fine too, except that Continuum deploys only the parent artifact in the
> specified snapshots repository and none of the children artifacts make it
> to
> this repository.  Here is the code from distributionManagement part that I
> specify in all POM files:
>
> <repository>
>   <uniqueVersion>false</uniqueVersion>
>   <id>internal</id>
>   <name>Archiva Managed Internal Repository</name>
>
> <url>scp://specialuser@server
> :/opt/apache-tomcat-6.0.14/data/repositories/internal/</url>
>   <layout>default</layout>
> </repository>
>
> <snapshotRepository>
>   <uniqueVersion>true</uniqueVersion>
>   <id>snapshots</id>
>   <name>Archiva Managed Snapshot Repository</name>
>
> <url>scp://specialuser@server
> :/opt/apache-tomcat-6.0.14/data/repositories/snapshots/</url>
> </snapshotRepository>
>
> On Continuum Admin GUI, there is a 'Configuration' button that lets you
> specify a 'Deployment Repository Directory' - there too I have the same
> snapshots directory specified like this:
> /opt/apache-tomcat-6.0.14/data/repositories/snapshots
>
> But nothing works, and I still cannot get Continuum deploy children
> artifacts under above directory.  Would I need to upload and build all 4 (1
> parent and 3 children) POMs individually to get around this issue, or I am
> missing something in the above setup?  Any help will be much appreciated.
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Multiple-modules-project-and-Continuum-1.2.2-tp21060827p21060827.html
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>

Re: Multiple modules project and Continuum 1.2.2

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Dec 17, 2008 at 1:47 PM, teacup <m_...@yahoo.com> wrote:

> I am using Continuum 1.2.2 and I have a multi-module project, with a parent
> POM and 3 children POM.  When I upload parent POM as Maven 2.0 project and
> click the 'Enter the local filename of the Maven 2 POM to upload (works only
> for a single project without modules)' button

It says it only works for a single project without modules, and you're
using it with a multi-module project?

-- 
Wendy