You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Davis Ford <da...@zenoconsulting.biz> on 2009/03/02 20:48:03 UTC

how to get eclipse plugin to process-test-resources?

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to get eclipse plugin to process-test-resources?

Posted by Davis Ford <da...@zenoconsulting.biz>.
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 <ca...@gmail.com> 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
> <da...@zenoconsulting.biz> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>



-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

Re: how to get eclipse plugin to process-test-resources?

Posted by Carlos Sanchez <ca...@gmail.com>.
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
<da...@zenoconsulting.biz> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>