You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Deploying Maven Artifacts to the Staging Repository

Maven can automatically deploy artifacts (such as jar files) to a remote repository. We have set up a "staging" repository for intermediate builds, which is accessible at http://people.apache.org/~alally/uima-2.2.0-incubating/maven.

To deploy artifacts you must be a committer and have ssh access to people.apache.org. On Windows, you have to modify your
Maven settings.xml file to indicate what your ssh client is. For
me, this file is in Document And Settings/Administrator/.m2. I added
the following stanza:
<servers>
<server>
<id>staging-repository</id>
<username>alally</username>
<privateKey>c:/alally/keys/alally.ppk</privateKey>
<configuration>
<sshExecutable>plink</sshExecutable>
<scpExecutable>pscp</scpExecutable>
</configuration>
</server>
</servers>

which works if you have putty installed (be sure to point at your own
privateKey file, and start Pageant). I got these instructions from here: http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html

Then, to do a deployment, execute the following command (from the uimaj directory):
mvn source:jar deploy

If you are building a UIMA distribution using the extractAndBuild script, you can
pass the -deploy option to do the Maven deployment as part of the build process.

  • No labels