[ http://jira.codehaus.org/browse/MECLIPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202512#action_202512 ]
Andreas Höhmann edited comment on MECLIPSE-436 at 12/14/09 8:13 AM: -------------------------------------------------------------------- I guess the problem is the {code:xml} <additionalConfig>...</additionalConfig> {code} maybe the eclipse-plugin doesn't merge two blocks??? If I remove the block from the child-pom then the additional config files from the default plugin configuration will be created. was (Author: ahoehma): I guess the problem is the {code:xml} <additionalConfig>...</additionalConfig> {code} maybe the eclipse-plugin doesn't merge two blocks??? > Plugin configuration is not inherited/merged correctly > ------------------------------------------------------ > > Key: MECLIPSE-436 > URL: http://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 > 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. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira