How to activate maven profile inside eclipse
Tech-Today

How to activate maven profile inside eclipse


Normally maven is use for project dependency management and lifecycle, so there are several developers working on it. Each has its own development environment either in windows, linux or mac. To do this we create several profiles for each developer in pom.xml.
 <profiles>
<profile>
<id>windows</id>
<properties>
<jboss.home>C:/manaty/jboss-4.2.3.GA</jboss.home>
</properties>
</profile>
<profile>
<id>linux</id>
<properties>
<jboss.home>/home/project/jboss-4.2.3.GA</jboss.home>
</properties>
</profile>
</profiles>
And then invoke mvn with the -P argument. Example:
mvn install -Pwindows
mvn install -Plinux
How could we do the same inside eclipse. There are 2 ways: 1.) Right click on the project->click properties->select maven menu
If in case maven is not present, right click on project->Maven->Enable Maven Dependency 2.) Right click on project->Run As->Run Configurations->Maven Build->Add a new build (set profile and goal)




- Database Initialization Using Liquibase
Slack Discussion Repositories https://github.com/terawarehouse/terawarehouse-cataloghttps://github.com/terawarehouse/terawarehouse-reactAfter you have finished running some tests using either the code or script base database initialization it’s now...

- How To Create A Javaee6 Web App Using Jboss Maven War Archetype
This tutorial will teach us how easy it is to create a javaee6 web project using jboss maven archetype. Requirements: 1.) eclipse-jee-juno 2.) maven plugin Steps: 1.) Open eclipse 2.) In eclipse click File->New->Other, and type "maven" in the wizards...

- How To Install Maven 3 In Ubuntu 11.10
To install maven 3 you need to remove first, if you have, the previous versions installed (maven2). And execute the ff command in the terminal: sudo apt-get remove maven2 sudo add-apt-repository ppa:natecarlson/maven3 sudo apt-get install maven3 You...

- Create A New Seam Web Project In Eclipse-helios
In this exercise we will be building seam web project in eclipse. It's long so stay focus :-D. What you need (The following should be installed correctly): Note: in parentheses is where I installed mine. 1.) Jboss seam 2.2.1 (C:\jboss-seam-2.2.1)...

- Setting Up The Seam Examples In Jboss Server On A Windows Pc
I've been here before but that was a long time ago so here I am again playing with seam framework because my work requires me to. I notice there is no straightforward tutorial on how to make this so I'm making one. Download and install the following....



Tech-Today








.