You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2011/07/27 18:47:43 UTC
[jira] Closed: (MECLIPSE-436) Plugin configuration is not
inherited/merged correctly
[ https://jira.codehaus.org/browse/MECLIPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MECLIPSE-436.
-----------------------------------
Resolution: Not A Bug
Assignee: Robert Scholte
Please read http://www.sonatype.com/people/2011/01/maven-how-to-merging-plugin-configuration-in-complex-projects/ and you'll understand what's going on.
> Plugin configuration is not inherited/merged correctly
> ------------------------------------------------------
>
> Key: MECLIPSE-436
> URL: https://jira.codehaus.org/browse/MECLIPSE-436
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Affects Versions: 2.5.1
> Environment: mvn 2.0.8
> Reporter: Andreas Höhmann
> Assignee: Robert Scholte
> Priority: Critical
>
> I don't know if this is a maven problem or a plugin-problem:
> Parent-pom:
> ...
> <plugin>
> <inherited>true</inherited>
> <artifactId>maven-eclipse-plugin</artifactId>
> <configuration>
> <projectNameTemplate>[artifactId]</projectNameTemplate>
> <downloadSources>true</downloadSources>
> <downloadJavadocs>true</downloadJavadocs>
> <wtpmanifest>true</wtpmanifest>
> <wtpapplicationxml>true</wtpapplicationxml>
> <wtpversion>2.0</wtpversion>
> <manifest>${basedir}/src/main/resources/META-INF/MANIFEST.MF</manifest>
> <additionalProjectnatures>
> <projectnature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</projectnature>
> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
> <projectnature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</projectnature>
> </additionalProjectnatures>
> <additionalBuildcommands>
> <buildcommand>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</buildcommand>
> <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
> <buildcommand>edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder</buildcommand>
> </additionalBuildcommands>
> <additionalConfig>
> <file>
> <name>.checkstyle</name>
> <location>checkstyle/checkstyle.xml</location>
> </file>
> <file>
> <name>.settings/org.springframework.ide.eclipse.core.prefs</name>
> <content>
> <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
> eclipse.preferences.version=1
> ....
> </content>
> </file>
> <file>
> <name>.fbprefs</name>
> <content>
> <![CDATA[#FindBugs User Preferences
> detectorBadAppletConstructor=BadAppletConstructor|false
> ....
> </file>
> </additionalConfig>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>com.siemens.spice.sid</groupId>
> <artifactId>build-tools</artifactId>
> <version>1.0-SNAPSHOT</version>
> </dependency>
> </dependencies>
> </plugin>
> ...
> Sub-project-pom:
>
> <parent>
> <artifactId>sid-base</artifactId>
> <groupId>com.siemens.spice.sid</groupId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> ....
> <plugin>
> <artifactId>maven-eclipse-plugin</artifactId>
> <inherited>true</inherited>
> <configuration>
> <additionalConfig>
> <file>
> <name>.springBeans</name>
> <content>
> <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
> <beansProjectDescription>
> <configExtensions>
> <configExtension>xml</configExtension>
> </configExtensions>
> <configs>
> <config>src/main/resources/spring-beans-application.xml</config>
> <config>src/main/resources/spring-beans-services.xml</config>
> <config>src/main/resources/spring-beans-commands.xml</config>
> </configs>
> <configSets>
> <configSet>
> <name>core</name>
> <allowBeanDefinitionOverriding>true</allowBeanDefinitionOverriding>
> <incomplete>false</incomplete>
> <configs>
> <config>src/main/resources/spring-beans-application.xml</config>
> <config>src/main/resources/spring-beans-commands.xml</config>
> <config>src/main/resources/spring-beans-services.xml</config>
> </configs>
> </configSet>
> </configSets>
> </beansProjectDescription>]]>
> </content>
> </file>
> </additionalConfig>
> </configuration>
> </plugin>
> ...
> If i run mvn eclipse:clean eclipse:eclipse in the subproject ... only the .springBeans file will be created.
> If i remove the plugin from the subproject-pom only the .checkstyle, .fbprefs will be created but NO .springBeans.
> I would like to merge parent-configuration with sub-project-configuration.
> Is this possible?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira