How can you set external repository credentials in the POM file?

I know that you can create a settings.xml file with values below, but how can I 
configure a POM file with username/password. I looked at 
http://maven.apache.org/maven-v4_0_0.xsd and I don't see a username and 
password.

<?xml version="1.0"?>
<settings>
    <profiles>
        <profile>
            <id>example.archiva</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>example.internal</id>
                    <name>Example's Repository</name>
                    
<url>http://maven-secure.example.com/archiva/repository/example.internal</url>
                </repository>
            </repositories>

            <pluginRepositories>
                <pluginRepository>
                    <id>example.internal</id>
                    <name>example's Repository</name>
                    
<url>http://maven-secure.example.com/archiva/repository/example.internal</url>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <servers>
         <server>
            <id>example.internal</id>
            <username>username</username>
            <password>p...@s$w0rd</password>
         </server>
      </servers>
</settings>

Brig Lamoreaux



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Reply via email to