As a follow up to this, these configuration filters are not recognized even if I add an <id> to each of the <execution> elements.
If however, I add the configurations in <goals> outside of the <executions>, they seem to be picked up; however, I get this warning as well: [WARNING] DEPRECATED: goal definitions for plugin 'org.apache.maven.plugins:maven-compiler-plugin' must be in an executions element Kris On Tue, 2005-07-26 at 14:12 -0500, Kris Bravo wrote: > I'm working on a patch to expose the inclusion and exclusion support of > the plexus compiler in the compiler plugin. > > http://jira.codehaus.org/browse/MNG-643 > > I'm confused about how to define the two configurations for two > different goals in the plugin description. > > <executions> > <pluginExecution> > <id/> > <phase/> > <goals/> > here <inherited/> > ---> <configuration/> > </pluginExecution> > or </executions> > <goals> > <goal> > here? <id/> > ---> <configuration/> > </goal> > </goals> > > Here's where I've left off: > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.0-alpha-4-SNAPSHOT</version> > <executions> > <execution> > <goals> > <goal>compile</goal> > </goals> > <configuration> > <includes> > <include>**/*Bean.java</include> > </includes> > <excludes> > <exclude>**/*Test.java</exclude> > </excludes> > </configuration> > </execution> > <execution> > <goals> > <goal>testCompile</goal> > </goals> > <configuration> > <includes> > <include>**/*Test.java</include> > </includes> > </configuration> > </execution> > </executions> > </plugin> > > If I have two <execution>'s it complains about not having the id's set. > Since there isn't a description for the purpose of the id's, what are > their purpose? Are arbitrary strings sufficient? > > Kris > > > --------------------------------------------------------------------- > 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]
