Changes between Version 3 and Version 4 of Orca Maven Repository and Project Web Page

Show
Ignore:
Timestamp:
12/21/08 14:27:03 (11 years ago)
Author:
aydan (IP: 69.134.122.47)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Orca Maven Repository and Project Web Page

    v3 v4  
    1212{{{ 
    1313<build> 
    14 .... 
     14... 
    1515 <extensions> 
     16  ... 
    1617  <extension> 
    1718   <groupId>org.apache.maven.wagon</groupId> 
     
    1920   <version>1.0-beta-2</version> 
    2021  </extension> 
     22  ... 
    2123 </extensions> 
     24... 
    2225</build> 
     26... 
     27}}} 
     28  
     29 * 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 
     30 
     31{{{ 
     32<dependency>  
     33 <groupId>commons-httpclient</groupId>  
     34 <artifactId>commons-httpclient</artifactId>  
     35 <version>2.0.2</version>  
     36</dependency>  
     37}}} 
     38 
     39 * 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 
     40 
     41{{ 
     42<property name="username" value="${username}" /> 
     43<property name="password" value="${password}" /> 
     44}}  
     45 
     46 * 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 
     47 
     48{{{ 
     49<target name="deploy"> 
     50 <artifact:deploy file="${driver.package}"> 
     51  <pom file="resources/package.pom" /> 
     52  <remoteRepository refid="orca.deploy"> 
     53    <authentication username="${username}" password="${password}" /> 
     54  </remoteRepository> 
     55 </artifact:deploy> 
     56</target> 
     57}}} 
     58 
     59 * 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: 
     60{{{ 
     61<!-- Declare the main orca repository --> 
     62<artifact:remoteRepository id="orca" url="${orca.repository.url}" /> 
     63<artifact:remoteRepository id="orca.deploy" url="${orca.deploy.repository.url}" /> 
     64<!-- add the webdav wagon --> 
     65<artifact:install-provider artifactId="wagon-webdav" version="1.0-beta-2"/> 
    2366}}} 
    2467