| Summary: | internal mvn does not use user settings.xml | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | David Biesack <David.Biesack> |
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
David Biesack
Sorry, comments garbled. Better outline of problem/steps: Run maven launch configuration with the goal help:effective The console shows only <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"> <localRepository xmlns="http://maven.apache.org/SETTINGS/1.1.0">C:\Users\sasdjb\.m2\repository</localRepository> <interactiveMode xmlns="http://maven.apache.org/SETTINGS/1.1.0">false</interactiveMode> <pluginGroups xmlns="http://maven.apache.org/SETTINGS/1.1.0"> <pluginGroup>org.apache.maven.plugins</pluginGroup> <pluginGroup>org.codehaus.mojo</pluginGroup> </pluginGroups> </settings> I have verified that my Maven preferences has my User settings correct: C:\Users\sasdjb\.m2\settings.xml If I create an external tools launch configuration to run mvn.bat and run mvn help:effective-settings I get the complete expected user settings: <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository xmlns="http://maven.apache.org/SETTINGS/1.0.0">C:\Users\sasdjb\.m2\repository</localRepository> <profiles xmlns="http://maven.apache.org/SETTINGS/1.0.0"> <profile> <activation> <activeByDefault>true</activeByDefault> </activation> <!-- other stuff here --> <id>artifactory</id> </profile> <profile> <activation> xs <os> <family>Windows 7</family> <arch>amd64</arch> </os> </activation> <properties> <build.type>w64</build.type> </properties> <id>w64</id> </profile> <profile> <activation> <os> <family>Windows 7</family> <arch>x86</arch> </os> </activation> <properties> <build.type>w32</build.type> </properties> <id>win</id> </profile> <profile> <activation> <os> <name>Linux</name> <family>unix</family> </os> </activation> <properties> <build.type>lax</build.type> </properties> <id>lax</id> </profile> </profiles> <activeProfiles xmlns="http://maven.apache.org/SETTINGS/1.0.0"> <activeProfile>artifactory</activeProfile> </activeProfiles> </settings> user error. Even though help:effetive-settings does not show my profiles and profile activation, I did get it to work and the property I'm setting in the profile is getting set correctly. |