Relative path not honoured in cvs commands for flat project layout
------------------------------------------------------------------
Key: CONTINUUM-462
URL: http://jira.codehaus.org/browse/CONTINUUM-462
Project: Continuum
Type: Bug
Versions: 1.0, 1.0.1
Environment: affects all environments
Reporter: Christian Schulte
Continuum does not implement the flat project layout as described at
<http://maven.apache.org/guides/mini/guide-ide-eclipse.html> at the end of the
site correctly. The checkout via ViewCVS does work but during building
continuum does not propagate the relative path to the modules and the parent
correctly to the cvs commands it executes making the build fail because of cvs
errors about unknown modules.
Example:
REPOROOT
|--ROOT
|----pom.xml
|--MODULE1
|----pom.xml
|--MODULE2
|----pom.xml
Just directories below REPOROOT. The ViewCVS URL to import such a project into
continuum looks something like this...
http://somehost/viewcvs/*checkout*/REPOROOT/ROOT/pom.xml
and the SCM URL inside ROOT/pom.xml looks like this...
<connection>scm:cvs:pserver:[EMAIL PROTECTED]:/cvs:/REPOROOT/ROOT</connection>
Continuum can successfully build the project inside ROOT but fails for all
projects defined like this in ROOT/pom.xml.
<modules>
<module>../MODULE1</module>
<module>../MDOULE2</module>
</modules>
That is because it tries to do the cvs checkouts wihtout the correct relative
path as it did during initial checkout via ViewCVS.
21212715 [Thread-1] WARN org.apache.maven.continuum.scm.ContinuumScm -
Command output: cvs server: cannot find module `REPOROOT/ROOT/MODULE1' - ignored
cvs [checkout aborted]: cannot expand modules
Here it should have used REPOROOT/ROOT/../MODULE1. The workaround to get this
structure working in continuum is to specify the SCM URL inside every single
pom.xml of the whole project with the correct path. Continuum then does support
the flat project layout. Without the SCM URLs inside every pom it only honours
the structure during initial checkout via ViewCVS but not during the cvs
commands executed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira