m2eclipse and Q4E support nicely hierachical projects (with eclipse 3.3+ i think) and the release plugin will be happy.
Arnaud On Wed, Nov 26, 2008 at 4:10 AM, Rusty Wright <[EMAIL PROTECTED]>wrote: > Ok, thanks. I'm using the flat structure because that seems to work better > with eclipse. I guess I'll just have to walk away from the release plugin. > > > > David C. Hicks wrote: > >> It has been well over a year ago, but the last time I tried to do this, I >> encountered similar problems. It was at that time I learned that the >> "release" plugin couldn't work with the flat structure of my project - or so >> I was told by someone, then. I haven't tried it since then. Instead, I've >> just adjusted the way my projects are structured so that they work the way >> Maven "wants" them to. >> >> I wish I could give you something better than that. >> Dave >> >> >> Paulo Cesar Silva Reis wrote: >> >>> I have the same problem. I tried to get the answer here but no one could >>> help me, maybe you are luck. >>> >>> >>> On 11/24/08 7:58 PM, "Rusty Wright" <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>>> 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] >>>> >>>> >>>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- .......................................................... Arnaud HERITIER 12 guidelines to boost your productivity with a Java software factory - http://tinyurl.com/56s9tw .......................................................... OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .......................................................... ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...........................................................