How to activate a profile?

15 views
Skip to first unread message

arch...@gmail.com

unread,
Jan 16, 2008, 9:37:54 AM1/16/08
to Q for Eclipse users list
I am trying to find out how to activate a profile when a goal is run.
I want the command line equivalent of mvn -P profile package.

Thanks

Alex

Robert Dale

unread,
Jan 16, 2008, 11:37:52 AM1/16/08
to q4e-...@googlegroups.com
On Jan 16, 2008 9:37 AM, arch...@gmail.com <arch...@gmail.com> wrote:
>
> I am trying to find out how to activate a profile when a goal is run.
> I want the command line equivalent of mvn -P profile package.

I don't know of a way to directly activate a profile through q4e, but
you can do it through properties. Add a property on the Execute Goal
action.

http://maven.apache.org/guides/introduction/introduction-to-profiles.html

This will activate the profile when the system property "debug" is
specified with any value:

<profiles>
<profile>
<activation>
<property>
<name>debug</name>
</property>
</activation>
...
</profile>
</profiles>

This example will trigger the profile when the system property
"environment" is specified with the value "test":

<profiles>
<profile>
<activation>
<property>
<name>environment</name>
<value>test</value>
</property>
</activation>
...
</profile>
</profiles>


--
Robert Dale

Abel Muiño Vizcaino

unread,
Jan 16, 2008, 1:31:49 PM1/16/08
to q4e-...@googlegroups.com
Profiles are not yet supported.

There is an open issue you might be interested in following: http://tinyurl.com/3dpvhq (click the star to be notified of progress).

--
Reply all
Reply to author
Forward
0 new messages