- This topic has 5 replies, 4 voices, and was last updated 13 years, 6 months ago by support-swapna.
-
AuthorPosts
-
phanirajivpeddiMemberHi,
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
deeeedMemberDid 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.
support-swapnaModeratordeeeed,
Here are some threads which discuss this issue in Eclipse. Please work on the same lines in MyEclipse:
http://maven.40175.n5.nabble.com/Activating-Maven-Profiles-inside-Eclipse-using-m2Eclipse-td134139.html
http://maven.apache.org/pom.html#ActivationLet me know how this works for you.
trantParticipant@support-swapna wrote:
deeeed,
Here are some threads which discuss this issue in Eclipse. Please work on the same lines in MyEclipse:
http://maven.40175.n5.nabble.com/Activating-Maven-Profiles-inside-Eclipse-using-m2Eclipse-td134139.html
http://maven.apache.org/pom.html#ActivationLet me know how this works for you.
i tried this but it doesn’t work.
In my pom.xml I have specified a profiles section:
<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:
[WARNING] The requested profile “dev” could not be activated because it does not exist.
What did I do wrong?
trantParticipantOk I got it working now – all is well!
support-swapnaModeratortrant,
Glad that it is working.
Do let us know if you have any other issues. -
AuthorPosts