-
Notifications
You must be signed in to change notification settings - Fork 25
Example settings.xml
Jonah Graham edited this page Oct 19, 2017
·
2 revisions
These settings are only applicable to the build engineer doing a Release of Eclipse January. To deploy January to Maven Central you need a ~/.m2/settings.xml
with the following contents. See Release-and-RC-Procedure for more details.
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.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">
<profiles>
<profile>
<id>allow-snapshots</id>
<activation><activeByDefault>true</activeByDefault></activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<!-- This should match the ID in pluginManagement in the root pom.xml -->
<id>ossrh</id>
<!-- This is the username and password for connecting to
https://oss.sonatype.org/ & https://issues.sonatype.org/ -->
<username>-- username here --</username>
<password>-- password here --</password>
</server>
</servers>
</settings>