You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Christian Schulte <cs...@schulte.it> on 2005/11/17 21:43:31 UTC
Flat structure supported ?
Hi,
I am using the flat project layout as mentioned in the Maven 2
documentation right at the end of the following site.
<http://maven.apache.org/guides/mini/guide-ide-eclipse.html>
Does Continuum support this flat structure ?
--
Christian
Re: Flat structure supported ?
Posted by Christian Schulte <cs...@schulte.it>.
Emmanuel Venisse schrieb:
> ok, file an issue for this problem, we'll fix it in next version.
>
> A workaround for this problem is to add scm url in all your pom.
>
> Emmanuel
Thanks a lot! It works with specifying the scm url in every pom.xml.
<http://jira.codehaus.org/browse/CONTINUUM-462>
--
Christian
Re: Flat structure supported ?
Posted by Emmanuel Venisse <em...@venisse.net>.
ok, file an issue for this problem, we'll fix it in next version.
A workaround for this problem is to add scm url in all your pom.
Emmanuel
Christian Schulte a écrit :
> Emmanuel Venisse schrieb:
>
>>
>>
>> Christian Schulte a écrit :
>>
>>> Emmanuel Venisse schrieb:
>>>
>>>> Can you describe your directory structure, your modules definition
>>>> and the url you use to add your project?
>>>>
>>>> Emmanuel
>>>
>>>
>>>
>>>
>>> REPOROOT
>>> |--ROOT
>>> |----pom.xml
>>> |--MODULE1
>>> |----pom.xml
>>> |--MODULE2
>>> |----pom.xml
>>>
>>> Just directories below REPOROOT. Inside of ROOT/pom.xml I have:
>>>
>>> <scm>
>>>
>>> <connection>scm:cvs:pserver:user@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</connection>
>>>
>>>
>>> <developerConnection>scm:cvs:pserver:otheruser@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</developerConnection>
>>>
>>> <url>http://somehost/viewcvs/somepath1/somepath2/somepath3/REPOROOT</url>
>>>
>>> </scm>
>>
>>
>>
>> Why do you don't have ROOT/ at the end of your urls? yours scm urls
>> aren't url of ROOT project, but urls of REPOROOT
>
>
> Hmm. Because things completely stop working if I do so. I added ROOT/ to
> the scm url in ROOT/pom.xml. Now continuum starts building the ROOT
> project but all others fail since the relative urls are not appended
> correctly to the cvs commandline. It does not honour the ../ for all cvs
> commands it executes.
>
> 21212715 [Thread-1] WARN org.apache.maven.continuum.scm.ContinuumScm -
> Command output: cvs server: cannot find module
> `somepath1/somepath2/somepath3/REPOROOT/ROOT/MODULE1' - ignored
> cvs [checkout aborted]: cannot expand modules
>
>>
>>>
>>> and
>>>
>>> <modules>
>>> <module>../MODULE1</module>
>>> <module>../MDOULE2</module>
>>> </modules>
>>
>>
>>
>> it's ok
>>
>>>
>>> When I upload ROOT/pom.xml I am using an URL like:
>>>
>>> http://somehost/viewcvs/*checkout*/somepath1/somepath2/somepath3/REPOROOT/ROOT/pom.xml
>>
>>
>>
>>
>>
>> it's ok
>>
>>>
>>>
>>> Continuum now starts to download the referenced poms and also does
>>> the checkouts. No problems so far. When it then starts building ROOT
>>> it cannot find pom.xml inside REPOROOT. So in the gui I manually
>>> specify the relative path to the pom.xml of ROOT to be ROOT/pom.xml
>>> but this change has no effect. Continuum continues to access the pom
>>> inside REPOROOT instead of REPOROOT/ROOT. When I now cd into the
>>> working-directory and create a link so that REPOROOT/pom.xml links to
>>> REPOROOT/ROOT/pom.xml continuum seems to start working.
>>>
>>
>> add ROOT/ in your scm urls.
>
>
> I tried it and indeed the root module starts working. So there is a
> problem with the cvs commands executed by continuum. Fetching the poms
> over http via ViewCVS does work but then it does not propagate the
> relative path to the cvs commands it executes. So when I do not add the
> ROOT/ to the scm url things start working somehow but continuum refuses
> to use my relative path setting I specify in the gui for the root pom. I
> must admit I think you are right and the correct way would be to add
> ROOT/ to the scm url. Things would work that way if continuum would
> propagate the module structure through to the cvs commands it executes.
> So the problem seems to be somewhere in the cvs code of continuum. As
> said, the checkout via viewcvs works but is inconsistent with the module
> structure used with the cvs commands where it does not honour ../
> correctly.
>
Re: Flat structure supported ?
Posted by Christian Schulte <cs...@schulte.it>.
Emmanuel Venisse schrieb:
>
>
> Christian Schulte a écrit :
>
>> Emmanuel Venisse schrieb:
>>
>>> Can you describe your directory structure, your modules definition
>>> and the url you use to add your project?
>>>
>>> Emmanuel
>>
>>
>>
>> REPOROOT
>> |--ROOT
>> |----pom.xml
>> |--MODULE1
>> |----pom.xml
>> |--MODULE2
>> |----pom.xml
>>
>> Just directories below REPOROOT. Inside of ROOT/pom.xml I have:
>>
>> <scm>
>>
>> <connection>scm:cvs:pserver:user@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</connection>
>>
>>
>> <developerConnection>scm:cvs:pserver:otheruser@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</developerConnection>
>>
>> <url>http://somehost/viewcvs/somepath1/somepath2/somepath3/REPOROOT</url>
>>
>> </scm>
>
>
> Why do you don't have ROOT/ at the end of your urls? yours scm urls
> aren't url of ROOT project, but urls of REPOROOT
Hmm. Because things completely stop working if I do so. I added ROOT/ to
the scm url in ROOT/pom.xml. Now continuum starts building the ROOT
project but all others fail since the relative urls are not appended
correctly to the cvs commandline. It does not honour the ../ for all cvs
commands it executes.
21212715 [Thread-1] WARN org.apache.maven.continuum.scm.ContinuumScm -
Command output: cvs server: cannot find module
`somepath1/somepath2/somepath3/REPOROOT/ROOT/MODULE1' - ignored
cvs [checkout aborted]: cannot expand modules
>
>>
>> and
>>
>> <modules>
>> <module>../MODULE1</module>
>> <module>../MDOULE2</module>
>> </modules>
>
>
> it's ok
>
>>
>> When I upload ROOT/pom.xml I am using an URL like:
>>
>> http://somehost/viewcvs/*checkout*/somepath1/somepath2/somepath3/REPOROOT/ROOT/pom.xml
>
>
>
> it's ok
>
>>
>>
>> Continuum now starts to download the referenced poms and also does the
>> checkouts. No problems so far. When it then starts building ROOT it
>> cannot find pom.xml inside REPOROOT. So in the gui I manually specify
>> the relative path to the pom.xml of ROOT to be ROOT/pom.xml but this
>> change has no effect. Continuum continues to access the pom inside
>> REPOROOT instead of REPOROOT/ROOT. When I now cd into the
>> working-directory and create a link so that REPOROOT/pom.xml links to
>> REPOROOT/ROOT/pom.xml continuum seems to start working.
>>
>
> add ROOT/ in your scm urls.
I tried it and indeed the root module starts working. So there is a
problem with the cvs commands executed by continuum. Fetching the poms
over http via ViewCVS does work but then it does not propagate the
relative path to the cvs commands it executes. So when I do not add the
ROOT/ to the scm url things start working somehow but continuum refuses
to use my relative path setting I specify in the gui for the root pom. I
must admit I think you are right and the correct way would be to add
ROOT/ to the scm url. Things would work that way if continuum would
propagate the module structure through to the cvs commands it executes.
So the problem seems to be somewhere in the cvs code of continuum. As
said, the checkout via viewcvs works but is inconsistent with the module
structure used with the cvs commands where it does not honour ../ correctly.
--
Christian
Re: Flat structure supported ?
Posted by Emmanuel Venisse <em...@venisse.net>.
Christian Schulte a écrit :
> Emmanuel Venisse schrieb:
>
>> Can you describe your directory structure, your modules definition and
>> the url you use to add your project?
>>
>> Emmanuel
>
>
> REPOROOT
> |--ROOT
> |----pom.xml
> |--MODULE1
> |----pom.xml
> |--MODULE2
> |----pom.xml
>
> Just directories below REPOROOT. Inside of ROOT/pom.xml I have:
>
> <scm>
>
> <connection>scm:cvs:pserver:user@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</connection>
>
>
> <developerConnection>scm:cvs:pserver:otheruser@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</developerConnection>
>
> <url>http://somehost/viewcvs/somepath1/somepath2/somepath3/REPOROOT</url>
> </scm>
Why do you don't have ROOT/ at the end of your urls? yours scm urls aren't url of ROOT project, but
urls of REPOROOT
>
> and
>
> <modules>
> <module>../MODULE1</module>
> <module>../MDOULE2</module>
> </modules>
it's ok
>
> When I upload ROOT/pom.xml I am using an URL like:
>
> http://somehost/viewcvs/*checkout*/somepath1/somepath2/somepath3/REPOROOT/ROOT/pom.xml
it's ok
>
>
> Continuum now starts to download the referenced poms and also does the
> checkouts. No problems so far. When it then starts building ROOT it
> cannot find pom.xml inside REPOROOT. So in the gui I manually specify
> the relative path to the pom.xml of ROOT to be ROOT/pom.xml but this
> change has no effect. Continuum continues to access the pom inside
> REPOROOT instead of REPOROOT/ROOT. When I now cd into the
> working-directory and create a link so that REPOROOT/pom.xml links to
> REPOROOT/ROOT/pom.xml continuum seems to start working.
>
add ROOT/ in your scm urls.
Emmanuel
Re: Flat structure supported ?
Posted by Christian Schulte <cs...@schulte.it>.
Emmanuel Venisse schrieb:
> Can you describe your directory structure, your modules definition and
> the url you use to add your project?
>
> Emmanuel
REPOROOT
|--ROOT
|----pom.xml
|--MODULE1
|----pom.xml
|--MODULE2
|----pom.xml
Just directories below REPOROOT. Inside of ROOT/pom.xml I have:
<scm>
<connection>scm:cvs:pserver:user@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</connection>
<developerConnection>scm:cvs:pserver:otheruser@host:/cvs:somepath1/somepath2/somepath3/REPOROOT/</developerConnection>
<url>http://somehost/viewcvs/somepath1/somepath2/somepath3/REPOROOT</url>
</scm>
and
<modules>
<module>../MODULE1</module>
<module>../MDOULE2</module>
</modules>
When I upload ROOT/pom.xml I am using an URL like:
http://somehost/viewcvs/*checkout*/somepath1/somepath2/somepath3/REPOROOT/ROOT/pom.xml
Continuum now starts to download the referenced poms and also does the
checkouts. No problems so far. When it then starts building ROOT it
cannot find pom.xml inside REPOROOT. So in the gui I manually specify
the relative path to the pom.xml of ROOT to be ROOT/pom.xml but this
change has no effect. Continuum continues to access the pom inside
REPOROOT instead of REPOROOT/ROOT. When I now cd into the
working-directory and create a link so that REPOROOT/pom.xml links to
REPOROOT/ROOT/pom.xml continuum seems to start working.
--
Christian
Re: Flat structure supported ?
Posted by Emmanuel Venisse <em...@venisse.net>.
Can you describe your directory structure, your modules definition and the url you use to
add your project?
Emmanuel
Christian Schulte a écrit :
> Emmanuel Venisse schrieb:
>
>> yes, it's supported, but you need to have your module accessible from
>> parent pom url with relative path.
>>
>> if your parent pom url is http://server/path/rep1/parent/pom.xml
>> and module name is ../mymodule
>>
>> then, http://server/path/rep1/mymodule/pom.xml must be a valid url
>>
>> Emmanuel
>>
> Hi,
>
> the checkouts seem to work but I have to specify the relative path to
> the pom.xml of the root module. I can do this in the gui of continuum
> but this setting gets ignored. I get the following exception for the
> root module although I configured the relative path of the pom to be
> SCF_FW_ROOT/pom.xml. So I thought continuum would use the pom from this
> directory (/opt/continuum/working-directory/1/SCF_FW_ROOT/pom.xml) but
> it does not. Did I do anything wrong ? Its not using the pom I told it
> to use and ignores the relative path setting to the pom.
>
>
> 753013 [Thread-1] ERROR
> org.apache.maven.continuum.buildcontroller.BuildController - Error
> while building project.
> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
> Error while mapping metadata.
> at
> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:91)
>
> at
> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:59)
>
> at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:169)
>
> at
> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
>
> at
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
>
> at java.lang.Thread.run(Thread.java:534)
> Caused by:
> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
> Cannot build maven project from /opt/continuum/working-directory/1/pom.xml.
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:265)
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:89)
>
> at
> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:87)
>
> ... 5 more
> Caused by: org.apache.maven.project.ProjectBuildingException: Could not
> find the model file '/opt/continuum/working-directory/1/pom.xml'.
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1061)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:291)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:283)
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:257)
>
> ... 7 more
> Caused by: java.io.FileNotFoundException:
> /opt/continuum/working-directory/1/pom.xml (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at java.io.FileReader.<init>(FileReader.java:55)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1056)
>
> ... 10 more
>
> If I go into "/opt/continuum/working-directory/1" and do "ln -s
> SCF_FW_ROOT/pom.xml" to get the pom one level higher in the hierarchy
> things change and the pom is found. One thing I noticed is this:
>
> 169097 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Could not find the executable 'mvn' in this path:
> 169097 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> "/opt/continuum/Distributions/maven-2.0/bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> /usr/local/bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 - /bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> /usr/bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> /usr/X11R6/bin"
> 169099 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Executable 'mvn'.
> 169099 [Thread-1] INFO
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Arguments: --batch-mode --non-recursive -Dscf.env=continuum clean
> install deplo
> y site-deploy
> 169099 [Thread-1] INFO
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Working directory: /opt/continuum/working-directory/1
>
>
> I can do "mvn" on the shell and mvn is executed correctly and also
> continuum is able to execute mvn. As far as I can tell everything seems
> to start working as soon as I move the pom in the working-directory to a
> place continuum wants to have it. The relative path setting gets ignored
> however.
>
Re: Flat structure supported ?
Posted by Emmanuel Venisse <em...@venisse.net>.
similar but not the same, we have two different mechanism for maven 1 and maven 2 projects.
Christian, file an issue with description i asked you in my previous mail.
Emmanuel
Doug Douglass a écrit :
>
> This sounds a lot like: http://jira.codehaus.org/browse/CONTINUUM-381
>
> Doug
>
> Christian Schulte wrote:
>
>> Emmanuel Venisse schrieb:
>>
>>> yes, it's supported, but you need to have your module accessible from
>>> parent pom url with relative path.
>>>
>>> if your parent pom url is http://server/path/rep1/parent/pom.xml
>>> and module name is ../mymodule
>>>
>>> then, http://server/path/rep1/mymodule/pom.xml must be a valid url
>>>
>>> Emmanuel
>>>
>> Hi,
>>
>> the checkouts seem to work but I have to specify the relative path to
>> the pom.xml of the root module. I can do this in the gui of continuum
>> but this setting gets ignored. I get the following exception for the
>> root module although I configured the relative path of the pom to be
>> SCF_FW_ROOT/pom.xml. So I thought continuum would use the pom from
>> this directory
>> (/opt/continuum/working-directory/1/SCF_FW_ROOT/pom.xml) but it does
>> not. Did I do anything wrong ? Its not using the pom I told it to use
>> and ignores the relative path setting to the pom.
>>
>>
>> 753013 [Thread-1] ERROR
>> org.apache.maven.continuum.buildcontroller.BuildController - Error
>> while building project.
>> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
>> Error while mapping metadata.
>> at
>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:91)
>>
>> at
>> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:59)
>>
>> at
>> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:169)
>>
>> at
>> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
>>
>> at
>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
>>
>> at java.lang.Thread.run(Thread.java:534)
>> Caused by:
>> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
>> Cannot build maven project from
>> /opt/continuum/working-directory/1/pom.xml.
>> at
>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:265)
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:89)
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:87)
>>
>> ... 5 more
>> Caused by: org.apache.maven.project.ProjectBuildingException: Could
>> not find the model file '/opt/continuum/working-directory/1/pom.xml'.
>> at
>> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1061)
>>
>> at
>> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:291)
>>
>> at
>> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:283)
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:257)
>>
>> ... 7 more
>> Caused by: java.io.FileNotFoundException:
>> /opt/continuum/working-directory/1/pom.xml (No such file or directory)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.<init>(FileInputStream.java:106)
>> at java.io.FileReader.<init>(FileReader.java:55)
>> at
>> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1056)
>>
>> ... 10 more
>>
>> If I go into "/opt/continuum/working-directory/1" and do "ln -s
>> SCF_FW_ROOT/pom.xml" to get the pom one level higher in the hierarchy
>> things change and the pom is found. One thing I noticed is this:
>>
>> 169097 [Thread-1] WARN
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> Could not find the executable 'mvn' in this path:
>> 169097 [Thread-1] WARN
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> "/opt/continuum/Distributions/maven-2.0/bin
>> 169098 [Thread-1] WARN
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> /usr/local/bin
>> 169098 [Thread-1] WARN
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> /bin
>> 169098 [Thread-1] WARN
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> /usr/bin
>> 169098 [Thread-1] WARN
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> /usr/X11R6/bin"
>> 169099 [Thread-1] WARN
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> Executable 'mvn'.
>> 169099 [Thread-1] INFO
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> Arguments: --batch-mode --non-recursive -Dscf.env=continuum clean
>> install deplo
>> y site-deploy
>> 169099 [Thread-1] INFO
>> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
>> Working directory: /opt/continuum/working-directory/1
>>
>>
>> I can do "mvn" on the shell and mvn is executed correctly and also
>> continuum is able to execute mvn. As far as I can tell everything
>> seems to start working as soon as I move the pom in the
>> working-directory to a place continuum wants to have it. The relative
>> path setting gets ignored however.
>>
>
>
>
Re: Flat structure supported ?
Posted by Doug Douglass <dd...@denverdata.com>.
This sounds a lot like: http://jira.codehaus.org/browse/CONTINUUM-381
Doug
Christian Schulte wrote:
> Emmanuel Venisse schrieb:
>
>> yes, it's supported, but you need to have your module accessible from
>> parent pom url with relative path.
>>
>> if your parent pom url is http://server/path/rep1/parent/pom.xml
>> and module name is ../mymodule
>>
>> then, http://server/path/rep1/mymodule/pom.xml must be a valid url
>>
>> Emmanuel
>>
> Hi,
>
> the checkouts seem to work but I have to specify the relative path to
> the pom.xml of the root module. I can do this in the gui of continuum
> but this setting gets ignored. I get the following exception for the
> root module although I configured the relative path of the pom to be
> SCF_FW_ROOT/pom.xml. So I thought continuum would use the pom from this
> directory (/opt/continuum/working-directory/1/SCF_FW_ROOT/pom.xml) but
> it does not. Did I do anything wrong ? Its not using the pom I told it
> to use and ignores the relative path setting to the pom.
>
>
> 753013 [Thread-1] ERROR
> org.apache.maven.continuum.buildcontroller.BuildController - Error
> while building project.
> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
> Error while mapping metadata.
> at
> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:91)
>
> at
> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:59)
>
> at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:169)
>
> at
> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
>
> at
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
>
> at java.lang.Thread.run(Thread.java:534)
> Caused by:
> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
> Cannot build maven project from /opt/continuum/working-directory/1/pom.xml.
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:265)
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:89)
>
> at
> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:87)
>
> ... 5 more
> Caused by: org.apache.maven.project.ProjectBuildingException: Could not
> find the model file '/opt/continuum/working-directory/1/pom.xml'.
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1061)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:291)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:283)
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:257)
>
> ... 7 more
> Caused by: java.io.FileNotFoundException:
> /opt/continuum/working-directory/1/pom.xml (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at java.io.FileReader.<init>(FileReader.java:55)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1056)
>
> ... 10 more
>
> If I go into "/opt/continuum/working-directory/1" and do "ln -s
> SCF_FW_ROOT/pom.xml" to get the pom one level higher in the hierarchy
> things change and the pom is found. One thing I noticed is this:
>
> 169097 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Could not find the executable 'mvn' in this path:
> 169097 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> "/opt/continuum/Distributions/maven-2.0/bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> /usr/local/bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 - /bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> /usr/bin
> 169098 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> /usr/X11R6/bin"
> 169099 [Thread-1] WARN
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Executable 'mvn'.
> 169099 [Thread-1] INFO
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Arguments: --batch-mode --non-recursive -Dscf.env=continuum clean
> install deplo
> y site-deploy
> 169099 [Thread-1] INFO
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
> Working directory: /opt/continuum/working-directory/1
>
>
> I can do "mvn" on the shell and mvn is executed correctly and also
> continuum is able to execute mvn. As far as I can tell everything seems
> to start working as soon as I move the pom in the working-directory to a
> place continuum wants to have it. The relative path setting gets ignored
> however.
>
Re: Flat structure supported ?
Posted by Christian Schulte <cs...@schulte.it>.
Emmanuel Venisse schrieb:
> yes, it's supported, but you need to have your module accessible from
> parent pom url with relative path.
>
> if your parent pom url is http://server/path/rep1/parent/pom.xml
> and module name is ../mymodule
>
> then, http://server/path/rep1/mymodule/pom.xml must be a valid url
>
> Emmanuel
>
Hi,
the checkouts seem to work but I have to specify the relative path to
the pom.xml of the root module. I can do this in the gui of continuum
but this setting gets ignored. I get the following exception for the
root module although I configured the relative path of the pom to be
SCF_FW_ROOT/pom.xml. So I thought continuum would use the pom from this
directory (/opt/continuum/working-directory/1/SCF_FW_ROOT/pom.xml) but
it does not. Did I do anything wrong ? Its not using the pom I told it
to use and ignores the relative path setting to the pom.
753013 [Thread-1] ERROR
org.apache.maven.continuum.buildcontroller.BuildController - Error
while building project.
org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while mapping metadata.
at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:91)
at
org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:59)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:169)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:534)
Caused by:
org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
Cannot build maven project from /opt/continuum/working-directory/1/pom.xml.
at
org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:265)
at
org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:89)
at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:87)
... 5 more
Caused by: org.apache.maven.project.ProjectBuildingException: Could not
find the model file '/opt/continuum/working-directory/1/pom.xml'.
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1061)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:291)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:283)
at
org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:257)
... 7 more
Caused by: java.io.FileNotFoundException:
/opt/continuum/working-directory/1/pom.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileReader.<init>(FileReader.java:55)
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1056)
... 10 more
If I go into "/opt/continuum/working-directory/1" and do "ln -s
SCF_FW_ROOT/pom.xml" to get the pom one level higher in the hierarchy
things change and the pom is found. One thing I noticed is this:
169097 [Thread-1] WARN
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
Could not find the executable 'mvn' in this path:
169097 [Thread-1] WARN
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
"/opt/continuum/Distributions/maven-2.0/bin
169098 [Thread-1] WARN
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
/usr/local/bin
169098 [Thread-1] WARN
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 - /bin
169098 [Thread-1] WARN
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
/usr/bin
169098 [Thread-1] WARN
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
/usr/X11R6/bin"
169099 [Thread-1] WARN
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
Executable 'mvn'.
169099 [Thread-1] INFO
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
Arguments: --batch-mode --non-recursive -Dscf.env=continuum clean
install deplo
y site-deploy
169099 [Thread-1] INFO
org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven2 -
Working directory: /opt/continuum/working-directory/1
I can do "mvn" on the shell and mvn is executed correctly and also
continuum is able to execute mvn. As far as I can tell everything seems
to start working as soon as I move the pom in the working-directory to a
place continuum wants to have it. The relative path setting gets ignored
however.
--
Christian
Re: Flat structure supported ?
Posted by Emmanuel Venisse <em...@venisse.net>.
yes, it's supported, but you need to have your module accessible from parent pom url with
relative path.
if your parent pom url is http://server/path/rep1/parent/pom.xml
and module name is ../mymodule
then, http://server/path/rep1/mymodule/pom.xml must be a valid url
Emmanuel
Christian Schulte a écrit :
> Hi,
>
> I am using the flat project layout as mentioned in the Maven 2
> documentation right at the end of the following site.
> <http://maven.apache.org/guides/mini/guide-ide-eclipse.html>
>
> Does Continuum support this flat structure ?
>