Re: error when building multiple projects joined by maven2 module

2006-08-18 Thread Jesse McConnell

for the record I think it was determined on irc the other day that
initial import works off of module name but the updating was based on
artifact Id...which causes a problem for some people who maintain
different directory/artifactid combinations.

jesse

On 8/17/06, Christian Edward Gruber <[EMAIL PROTECTED]> wrote:

Jesse McConnell wrote:
> well first off, you shouldn't need the SCM sections in the child poms,
> maven uses the name of the module in the parent pom to determine how
> to check out the children

Does it use the module name, or the artifactId?  It used to append the
artifactId on the end, which royally screwed me up trying to use a
parent scm url.  I must have missed the change to the SCM component.  In
my case, we simply implemented an SCM tag in each sub-project.
Irritating, but it worked.

Christian.





--
jesse mcconnell
[EMAIL PROTECTED]


Re: error when building multiple projects joined by maven2 module

2006-08-17 Thread Jesse McConnell

well first off, you shouldn't need the SCM sections in the child poms,
maven uses the name of the module in the parent pom to determine how
to check out the children

The child poms need to use the  tag to link back up to the top
lvl parent pom.  with that in place maven should sequentially build
through the modules.

have you grabbed the better build with maven book? its free at

http://www.mergere.com/m2book_download.jsp

good luck, and you can also ping folks on irc.codehaus.org #continuum
(and #maven)
jesse

On 8/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

i have three maven2 projects A, B and C where A depends on B and C, and
where B depends on C (for compilation and packaging).

I have included the scm section in each projects pom.xml and I have tested
that continuum can build them if I supply the poms and have continuum
build them in the correct order. but I don't know how to specify to
continuum which order they should be built, so my idea is to create a top
pom.xml using the module maven2 construct. and i included an scm section
in that pom as well. but continuum can't use that to build my projects,
that is if I only provide continuum with the top pom.xml and not the three
sub pom.xmls.

further below follows the error message from continuum. but first are the
4 pom.xmls. any thoughts?

is there some document place, on the internet e g where this kind of
information is disclosed. i e how I can use the maven2 module construct in
continuum? I would much rather read about myself than asking you continuum
experts spend time helping me. have I missed some great continuum
document?

proj A:

  4.0.0
  se.jsolutions.crm
  CRM
  ear
  1.0
  
  

  se.jsolutions.crm
  EJB
  1.0


  se.jsolutions.crm
  WEB
  1.0
  war

  
  

  
src/main/resources
true
  

  
  

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM/CRM

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM/CRM
  



proj B:

  4.0.0
  se.jsolutions.crm
  WEB
  war
  1.0
  
  

  se.jsolutions.crm
  EJB
  1.0
  provided


  struts
  struts
  1.2.9


  commons-lang
  commons-lang
  2.1


  displaytag
  displaytag
  1.1


  javax.jee
  jee
  5.0
  provided


  javax.servlet
  jstl
  1.1.2


  taglibs
  standard
  1.1.2


  xml-apis
  xml-apis
  1.0.b2
  provided

  
  

  
org.apache.maven.plugins
maven-compiler-plugin

  1.5
  1.5

  

  
  

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM/WEB

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM/WEB
  


proj C:

  4.0.0
  se.jsolutions.crm
  EJB
  1.0
  
  

  javax.jee
  jee
  5.0
  provided

  
  

  
org.apache.maven.plugins
maven-compiler-plugin

  1.5
  1.5

  

  
  

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM/EJB

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM/EJB
  


top pom.xml:

  4.0.0
  se.jsolutions.crm
  1.0
  app
  pom
  
EJB
WEB
CRM
  
  

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM

scm:svn:https://jsolutions.se/repository/trunk/framework/CRM
  




jvm 1| 2006-08-17 09:55:07,650 [SocketListener0-0] INFO
ContinuumProjectBuilder:maven-two-builder - Downloading
file:/C:/DOCUME~1/SEMARWAH/LOCALS~1/Temp/summit-61487.tmp
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO
ContinuumProjectBuilder:maven-two-builder - Downloading
file:/C:/DOCUME~1/SEMARWAH/LOCALS~1/Temp/summit-6/EJB/pom.xml
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO
ContinuumProjectBuilder:maven-two-builder - Downloading
file:/C:/DOCUME~1/SEMARWAH/LOCALS~1/Temp/summit-6/WEB/pom.xml
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO
ContinuumProjectBuilder:maven-two-builder - Downloading
file:/C:/DOCUME~1/SEMARWAH/LOCALS~1/Temp/summit-6/CRM/pom.xml
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO  Continuum
   - Created 1 projects.
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO  Continuum
   - Created 1 project groups.
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO  Continuum
   - 3 warnings.
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO  Continuum
   - Could not download file:/C:/DOC
UME~1/SEMARWAH/LOCALS~1/Temp/summit-6/EJB/pom.xml:
C:\DOCUME~1\SEMARWAH\LOCALS~1\Temp\summit-6\EJB\pom.xml (The system cannot
find the path specified)
jvm 1| 2006-08-17 09:55:07,681 [SocketListener0-0] INFO  Continuum
   - Could not download
file:/C:/DOCUME~1/SEMARWAH/LOCALS~1/Temp/summit-6/WEB/pom.xml:
C:\DOCUME~1\SEMARWAH\LOCALS~1\Temp\summit-6\WEB\pom.xml (The system cannot
find the path specified)
jvm 1| 2006-08-17 09: