Skip to content
Snippets Groups Projects
  • Spencer Sutton's avatar
    a7188c4d
    Locking down maven central · a7188c4d
    Spencer Sutton authored
    commit a62093b5 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu May 27 2021 10:15:43 GMT-0500 (Central Daylight Time) 
    
         "Excluding springs default security, locking down mvn central"
    a7188c4d
    History
    Locking down maven central
    Spencer Sutton authored
    commit a62093b5 
    Author: Spencer Sutton <suttonsp@amazon.com> 
    Date: Thu May 27 2021 10:15:43 GMT-0500 (Central Daylight Time) 
    
         "Excluding springs default security, locking down mvn central"
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
settings.xml 2.96 KiB
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.​
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->

<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>aws-osdu-dev-maven</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>aws-osdu-dev-maven</id>
                    <url>${env.AWS_OSDU_DEV_MAVEN_URL}</url>
                </repository>
                <repository>
                    <id>gitlab-os-core-common-maven</id>
                    <url>https://community.opengroup.org/api/v4/projects/67/packages/maven</url>
                </repository>
                <repository>
                    <id>gitlab-os-core-lib-aws-maven</id>
                    <url>https://community.opengroup.org/api/v4/projects/68/packages/maven</url>
                </repository>
            </repositories>
        </profile>
        <profile>
            <id>credentialsConfiguration</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <deployment.environment>dev</deployment.environment>
                <aws.accessKeyId>no-default</aws.accessKeyId>
                <aws.secretKey>no-default</aws.secretKey>
                <azure.devops.username>Another-Access-Token-2021</azure.devops.username>
                <azure.devops.token>no-default</azure.devops.token>
            </properties>
        </profile>
    </profiles>

    <servers>
        <server>
            <id>aws-osdu-dev-maven</id>
            <username>aws</username>
            <password>${env.AWS_OSDU_DEV_MAVEN_AUTH_TOKEN}</password>
        </server>
    </servers>

    <mirrors>
        <mirror>
            <id>aws-osdu-dev-maven</id>
            <name>aws-osdu-dev-maven</name>
            <url>https://osdu-dev-${AWS_ACCOUNT_ID}.d.codeartifact.us-east-1.amazonaws.com/maven/osdu-maven/</url>
            <mirrorOf>central,!gitlab-os-core-common-maven,!gitlab-os-core-lib-aws-maven</mirrorOf>
        </mirror>
    </mirrors>

    <activeProfiles>
        <activeProfile>credentialsConfiguration</activeProfile>
    </activeProfiles>

</settings>