Configuring Maven2 settings.xml

In order to generate yDoc or deploy to the repositories, you need to build your settings.xml with local settings.  For yDoc, you need to tell it the location of your yDoc binaries, and for the repository, you need to provide your WebDAV username and password.

http://maven.apache.org/guides/introduction/introduction-to-profiles.html and http://maven.apache.org/maven-settings/settings.html provide the basic background information for this.

yDoc Setup

Download yDoc, plus also download the license file for it from Xircles. Put them in your directory structure where you like, then add the following to settings.xml:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <profiles>
    <profile>
      <id>default</id>
      <activation>
        <activeByDefault/>
      </activation>
      <properties>
        <clover.license.path>${user.home}/dev/license/clover.license</clover.license.path>
        <ydoc.home>${user.home}/dev/ydoc-2.2_03-jdk1.5</ydoc.home>
        <ydoc.license>${user.home}/dev/license/ydoc.license</ydoc.license>
      </properties>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>default</activeProfile>
  </activeProfiles>
</settings>



In my case, I have a folder called ~/dev/licenses for all my software licenses, and yDoc is in a peer directory in the same parent.

Repository Setup

Use the following XML in your profile, substituting the correct values:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <servers>
    <!--  secured repo -->
    <server>
      <id>trails-snapshot</id>
      <username>username</username>
      <password>password</password>
    </server>
    <server>
      <id>trails-release</id>
      <username>username</username>
      <password>password</password>
    </server>
  </servers>
</settings>



If you want to do both, you'll need to merge these two files together.

Labels

 
(None)