| Author |
Message |
|
|
Post subject: How to run profiles within POM in MyEclipse
Posted: Apr 22, 2010 - 08:15 PM
|
|
Joined: Apr 22, 2010
Posts: 1
|
|
Hi,
I m trying to run a profile created in my POM
<profile>
<id>generate</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<sourceDirectory>src/main/resources</sourceDirectory>
<outputDirectory>src/main/java</outputDirectory>
<serverSide>false</serverSide>
<testCases>false</testCases>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
How do I run my profile?
I see an option on IntelliJ with the new profile ID created. Is there a place in Eclipse IDE where I can run this one or do I have to run it from the command line only?
Please let me know.
Thanks,
Phani |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: How to run profiles within POM in MyEclipse
Posted: May 04, 2011 - 02:08 PM
|
|
Registered Member


Joined: Dec 22, 2006
Posts: 6
|
|
Did you find out how to do it?
I have the exact same issue, I can run my profile through the command line but not via myeclipse.
I added my profile into my project preferences into the Maven4Myeclipse config. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: How to run profiles within POM in MyEclipse
Posted: May 05, 2011 - 10:06 AM
|
|

Joined: Nov 11, 2010
Posts: 2151
|
|
|
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: How to run profiles within POM in MyEclipse
Posted: May 06, 2011 - 03:40 PM
|
|
Registered Member


Joined: Mar 14, 2007
Posts: 39
|
|
i tried this but it doesn't work.
In my pom.xml I have specified a profiles section:
| Code: |
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault/>
</activation>
<properties>
<env>dev</env>
<weblogic.host.name>localhost</weblogic.host.name>
<weblogic.port>7001</weblogic.port>
<weblogic.protocol>http</weblogic.protocol>
<weblogic.user>weblogic</weblogic.user>
<weblogic.password>weblogic</weblogic.password>
<weblogic.target>base_domain</weblogic.target>
</properties>
</profile>
</profiles>
|
Then I right-click my pom.xml, choose Run as, run configurations and then I see there is a goals textbox and a profiles textbox. in profiles i simply type "dev"
However I get this error when I hit Apply and then Run:
| Quote: |
[WARNING] The requested profile "dev" could not be activated because it does not exist.
|
What did I do wrong?[/code] |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 09, 2011 - 07:12 PM
|
|
Registered Member


Joined: Mar 14, 2007
Posts: 39
|
|
Ok I got it working now - all is well! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 10, 2011 - 06:32 AM
|
|

Joined: Nov 11, 2010
Posts: 2151
|
|
trant,
Glad that it is working.
Do let us know if you have any other issues. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|