It's a problem with old maven api (2.0) used in continuum 1.0.2. It doesn't load correctly settings
and profiles. It's fixed in 1.0.3.
You can perhaps remove ${username} from your scm url and define user/password
in Project Edit screen
Emmanuel
Peschier J. (Jeroen) a écrit :
I see. I now added the POM from my local copy and it seems to add all modules.
However, the StarTeam username/password does not seem to be resolved. This is
logged:
jvm 1 | 2006-04-12 10:12:23,459 [Thread-2] WARN ContinuumScm
- Error while checking out the code for project: 'Unnamed -
com.company:framework:pom:0.1', id: '21' to 'C:\ci\work\21'.
jvm 1 | 2006-04-12 10:12:23,459 [Thread-2] WARN ContinuumScm
- Command output: Error occurred:
jvm 1 | Logon failure. Please verify the spelling of the user name and try
again.
jvm 1 |
jvm 1 |
jvm 1 | 2006-04-12 10:12:23,459 [Thread-2] WARN ContinuumScm
- Provider message: The starteam command failed.
jvm 1 | 2006-04-12 10:12:23,819 [Thread-2] INFO ContinuumScm
- Checking out project: 'Unnamed - com.company:ProjectA:jar:0.1', id: '22'
to 'C:\ci\work\22'.
jvm 1 | 2006-04-12 10:12:23,819 [Thread-2] INFO ScmManager
- Working directory: C:\ci\work\22
jvm 1 | 2006-04-12 10:12:23,819 [Thread-2] INFO ScmManager
- Command line: stcmd co -x -nologo -stop -p [EMAIL
PROTECTED]:49201/LogiX/LogiX/ProjectA -fp C:/ci/work/22 -is
jvm 1 | 2006-04-12 10:12:25,819 [Thread-2] WARN ContinuumScm
- Command output: Error occurred:
jvm 1 | Logon failure. Please verify the spelling of the user name and try
again.
Like I said before, StarTeam SCM works for my local Maven2 build.
I have settings.xml in %M2_HOME%\conf\settings.xml. %M2_HOME%\bin is in my %PATH% environment.
The stcmd executable is also in my %PATH%.
How does Continuum resolve the StarTeam username/password? Does Continuum use
the credentials from Maven's settings.xml?
-----Oorspronkelijk bericht-----
Van: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 11 april 2006 19:38
Aan: [email protected]
Onderwerp: Re: Multimodule import with StarTeam SCM fails
You can't add multimodule projects from your local repository because continuum can't download
sub-projects. If you want to add them in continuum with file protocol, you should use parent pom
from your local copy.
Emmanuel
Peschier J. (Jeroen) a écrit :
I am experiencing problems with importing a multimodule POM into
Continuum. Our project layout is as below:
Framework
+ ProjectA
+ ProjectB
Relevant parts of the framework.pom:
<version>0.1</version>
<modules>
<module>ProjectA</module>
<module>ProjectB</module>
</modules>
<ciManagement>
<system>continuum</system>
<url>http://localhost:8080/continuum</url>
<notifiers>
<notifier>
<type>mail</type>
<sendOnError>true</sendOnError>
<sendOnFailure>true</sendOnFailure>
<sendOnSuccess>true</sendOnSuccess>
<sendOnWarning>true</sendOnWarning>
<configuration>
<address>[EMAIL PROTECTED]</address>
</configuration>
</notifier>
</notifiers>
</ciManagement>
<scm>
<connection>scm:starteam:[EMAIL PROTECTED]:49201:/LogiX/LogiX</connecti
on>
<developerConnection>scm:starteam:[EMAIL PROTECTED]:49201:/LogiX/LogiX<
/developerConnection>
</scm>
I have the StarTeam username and password defined in settings.xml. The
SCM configuration works for my local build. Continuum is running under
the same credentials as myself, so I assume Continuum will use my
current Maven 2 configuration.
The POM URL begin submitted to Continuum is:
file:///C:/Documents%20and%20Settings/sjaak/.m2/repository/com/company/f
ramework/0.1/framework-0.1.pom
Upon submitting, Continuum reports the following error:
* Could not download
file:/C:/Documents%20and%20Settings/sjaak/.m2/repository/com/company/fra
mework/0.1/framework/ProjectA/pom.xml: C:\Documents and
Settings\sjaak\.m2\repository\com\company\framework\0.1\framework\Projec
tA\pom.xml (Het systeem kan het opgegeven pad niet vinden)
Check the logs for more details.
* Could not download
file:/C:/Documents%20and%20Settings/sjaak/.m2/repository/com/company/fra
mework/0.1/framework/ProjectB/pom.xml: C:\Documents and
Settings\sjaak\.m2\repository\com\company\framework\0.1\framework\Projec
tB\pom.xml (Het systeem kan het opgegeven pad niet vinden)
Check the logs for more details.
From the error messages it appears Continuum is attempting to locate the
module POMs relative to the location of the framework POM. Is that the
intended behaviour? I learned from the documentation that if modules are
listed in the POM they will be checked out. Instead of performing a
checkout it appears to traverse the repository looking for the module
POMs. What is missing here?