-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNG-4645] Move Central repo definition out of Maven's core so it can… #419
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,9 +43,9 @@ under the License. | |
| values (values used when the setting is not specified) are provided. | ||
| | ||
|--> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.3.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd"> | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.3.0 https://maven.apache.org/xsd/settings-1.3.0.xsd"> | ||
<!-- localRepository | ||
| The path to the local repository maven will use to store artifacts. | ||
| | ||
|
@@ -166,6 +166,32 @@ under the License. | |
</mirror> | ||
</mirrors> | ||
|
||
<repositories> | ||
<repository> | ||
<id>central</id> | ||
<name>Central Repository</name> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>central</id> | ||
<name>Central Repository</name> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<releases> | ||
<updatePolicy>never</updatePolicy> | ||
</releases> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
|
||
<!-- profiles | ||
| This is a list of profiles which can be activated in a variety of ways, and which can modify | ||
| the build process. Profiles provided in the settings.xml are intended to provide local machine- | ||
|
@@ -257,9 +283,11 @@ under the License. | |
<!-- activeProfiles | ||
| List of profiles that are active for all builds. | ||
| | ||
--> | ||
<activeProfiles> | ||
<activeProfile>alwaysActiveProfile</activeProfile> | ||
<activeProfile>anotherAlwaysActiveProfile</activeProfile> | ||
<activeProfile>maven:core:central-repo</activeProfile> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like this approach. Let's invest time to do it correct, i.e. without profiles There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't offer anything better until settings don't change. Take your time and let me know. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gnodet, this is redudant now, no? |
||
<!-- | ||
activeProfile>anotherAlwaysActiveProfile</activeProfile> | ||
--> | ||
</activeProfiles> | ||
--> | ||
</settings> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this policy not on the repo as well?