The id and URL should be defined in your pom.xml like this: Otherwise, the key will be ignored.Īll you should need is the id, username and password Note: If you use a private key to login to the server, make sure you omit the element. The legal values of each is a three digit number corrosponding to *nix file permissions, ie. The passphrase and password elements may be externalized in the future, but for now they must be set plain-text in the settings.xml file.įilePermissions, directoryPermissions: When a repository file or directory is created on deployment, these are the permissions to use. PrivateKey, passphrase: Like the previous two elements, this pair specifies a path to a private key (default is $/.ssh/id_dsa) and a passphrase, if required. Username, password: These elements appear as a pair denoting the login and password required to authenticate to this server. Id: This is the ID of the server (not of the user to login as) that matches the id element of the repository/mirror that Maven tries to connect to. This type of information should exist on the build server in the settings.xml. However, certain settings such as username and password should not be distributed along with the pom.xml. The repositories for download and deployment are defined by the repositories and distributionManagement elements of the POM.
0 Comments
Leave a Reply. |