NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Bata Degen Posted via mailing list.
|
Posted: Tue Apr 24, 2012 10:50 pm Post subject: Run Maven profile from within NetBeans |
|
|
I've added this profile (plus the corresponding dependency) to my pom.xml:
<profiles>
<profile>
<id>hyperjaxb3</id>
<activation>
<property>
<name>generate-model</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.hyperjaxb3</groupId>
<artifactId>maven-hyperjaxb3-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
How can I tell NetBeans to run this profile for me? On the command-line
this would be "mvn install -Phyperjaxb3" but I want to kick it off from
within NetBeans.
Any ideas or solutions? |
|
| Back to top |
|
 |
predatorvi
Joined: 10 Sep 2010 Posts: 23
|
Posted: Wed Apr 25, 2012 12:14 am Post subject: Run Maven profile from within NetBeans |
|
|
Assuming NetBeans 7.x...and maybe 6.x (not sure about previous)....
You can right click the project and choose "Set Configuration..." and pick the profile to use for any project.
There is also a drop down box that shows the profiles for whichever project is the "Main Project" that lets you pick the profile that way. The default for the dropdown is usually "<default config>" or something like that.
On Tue, Apr 24, 2012 at 4:27 PM, Bata Degen <address-removed ([email]address-removed[/email])> wrote:
| Quote: | I've added this profile (plus the corresponding dependency) to my pom.xml:
<profiles>
<profile>
<id>hyperjaxb3</id>
<activation>
<property>
<name>generate-model</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.hyperjaxb3</groupId>
<artifactId>maven-hyperjaxb3-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
How can I tell NetBeans to run this profile for me? On the command-line this would be "mvn install -Phyperjaxb3" but I want to kick it off from within NetBeans.
Any ideas or solutions?
|
--
Jeff Vincent
address-removed ([email]address-removed[/email])
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox !! |
|
| Back to top |
|
 |
Bata Degen Posted via mailing list.
|
Posted: Wed Apr 25, 2012 7:23 am Post subject: Run Maven profile from within NetBeans |
|
|
On 04/25/2012 01:50 AM, Jeff wrote:
| Quote: | Assuming NetBeans 7.x...and maybe 6.x (not sure about previous)....
You can right click the project and choose "Set Configuration..." and
pick the profile to use for any project.
There is also a drop down box that shows the profiles for whichever
project is the "Main Project" that lets you pick the profile that
way. The default for the dropdown is usually "<default config>" or
something like that.
|
Thanks, Jeff! That was it. |
|
| Back to top |
|
 |
Milos Kleint Posted via mailing list.
|
Posted: Wed Apr 25, 2012 7:29 am Post subject: Run Maven profile from within NetBeans |
|
|
just a note. The configurations selection UI only allows one profile
to be activated at a time, if you need multiple profiles activated, go
to project properties dialog and create a custom configuration.
The configuration is applied to loading the project in the IDE (what
the IDE sees) and to all maven build executions.
Milos
On Wed, Apr 25, 2012 at 8:59 AM, Bata Degen <address-removed> wrote:
| Quote: | On 04/25/2012 01:50 AM, Jeff wrote:
| Quote: |
Assuming NetBeans 7.x...and maybe 6.x (not sure about previous)....
You can right click the project and choose "Set Configuration..." and
pick the profile to use for any project.
There is also a drop down box that shows the profiles for whichever
project is the "Main Project" that lets you pick the profile that
way. The default for the dropdown is usually "<default config>" or
something like that.
|
Thanks, Jeff! That was it. |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|