Configuring Maven (Without Team Infrastructure)
Configuring Maven (Without Team Infrastructure)
These instructions configure your local Maven repository to retrieve build artifacts from your Nexus server and set up Maven to build for your specific environment, i.e Eclipse, Tomcat, and so on.
- With an XML editor, open your Maven .m2/settings.xml.
- Find and delete the following block of XML:
<mirrors> <mirror> <!-- You will need to change the URL here to your corporate Maven repository which mirrors the internet. --> <id>internet-mirror</id> <url>http://your.internal.maven.repo.localdomain/nexus/content/groups/mirror</url> <mirrorOf>external:*</mirrorOf> </mirror> </mirrors>
- Comment out the ep-external-developer activeProfile:
<!-- <activeProfile>ep-external-developer</activeProfile> -->
- Uncomment the following profiles:
- WTP Profile
Profile Purpose <activeProfile>wtp-developer</activeProfile>
Sets the Tomcat and the Search server ports to 8080, so they can run in Eclipse. - Application Server Profile (uncomment one of these)
- WTP Profile
- Save your modifications.