Yea, I know I can do that. It would just be nice to not force developers to have to remember both commands -- which is why I wanted to configure the plugin to also run process-test-resources. I looked at the solution at the very bottom of the comments on this blog: http://cmaki.blogspot.com/2007/10/getting-maven-and-eclipse-to-work.html but that doesn't work for me.
We don't use the m2eclipse plugin for eclipse -- just the maven command line eclipse plugin. On Mon, Mar 2, 2009 at 2:56 PM, Carlos Sanchez <[email protected]> wrote: > mvn process-test-resources eclipse:eclipse > > or in your first example just do > mvn process-test-resources > > > On Mon, Mar 2, 2009 at 11:48 AM, Davis Ford > <[email protected]> wrote: >> Hi, when I run the eclipse goal like this: mvn eclipse:eclipse I also >> want it to execute resources:testResources. >> >> I tried something like this: >> >> <build> >> <plugins> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-eclipse-plugin</artifactId> >> <executions> >> <execution> >> <id>eclipse</id> >> >> <phase>process-test-resources</phase> >> <goals> >> <goal>eclipse</goal> >> </goals> >> </execution> >> </executions> >> </plugin> >> >> But it doesn't work. If I put it in a profile like this, it does >> work, but I don't want to have to have a profile for it. Is there a >> way to accomplish this? >> >> <profiles> >> <profile> >> <id>eclipse</id> >> <build> >> >> <defaultGoal>process-test-resources</defaultGoal> >> <plugins> >> <plugin> >> >> <artifactId>maven-eclipse-plugin</artifactId> >> <executions> >> <execution> >> >> <id>eclipse</id> >> >> <phase>process-test-resources</phase> >> <goals> >> >> <goal>eclipse</goal> >> </goals> >> </execution> >> </executions> >> </plugin> >> </plugins> >> </build> >> </profile> >> >> >> >> -- >> Zeno Consulting, Inc. >> home: http://www.zenoconsulting.biz >> blog: http://zenoconsulting.wikidot.com >> p: 248.894.4922 >> f: 313.884.2977 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > -- Zeno Consulting, Inc. home: http://www.zenoconsulting.biz blog: http://zenoconsulting.wikidot.com p: 248.894.4922 f: 313.884.2977
