Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Any way to use project specific settings.xml?

Hi,

I know you can do this manually with Preferences->Maven->User Settings, but I was hoping for something more automated.

Ideally I would like to be able to have my project as:

src/
pom.xml
settings.xml (this declares a mirror to my company's internal repository)

And inside pom.xml perhaps there would be something like:

<build>
  <pluginManagement>
    <plugins>
      <!-- This doesn't exist -->
      <plugin>
        <groupId>org.eclipse.m2e</groupId>
        <artifactId>m2e-config</artifactId>
        <version>1.0.0</version>
        <configuration>
          <settings>settings.xml</settings>
        </configuration>
      </plugin>
    </plugins>
  </pluginManagement>
</build>

The end result would be as if eclipse called every maven command with
mvn -s settings.xml ...


Back to the top