Connecting your Maven POM file to the Search Technologies Repository (Aspire 2)

From wiki.searchtechnologies.com
Jump to: navigation, search

For Information on Aspire 3.1 Click Here

The purpose of these instructions is to allow you to modify your POM file (pom.xml) so that you can deploy artifacts to the Search Technologies Maven repository.

Note 1: This is done automatically by the Aspire Stage Archetype - so you do not need to follow these steps if you originally created the stage using the Archetype.

Note 2: You must have read/write access to the Search Technologies Maven repository before you can deploy artifacts there.

Before you begin, read and implement the instructions in Connecting to the Search Technologies Maven Repository.

Next, add the following lines to the bottom of your pom.xml file:

  <distributionManagement>
    <repository>
      <id>stPublic</id>
      <url>${stPublicUrl}</url>
    </repository>
  </distributionManagement>

It should go just before your </project> tag.

And then you should be able to deploy your artifacts to the Search Technologies maven repository. Using the Maven deploy command (either command-line or via Eclipse).