If I add the atlassian repos (the SDK local disk repo and the
https://maven.atlassian.com/repository/public repo to the settings.xml,
will maven still fetch dependencies from maven central?
I have tried googling for the behaviour here, and I have tried running
mvn help:active-profiles
without becoming any wiser:
- With atlassian-profile in <activeProfiles> atlassian-profile is
listed as the only active profile
- With an empty <activeProfiles> element, no active profiles are listed
- With no <activeProfiles> element, no active profiles are listed
Below is my ~/.m2/settings.xml file.
Should I make the atlassian-profile activeByDefault, instead of listing
it in <activeProfiles>? (the theory being that all activeByDefault
profiles will be enabled which would include both the one with maven
central, and atlassian-profile)
Or shouldn't I worry about it, because maven central will always be
used?
Thanks!
- Steinar
My ~/.m2/settings.xml file:
<settings>
<profiles>
<profile>
<id>atlassian-profile</id>
<repositories>
<repository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
<repository>
<id>atlassian-plugin-sdk</id>
<url>file://${env.ATLAS_HOME}/repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</pluginRepository>
<pluginRepository>
<id>atlassian-plugin-sdk</id>
<url>file://${env.ATLAS_HOME}/repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>default</activeProfile>
<activeProfile>atlassian-profile</activeProfile>
</activeProfiles>
</settings>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]