Adrian Herscu wrote:

Thomas Van de Velde wrote:

You could do this:

Within your module:

<project>
<extend>${module.root}/project.xml</extend>
 </project>

Within module's project.properties:

module.root=../.. [your path to your base POM]

When you build in isolation:

maven jar:install -Dmodule.root=.

Tried that with Maven 1.0.2 - does not work:

org.apache.maven.MavenException: Parent POM is equal to the current POM
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:236)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java
:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)




So what is the effect?
When building in isolation the project description extends itself?
Is this a supported feature, or it will break on the next Maven release?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to