You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Mikko Wuokko <sl...@slimnnone.com> on 2007/03/29 13:25:36 UTC
Trouble with multi-module Maven2 project
Hi.
I'm trying to get our Maven2 project integrated into Continuum, but so
far haven't had luck.
Simplified I got this kind of situation:
1 parent pom which has could of modules inside, like this
Parent POM
|
|--ModuleA
|--ModuleB
The files in the svn are like this
Parent/
Parent/ModuleA
Parent/ModuleB
When I try to upload the parent pom, it does find the modules, but then
it tries to download the pom.xml(!) for the modules and fails..
The modules have parent reference to the parent pom all share the same
groupId.
URL looks like these:
The parent url is here
http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
The url for the modules pom.xml:
http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
That of course does not exist.
Can someone tell me if I have totally missed out something?
Am I explaining this in the wrong way?
Here also the some output from the continuum log:
INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
[SocketListener0-1] INFO Action:login -
Trying to log in 'admin'.
INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
[SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
-builder - Downloading
http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
[SocketListener0-1] DEBUG PlexusContainer -
Profile with id: 'jetspeed-mysql' has been explicitly activated.
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
[SocketListener0-1] DEBUG PlexusContainer -
Profile with id: 'jetspeed-settings' has been explicitly activated.
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
[SocketListener0-1] DEBUG PlexusContainer -
Profile with id: 'jetspeed-mysql' has been explicitly activated.
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
[SocketListener0-1] DEBUG PlexusContainer -
Profile with id: 'jetspeed-settings' has been explicitly activated.
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
[SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
-builder - Downloading
http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
[SocketListener0-1] INFO Continuum -
Created 1 projects.
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
[SocketListener0-1] INFO Continuum -
Created 1 project groups.
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
[SocketListener0-1] INFO Continuum -
1 warnings.
INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
[SocketListener0-1] INFO Continuum -
Could not download
http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
Unable to validate URL
Thank you,
Mikko Wuokko
Re: Trouble with multi-module Maven2 project
Posted by Alistair Young <al...@smo.uhi.ac.uk>.
I uploaded my parent pom using its SVN URL. I needed Fisheye in front of
it as you need to be able to view the pom file.
is maven2repo your, well, maven2 repository for jars? you need to upload
the pom from your source.
Alistair
--
mov eax,1
mov ebx,0
int 80h
> Thanks, but I didn't quite follow.. Where should I put the svn URL? To
> the pom I upload to Continuum? Or should I use the svn URL to add the
> project?
>
> I have added the SCM to the poms, and project is added nicely and the
> sources are download from the svn if I remove the modules. With modules
> it does what I described.
>
> -Mikko
>
> Emmanuel Venisse wrote:
>> Continuum try to download modules with an url created from the url you
>> added. But your url is an url in a maven repository and modules aren't
>> in a subdirectory.
>> You can provide a http url to your svn instead of maven repo.
>>
>> Emmanuel
>>
>> Mikko Wuokko a écrit :
>>> Hi.
>>>
>>> I'm trying to get our Maven2 project integrated into Continuum, but so
>>> far haven't had luck.
>>>
>>> Simplified I got this kind of situation:
>>>
>>> 1 parent pom which has could of modules inside, like this
>>>
>>> Parent POM
>>> |
>>> |--ModuleA
>>> |--ModuleB
>>>
>>> The files in the svn are like this
>>>
>>> Parent/
>>> Parent/ModuleA
>>> Parent/ModuleB
>>>
>>> When I try to upload the parent pom, it does find the modules, but
>>> then it tries to download the pom.xml(!) for the modules and fails..
>>>
>>> The modules have parent reference to the parent pom all share the same
>>> groupId.
>>>
>>> URL looks like these:
>>>
>>> The parent url is here
>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>>>
>>>
>>> The url for the modules pom.xml:
>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>>>
>>>
>>> That of course does not exist.
>>>
>>> Can someone tell me if I have totally missed out something?
>>> Am I explaining this in the wrong way?
>>>
>>> Here also the some output from the continuum log:
>>>
>>> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
>>> [SocketListener0-1] INFO Action:login -
>>> Trying to log in 'admin'.
>>> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>> -builder - Downloading
>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>> -builder - Downloading
>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
>>>
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> Created 1 projects.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> Created 1 project groups.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> 1 warnings.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> Could not download
>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
>>> Unable to validate URL
>>>
>>>
>>> Thank you,
>>>
>>> Mikko Wuokko
>>>
>>>
>>>
>>
>
Re: Trouble with multi-module Maven2 project
Posted by Emmanuel Venisse <em...@venisse.net>.
If your parent is in continuum too, maven won't find it in relative path and will use the one from the repo generated by continuum.
It isn't possible to use only one working directory for all projects, 1,2,3... are internal project id and we don't want to change it for now.
Emmanuel
Mikko Wuokko a écrit :
> Thanks again for your help, but I'm in need of your expertise again.
> What I would like happen would be that I would see all the modules as
> separate projects so that I would see which ones did or did not fail
> building. But I would like them also be under one working directory
> (those that are numbered like 1,2,3 etc..) instead of having 30
> different folders.
>
> The faq entry over here
> http://maven.apache.org/continuum/faqs.html#build-entire-project-recursively-from-parent
>
>
> deescribes this situation pretty much, but what I have now is project
> folders running from 1-30 or so. Half of the stuff does not build as
> they are dependended on the parent poms and dont't find them as they
> will try to get from ../pom.xml where is only the numbered folder for
> other projects.
>
> Do you have any suggestions on this..
>
> -Mikko
>
> Mikko Wuokko wrote:
>> Thanks to both of you Emmanuel and Alistair.
>>
>> Both ways, http and file, worked. Didn't realise it was the svn pom
>> url that I had to use and not the one from Maven repository.
>>
>> -Mikko
>>
>> Emmanuel Venisse wrote:
>>>
>>>
>>> Mikko Wuokko a écrit :
>>>> Thanks, but I didn't quite follow.. Where should I put the svn URL?
>>>> To the pom I upload to Continuum? Or should I use the svn URL to add
>>>> the project?
>>>
>>> http url on your svn when you add a project. If you don't have svn
>>> available with http, you can checkout your project on your server,
>>> activate the file protocol( see FAQs) and add your project with the
>>> file protocol.
>>>
>>> Emmanuel
>>>
>>>>
>>>> I have added the SCM to the poms, and project is added nicely and
>>>> the sources are download from the svn if I remove the modules. With
>>>> modules it does what I described.
>>>>
>>>> -Mikko
>>>>
>>>> Emmanuel Venisse wrote:
>>>>> Continuum try to download modules with an url created from the url
>>>>> you added. But your url is an url in a maven repository and modules
>>>>> aren't in a subdirectory.
>>>>> You can provide a http url to your svn instead of maven repo.
>>>>>
>>>>> Emmanuel
>>>>>
>>>>> Mikko Wuokko a écrit :
>>>>>> Hi.
>>>>>>
>>>>>> I'm trying to get our Maven2 project integrated into Continuum,
>>>>>> but so far haven't had luck.
>>>>>>
>>>>>> Simplified I got this kind of situation:
>>>>>>
>>>>>> 1 parent pom which has could of modules inside, like this
>>>>>>
>>>>>> Parent POM
>>>>>> |
>>>>>> |--ModuleA
>>>>>> |--ModuleB
>>>>>>
>>>>>> The files in the svn are like this
>>>>>>
>>>>>> Parent/
>>>>>> Parent/ModuleA
>>>>>> Parent/ModuleB
>>>>>>
>>>>>> When I try to upload the parent pom, it does find the modules, but
>>>>>> then it tries to download the pom.xml(!) for the modules and fails..
>>>>>>
>>>>>> The modules have parent reference to the parent pom all share the
>>>>>> same groupId.
>>>>>>
>>>>>> URL looks like these:
>>>>>>
>>>>>> The parent url is here
>>>>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>>>>>>
>>>>>>
>>>>>> The url for the modules pom.xml:
>>>>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>>>>>>
>>>>>>
>>>>>> That of course does not exist.
>>>>>>
>>>>>> Can someone tell me if I have totally missed out something?
>>>>>> Am I explaining this in the wrong way?
>>>>>>
>>>>>> Here also the some output from the continuum log:
>>>>>>
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
>>>>>> [SocketListener0-1] INFO Action:login -
>>>>>> Trying to log in 'admin'.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
>>>>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>>>>> -builder - Downloading
>>>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
>>>>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>>>>> -builder - Downloading
>>>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
>>>>>>
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>>> [SocketListener0-1] INFO Continuum -
>>>>>> Created 1 projects.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>>> [SocketListener0-1] INFO Continuum -
>>>>>> Created 1 project groups.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>>> [SocketListener0-1] INFO Continuum -
>>>>>> 1 warnings.
>>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>>> [SocketListener0-1] INFO Continuum -
>>>>>> Could not download
>>>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
>>>>>> Unable to validate URL
>>>>>>
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>> Mikko Wuokko
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>
>
>
Re: Trouble with multi-module Maven2 project
Posted by Mikko Wuokko <mi...@evtek.fi>.
Thanks again for your help, but I'm in need of your expertise again.
What I would like happen would be that I would see all the modules as
separate projects so that I would see which ones did or did not fail
building. But I would like them also be under one working directory
(those that are numbered like 1,2,3 etc..) instead of having 30
different folders.
The faq entry over here
http://maven.apache.org/continuum/faqs.html#build-entire-project-recursively-from-parent
deescribes this situation pretty much, but what I have now is project
folders running from 1-30 or so. Half of the stuff does not build as
they are dependended on the parent poms and dont't find them as they
will try to get from ../pom.xml where is only the numbered folder for
other projects.
Do you have any suggestions on this..
-Mikko
Mikko Wuokko wrote:
> Thanks to both of you Emmanuel and Alistair.
>
> Both ways, http and file, worked. Didn't realise it was the svn pom url
> that I had to use and not the one from Maven repository.
>
> -Mikko
>
> Emmanuel Venisse wrote:
>>
>>
>> Mikko Wuokko a écrit :
>>> Thanks, but I didn't quite follow.. Where should I put the svn URL?
>>> To the pom I upload to Continuum? Or should I use the svn URL to add
>>> the project?
>>
>> http url on your svn when you add a project. If you don't have svn
>> available with http, you can checkout your project on your server,
>> activate the file protocol( see FAQs) and add your project with the
>> file protocol.
>>
>> Emmanuel
>>
>>>
>>> I have added the SCM to the poms, and project is added nicely and the
>>> sources are download from the svn if I remove the modules. With
>>> modules it does what I described.
>>>
>>> -Mikko
>>>
>>> Emmanuel Venisse wrote:
>>>> Continuum try to download modules with an url created from the url
>>>> you added. But your url is an url in a maven repository and modules
>>>> aren't in a subdirectory.
>>>> You can provide a http url to your svn instead of maven repo.
>>>>
>>>> Emmanuel
>>>>
>>>> Mikko Wuokko a écrit :
>>>>> Hi.
>>>>>
>>>>> I'm trying to get our Maven2 project integrated into Continuum, but
>>>>> so far haven't had luck.
>>>>>
>>>>> Simplified I got this kind of situation:
>>>>>
>>>>> 1 parent pom which has could of modules inside, like this
>>>>>
>>>>> Parent POM
>>>>> |
>>>>> |--ModuleA
>>>>> |--ModuleB
>>>>>
>>>>> The files in the svn are like this
>>>>>
>>>>> Parent/
>>>>> Parent/ModuleA
>>>>> Parent/ModuleB
>>>>>
>>>>> When I try to upload the parent pom, it does find the modules, but
>>>>> then it tries to download the pom.xml(!) for the modules and fails..
>>>>>
>>>>> The modules have parent reference to the parent pom all share the
>>>>> same groupId.
>>>>>
>>>>> URL looks like these:
>>>>>
>>>>> The parent url is here
>>>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>>>>>
>>>>>
>>>>> The url for the modules pom.xml:
>>>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>>>>>
>>>>>
>>>>> That of course does not exist.
>>>>>
>>>>> Can someone tell me if I have totally missed out something?
>>>>> Am I explaining this in the wrong way?
>>>>>
>>>>> Here also the some output from the continuum log:
>>>>>
>>>>> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
>>>>> [SocketListener0-1] INFO Action:login -
>>>>> Trying to log in 'admin'.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
>>>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>>>> -builder - Downloading
>>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
>>>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>>>> -builder - Downloading
>>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
>>>>>
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>> [SocketListener0-1] INFO Continuum -
>>>>> Created 1 projects.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>> [SocketListener0-1] INFO Continuum -
>>>>> Created 1 project groups.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>> [SocketListener0-1] INFO Continuum -
>>>>> 1 warnings.
>>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>>> [SocketListener0-1] INFO Continuum -
>>>>> Could not download
>>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
>>>>> Unable to validate URL
>>>>>
>>>>>
>>>>> Thank you,
>>>>>
>>>>> Mikko Wuokko
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
Re: Trouble with multi-module Maven2 project
Posted by Mikko Wuokko <mi...@evtek.fi>.
Thanks to both of you Emmanuel and Alistair.
Both ways, http and file, worked. Didn't realise it was the svn pom url
that I had to use and not the one from Maven repository.
-Mikko
Emmanuel Venisse wrote:
>
>
> Mikko Wuokko a écrit :
>> Thanks, but I didn't quite follow.. Where should I put the svn URL? To
>> the pom I upload to Continuum? Or should I use the svn URL to add the
>> project?
>
> http url on your svn when you add a project. If you don't have svn
> available with http, you can checkout your project on your server,
> activate the file protocol( see FAQs) and add your project with the file
> protocol.
>
> Emmanuel
>
>>
>> I have added the SCM to the poms, and project is added nicely and the
>> sources are download from the svn if I remove the modules. With
>> modules it does what I described.
>>
>> -Mikko
>>
>> Emmanuel Venisse wrote:
>>> Continuum try to download modules with an url created from the url
>>> you added. But your url is an url in a maven repository and modules
>>> aren't in a subdirectory.
>>> You can provide a http url to your svn instead of maven repo.
>>>
>>> Emmanuel
>>>
>>> Mikko Wuokko a écrit :
>>>> Hi.
>>>>
>>>> I'm trying to get our Maven2 project integrated into Continuum, but
>>>> so far haven't had luck.
>>>>
>>>> Simplified I got this kind of situation:
>>>>
>>>> 1 parent pom which has could of modules inside, like this
>>>>
>>>> Parent POM
>>>> |
>>>> |--ModuleA
>>>> |--ModuleB
>>>>
>>>> The files in the svn are like this
>>>>
>>>> Parent/
>>>> Parent/ModuleA
>>>> Parent/ModuleB
>>>>
>>>> When I try to upload the parent pom, it does find the modules, but
>>>> then it tries to download the pom.xml(!) for the modules and fails..
>>>>
>>>> The modules have parent reference to the parent pom all share the
>>>> same groupId.
>>>>
>>>> URL looks like these:
>>>>
>>>> The parent url is here
>>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>>>>
>>>>
>>>> The url for the modules pom.xml:
>>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>>>>
>>>>
>>>> That of course does not exist.
>>>>
>>>> Can someone tell me if I have totally missed out something?
>>>> Am I explaining this in the wrong way?
>>>>
>>>> Here also the some output from the continuum log:
>>>>
>>>> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
>>>> [SocketListener0-1] INFO Action:login -
>>>> Trying to log in 'admin'.
>>>> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
>>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>>> -builder - Downloading
>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>>> [SocketListener0-1] DEBUG PlexusContainer -
>>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
>>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>>> -builder - Downloading
>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
>>>>
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>> [SocketListener0-1] INFO Continuum -
>>>> Created 1 projects.
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>> [SocketListener0-1] INFO Continuum -
>>>> Created 1 project groups.
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>> [SocketListener0-1] INFO Continuum -
>>>> 1 warnings.
>>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>>> [SocketListener0-1] INFO Continuum -
>>>> Could not download
>>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
>>>> Unable to validate URL
>>>>
>>>>
>>>> Thank you,
>>>>
>>>> Mikko Wuokko
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>
Re: Trouble with multi-module Maven2 project
Posted by Emmanuel Venisse <em...@venisse.net>.
Mikko Wuokko a écrit :
> Thanks, but I didn't quite follow.. Where should I put the svn URL? To
> the pom I upload to Continuum? Or should I use the svn URL to add the
> project?
http url on your svn when you add a project. If you don't have svn available with http, you can checkout your project on your server, activate the file protocol( see FAQs) and add your project with
the file protocol.
Emmanuel
>
> I have added the SCM to the poms, and project is added nicely and the
> sources are download from the svn if I remove the modules. With modules
> it does what I described.
>
> -Mikko
>
> Emmanuel Venisse wrote:
>> Continuum try to download modules with an url created from the url you
>> added. But your url is an url in a maven repository and modules aren't
>> in a subdirectory.
>> You can provide a http url to your svn instead of maven repo.
>>
>> Emmanuel
>>
>> Mikko Wuokko a écrit :
>>> Hi.
>>>
>>> I'm trying to get our Maven2 project integrated into Continuum, but
>>> so far haven't had luck.
>>>
>>> Simplified I got this kind of situation:
>>>
>>> 1 parent pom which has could of modules inside, like this
>>>
>>> Parent POM
>>> |
>>> |--ModuleA
>>> |--ModuleB
>>>
>>> The files in the svn are like this
>>>
>>> Parent/
>>> Parent/ModuleA
>>> Parent/ModuleB
>>>
>>> When I try to upload the parent pom, it does find the modules, but
>>> then it tries to download the pom.xml(!) for the modules and fails..
>>>
>>> The modules have parent reference to the parent pom all share the
>>> same groupId.
>>>
>>> URL looks like these:
>>>
>>> The parent url is here
>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>>>
>>>
>>> The url for the modules pom.xml:
>>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>>>
>>>
>>> That of course does not exist.
>>>
>>> Can someone tell me if I have totally missed out something?
>>> Am I explaining this in the wrong way?
>>>
>>> Here also the some output from the continuum log:
>>>
>>> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
>>> [SocketListener0-1] INFO Action:login -
>>> Trying to log in 'admin'.
>>> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>> -builder - Downloading
>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>>> [SocketListener0-1] DEBUG PlexusContainer -
>>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
>>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>>> -builder - Downloading
>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
>>>
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> Created 1 projects.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> Created 1 project groups.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> 1 warnings.
>>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>>> [SocketListener0-1] INFO Continuum -
>>> Could not download
>>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
>>> Unable to validate URL
>>>
>>>
>>> Thank you,
>>>
>>> Mikko Wuokko
>>>
>>>
>>>
>>
>
>
>
Re: Trouble with multi-module Maven2 project
Posted by Mikko Wuokko <mi...@evtek.fi>.
Thanks, but I didn't quite follow.. Where should I put the svn URL? To
the pom I upload to Continuum? Or should I use the svn URL to add the
project?
I have added the SCM to the poms, and project is added nicely and the
sources are download from the svn if I remove the modules. With modules
it does what I described.
-Mikko
Emmanuel Venisse wrote:
> Continuum try to download modules with an url created from the url you
> added. But your url is an url in a maven repository and modules aren't
> in a subdirectory.
> You can provide a http url to your svn instead of maven repo.
>
> Emmanuel
>
> Mikko Wuokko a écrit :
>> Hi.
>>
>> I'm trying to get our Maven2 project integrated into Continuum, but so
>> far haven't had luck.
>>
>> Simplified I got this kind of situation:
>>
>> 1 parent pom which has could of modules inside, like this
>>
>> Parent POM
>> |
>> |--ModuleA
>> |--ModuleB
>>
>> The files in the svn are like this
>>
>> Parent/
>> Parent/ModuleA
>> Parent/ModuleB
>>
>> When I try to upload the parent pom, it does find the modules, but
>> then it tries to download the pom.xml(!) for the modules and fails..
>>
>> The modules have parent reference to the parent pom all share the same
>> groupId.
>>
>> URL looks like these:
>>
>> The parent url is here
>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>>
>>
>> The url for the modules pom.xml:
>> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>>
>>
>> That of course does not exist.
>>
>> Can someone tell me if I have totally missed out something?
>> Am I explaining this in the wrong way?
>>
>> Here also the some output from the continuum log:
>>
>> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
>> [SocketListener0-1] INFO Action:login -
>> Trying to log in 'admin'.
>> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>> -builder - Downloading
>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>> [SocketListener0-1] DEBUG PlexusContainer -
>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
>> [SocketListener0-1] DEBUG PlexusContainer -
>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>> [SocketListener0-1] DEBUG PlexusContainer -
>> Profile with id: 'jetspeed-mysql' has been explicitly activated.
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
>> [SocketListener0-1] DEBUG PlexusContainer -
>> Profile with id: 'jetspeed-settings' has been explicitly activated.
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
>> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
>> -builder - Downloading
>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
>>
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>> [SocketListener0-1] INFO Continuum -
>> Created 1 projects.
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>> [SocketListener0-1] INFO Continuum -
>> Created 1 project groups.
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>> [SocketListener0-1] INFO Continuum -
>> 1 warnings.
>> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
>> [SocketListener0-1] INFO Continuum -
>> Could not download
>> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
>> Unable to validate URL
>>
>>
>> Thank you,
>>
>> Mikko Wuokko
>>
>>
>>
>
Re: Trouble with multi-module Maven2 project
Posted by Emmanuel Venisse <em...@venisse.net>.
Continuum try to download modules with an url created from the url you added. But your url is an url in a maven repository and modules aren't in a subdirectory.
You can provide a http url to your svn instead of maven repo.
Emmanuel
Mikko Wuokko a écrit :
> Hi.
>
> I'm trying to get our Maven2 project integrated into Continuum, but so
> far haven't had luck.
>
> Simplified I got this kind of situation:
>
> 1 parent pom which has could of modules inside, like this
>
> Parent POM
> |
> |--ModuleA
> |--ModuleB
>
> The files in the svn are like this
>
> Parent/
> Parent/ModuleA
> Parent/ModuleB
>
> When I try to upload the parent pom, it does find the modules, but then
> it tries to download the pom.xml(!) for the modules and fails..
>
> The modules have parent reference to the parent pom all share the same
> groupId.
>
> URL looks like these:
>
> The parent url is here
> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>
>
> The url for the modules pom.xml:
> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>
>
> That of course does not exist.
>
> Can someone tell me if I have totally missed out something?
> Am I explaining this in the wrong way?
>
> Here also the some output from the continuum log:
>
> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
> [SocketListener0-1] INFO Action:login -
> Trying to log in 'admin'.
> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
> -builder - Downloading
> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-mysql' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-settings' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-mysql' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-settings' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
> -builder - Downloading
> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
>
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> Created 1 projects.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> Created 1 project groups.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> 1 warnings.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> Could not download
> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
> Unable to validate URL
>
>
> Thank you,
>
> Mikko Wuokko
>
>
>
Re: Trouble with multi-module Maven2 project
Posted by Mikko Wuokko <mi...@evtek.fi>.
Here's some reduced poms.. ripped of the not relevant data
And I use Maven 2.0.5 and Continuum 1.0.3
--------------------------------------------
Parent pom (./pom.xml):
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<prerequisites>
<maven>2.0.4</maven>
</prerequisites>
<!-- POM Identification -->
<groupId>org.kplab</groupId>
<artifactId>kplab</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>KP-Lab Portal</name>
<description>
KP-Lab portal is a knowledge creation portal based on Jetspeed.
</description>
<!-- Default Modules -->
<modules>
<module>ajaxcontroller</module>
</modules>
<dependencies>
....
</dependencies>
<scm>
<connection>scm:svn:https://kplab.evtek.fi/svn/kplab/wp6/apps/trunk</connection>
</scm>
</project>
-----------------------------------------------
Module pom (./ajaxcontroller/pom.xml)
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.kplab</groupId>
<artifactId>ajaxcontroller</artifactId>
<parent>
<groupId>org.kplab</groupId>
<artifactId>kplab</artifactId>
<version>1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>jar</packaging>
<version>1.0</version>
<name>ajaxcontroller</name>
<url>http://kp-lab.org</url>
<dependencies>
...
</dependencies>
<scm>
<connection>scm:svn:https://kplab.evtek.fi/svn/kplab/wp6/apps/trunk/ajaxcontroller</connection>
</scm>
</project>
----------------------------------------------
-Mikko
Alistair Young wrote:
> what do your poms look like? I imported a multi-module pom ok.
>
> Alistair
>
Re: Trouble with multi-module Maven2 project
Posted by Alistair Young <al...@smo.uhi.ac.uk>.
what do your poms look like? I imported a multi-module pom ok.
Alistair
--
mov eax,1
mov ebx,0
int 80h
> Hi.
>
> I'm trying to get our Maven2 project integrated into Continuum, but so
> far haven't had luck.
>
> Simplified I got this kind of situation:
>
> 1 parent pom which has could of modules inside, like this
>
> Parent POM
> |
> |--ModuleA
> |--ModuleB
>
> The files in the svn are like this
>
> Parent/
> Parent/ModuleA
> Parent/ModuleB
>
> When I try to upload the parent pom, it does find the modules, but then
> it tries to download the pom.xml(!) for the modules and fails..
>
> The modules have parent reference to the parent pom all share the same
> groupId.
>
> URL looks like these:
>
> The parent url is here
> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/myartefactid-version1.0.pom
>
> The url for the modules pom.xml:
> http://myhost.com/maven2repo/org/mygoupid/myartefactid/version1.0/moduleArtefactId/pom.xml
>
> That of course does not exist.
>
> Can someone tell me if I have totally missed out something?
> Am I explaining this in the wrong way?
>
> Here also the some output from the continuum log:
>
> INFO | jvm 1 | 2007/03/29 14:02:46 | 2007-03-29 14:02:46,597
> [SocketListener0-1] INFO Action:login -
> Trying to log in 'admin'.
> INFO | jvm 1 | 2007/03/29 14:02:46 | username: admin
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,102
> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
> -builder - Downloading
> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab-1.0.pom
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-mysql' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,167
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-settings' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-mysql' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,220
> [SocketListener0-1] DEBUG PlexusContainer -
> Profile with id: 'jetspeed-settings' has been explicitly activated.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,230
> [SocketListener0-1] INFO ContinuumProjectBuilder:maven-two
> -builder - Downloading
> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> Created 1 projects.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> Created 1 project groups.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> 1 warnings.
> INFO | jvm 1 | 2007/03/29 14:02:53 | 2007-03-29 14:02:53,233
> [SocketListener0-1] INFO Continuum -
> Could not download
> http://kplab.evtek.fi/maven2/org/kplab/kplab/1.0/kplab/ajaxcontroller/pom.xml:
> Unable to validate URL
>
>
> Thank you,
>
> Mikko Wuokko
>