You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bruno Marti <br...@evard.ch> on 2009/02/24 14:11:50 UTC

[m2] release-plugin skips parent build plugins configuration

I've got a parent pom which defines several project-wide build-plugins in
pluginManagement and the build section. 
The normal build clean install works fine (compilation of code is for
version 1.5) but in release-plugin the pluginManagement and build section is
completely missing in pom-release.xml or in reactor build (and compilation
of code is version 1.3, causes an error on Enumeration objects).
It makes no difference if <generateReleasePoms> of release-plugin is set or
not.

(windows xp, maven-2.0.9, release-plugin 2.0-beta-8)


Sample:
Parent.pom
------------
...
    <groupId>.......</groupId>
    <artifactId>basis_maven_pom</artifactId>
    <version>1</version>
    <packaging>pom</packaging>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.0.2</version>
                    <inherited>true</inherited>
                    <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
...

MyModule.pom
...
  	<parent>
		<groupId>.......</groupId>
		<artifactId>basis_maven_pom</artifactId>
		<version>1</version>
	</parent>

	<groupId>ch.visana.rin.ieu.web</groupId>
	<artifactId>myModule</artifactId>
	<version>1.2.2-SNAPSHOT</version>
	<packaging>jar</packaging>
	<build>
          NOTHING DEFINED HERE, ALL COMES FROM BASIS_MAVEN_POM
	</build>
...


Is this a bug or what I'm doing wrong
-> mvn clean install (works)
-> mvn release:prepare (compiler error)

-- 
View this message in context: http://www.nabble.com/-m2--release-plugin-skips-parent-build-plugins-configuration-tp22180870p22180870.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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