I'm using the "flat" structure where the parent directory
(cars_parent) is a
sibling of its sub modules.
The parent's pom starts with
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>wmf-paper</artifactId>
<groupId>edu.berkeley.ist.cars</groupId>
<modules>
<module>../cars_net</module>
<module>../cars_download</module>
<module>../cars_upload</module>
</modules>
In the pluginManagement section the section for the release plugin
is as
follows:
<plugin>
<artifactId>maven-release-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>2.0-beta-7</version>
<configuration>
<tagBase>svn+ssh://[EMAIL PROTECTED]/svn/ist-svn/berkeley/projects/ist/as
/webapps/cafe-paper-cars/tags</tagBase>
</configuration>
</plugin>
Here's the tail of the output when it blows up. I don't understand
what the
problem is:
[INFO] Working directory: /home/rusty/java/cars/cars_parent
[INFO] Tagging release with the label wmf-paper-1.0.0...
[INFO] Executing: svn --non-interactive copy --file
/tmp/maven-scm-56313007.commit .
svn+ssh://[EMAIL PROTECTED]/svn/ist-svn/berkeley/projects/ist/as/webapps/
cafe-paper-cars/tags/wmf-paper-1.0.0
[INFO] Working directory: /home/rusty/java/cars/cars_parent
[INFO] Transforming 'CARS paper accounting parent'...
[INFO] Transforming 'CARS paper accounting net module (ftp and
email)'...
[INFO] Transforming 'CARS paper accounting downloader'...
[INFO] Transforming 'CARS paper accounting uploader'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: svn --non-interactive commit --file
/tmp/maven-scm-381006407.commit --targets /tmp/maven-scm-12275-targets
[INFO] Working directory: /home/rusty/java/cars/cars_parent
[INFO] Release preparation complete.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 21 seconds
[INFO] Finished at: Mon Nov 24 13:42:19 PST 2008
[INFO] Final Memory: 6M/12M
[INFO]
------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] CARS paper accounting parent
[INFO] CARS paper accounting net module (ftp and email)
[INFO] CARS paper accounting downloader
[INFO] CARS paper accounting uploader
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]
------------------------------------------------------------------------
[INFO] Building CARS paper accounting parent
[INFO] task-segment: [release:perform] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [release:perform]
[INFO] Checking out the project to perform the release ...
[INFO] Executing: svn --non-interactive checkout
svn+ssh://[EMAIL PROTECTED]/svn/ist-svn/berkeley/projects/ist/as/webapps/
cafe-paper-cars/tags/wmf-paper-1.0.0 checkout
[INFO] Working directory: /home/rusty/java/cars/cars_parent/target
[INFO] Executing goals 'deploy site-deploy'...
[INFO] Executing: mvn deploy site-deploy --no-plugin-updates -P dev
-DperformRelease=true -f pom.xml
[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
'/home/rusty/java/cars/cars_parent/target/cars_net'. for project
unknown
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Could not
find the
model file '/home/rusty/java/cars/cars_parent/target/cars_net'. for
project
unknown
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
ava: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
'/home/rusty/java/cars/cars_parent/target/cars_net'.
for project unknown
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProj
ectBuilder.java:1557)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInterna
l(DefaultMavenProjectBuilder.java:504)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectB
uilder.java:198)
at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534)
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
... 11 more
Caused by: java.io.FileNotFoundException:
/home/rusty/java/cars/cars_parent/target/cars_net (No such file or
directory)
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.jav
a:67)
at
hidden.org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory.java:
113)
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProj
ectBuilder.java:1552)
... 17 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Nov 24 13:42:28 PST 2008
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]