You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by to...@gi-de.com on 2008/02/13 16:30:07 UTC

multi-module bootstrap/release in a flat directory hierarchy (using ClearCase)

Hi, 

I have a flat directory hierarchy like:

my-module-parent
my-module-A
my-module-B

my-module-parent defines 

...
<modules>
        <module>my-module-A<module>
        <module>my-module-B<module>
</modules>
...

With ClearCase, the <scm> section of the 3 modules looks like:

<scm>
    <connection>scm:clearcase:load 
/my_vob/myDir/my-module-parent</connection>
    <developerConnection>scm:clearcase:load 
/my_vob/myDir/my-module-parent</developerConnection>
</scm>

<scm>
    <connection>scm:clearcase:load /my_vob/myDir/my-module-A</connection>
    <developerConnection>scm:clearcase:load 
/my_vob/myDir/my-module-A</developerConnection>
</scm>

<scm>
    <connection>scm:clearcase:load /my_vob/myDir/my-module-B</connection>
    <developerConnection>scm:clearcase:load 
/my_vob/myDir/my-module-B</developerConnection>
</scm>

Now, the scm:bootstrap in my-module-parent doesn´t work, because only the 
parent is being bootstrapped, but not the child modules.
I think a similar problem will occur if i try to release this multi-module 
build.

Here´s the log:

[INFO] Scanning for projects...
[INFO] 
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown

Reason: Could not find the model file 
'C:\LocalViewsMaven\my-module-parent-3.0.0-SNAPSHOT\my_vob\myDir\my-module-A\pom.xml'. 
for project unknown


[INFO] 
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Could not find the model 
file 
'C:\LocalViewsMaven\my-module-parent-3.0.0-SNAPSHOT\my_vob\myDir\my-module-A\pom.xml'. 
for project unknown
        at 
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:376)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:289)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Could not 
find the model file 
'C:\LocalViewsMaven\my-module-parent-3.0.0-SNAPSHOT\my_vob\myDir\my-module-A\pom.xml'. 
for project unknown
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1381)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:474)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:197)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:548)
        at 
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:458)
        at 
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:524)
        at 
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:362)
        ... 11 more
Caused by: java.io.FileNotFoundException: 
C:\LocalViewsMaven\my-module-parent-3.0.0-SNAPSHOT\my_vob\myDir\my-module-A\pom.xml 
(Das System kann den angegebenen Pfad nicht finden)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at 
hidden.org.codehaus.plexus.util.xml.XmlReader.<init>(XmlReader.java:123)
        at 
hidden.org.codehaus.plexus.util.xml.XmlStreamReader.<init>(XmlStreamReader.java:67)
        at 
hidden.org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory.java:113)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1376)
        ... 17 more
[INFO] 
------------------------------------------------------------------------

=> How can I solve this problem, when I don´t want to change the flat 
hierarchy into a directory tree like

my-module-parent
        |_____________  my-module-A
        |______ _______my-module-B

?

In the <scm> section I only can define one loadRule, or a complete 
configSpec.txt......


Thanx, Torsten

RE: multi-module bootstrap/release in a flat directory hierarchy (using ClearCase)

Posted by Barrett Nuzum <Ba...@Valtech.com>.
Torsten:
 
You said :
>> => How can I solve this problem, when I don´t want to change the flat hierarchy into a directory tree
 
Much to my dismay, you can't.
 
http://jira.codehaus.org/browse/MRELEASE-261 <http://jira.codehaus.org/browse/MRELEASE-261> 
http://jira.codehaus.org/browse/MRELEASE-225 <http://jira.codehaus.org/browse/MRELEASE-225> 
 
Barrett
 
 
Barrett Nuzum
Sr. Consultant
barrett.nuzum@valtech.com
Mobile: 918-640-4414 

Valtech
5080 Spectrum Drive, Ste 700W 
Addison, TX 75001
USA
Tel: 972-789-1200
Fax: 972-789-1340
 
www.valtech.us

 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org