Version 4 (modified by aydan, 10 years ago)


This page provides some information about how to use and publish artifacts to the Orca Maven repository and the Orca project web page.

Orca Maven Repository

The Orca Maven repository is located on the RENCI web server and can be accessed using the following http address:

All Orca projects must be configured to deploy their artifacts to the repository using the WEBDAV wagon. This configuration should have already been performed for all projects, but if you are adding a new project, here are some things to consider.

  • If your project is a descendant of Orca's top-level pom file (orca/orca), the wagon should already be enabled.
  • To enable the webdav wagon for a new top-level project you need to add the following to your pom.xml file:

  • If your project must invoke ant you may want to add the following dependency to work around a bug in the integration between ant and maven
  • If your project must invoke ant you will have to add the following lines to pass the user name and password to your ant file. In general you only need to add these to the deploy phase. Note: this is needed to work around the problem of ant ignoring the security settings inside ~/.m2/settings.xml

{{ <property name="username" value="${username}" /> <property name="password" value="${password}" /> }}

  • The deploy task inside your ant script should look something like this. Note the authentication tag, which takes the username and password properties we passed from the pom.xml file
<target name="deploy">
 <artifact:deploy file="${driver.package}">
  <pom file="resources/package.pom" />
  <remoteRepository refid="orca.deploy">
    <authentication username="${username}" password="${password}" />
  • You will also need to enable the webdav wagon in your ant script (yes, seems like we already did this, but ant does not pick the wagon settings from maven directly). Your ant file (or a file that it includes) should contain the following lines:
    <!-- Declare the main orca repository -->
    <artifact:remoteRepository id="orca" url="${orca.repository.url}" />
    <artifact:remoteRepository id="orca.deploy" url="${orca.deploy.repository.url}" />
    <!-- add the webdav wagon -->
    <artifact:install-provider artifactId="wagon-webdav" version="1.0-beta-2"/>

Orca Project Web Page