Changes between Version 8 and Version 9 of Obsolete/Development/Code/Maven


Ignore:
Timestamp:
Jan 23, 2012, 8:58:31 AM (14 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=Charles Loomis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Obsolete/Development/Code/Maven

    v8 v9  
    6565== Using Maven to build an NCM component ==
    6666
    67 Add the LAPP nexus repository to your `~/.m2/settings.xml` file. An
    68 example looks like this:
    69 
    70 {{{#!xml
    71 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    72   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    73   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
    74                       http://maven.apache.org/xsd/settings-1.0.0.xsd">
    75   <localRepository/>
    76   <interactiveMode/>
    77   <usePluginRegistry/>
    78   <offline/>
    79   <pluginGroups/>
    80   <servers/>
    81   <mirrors/>
    82   <proxies/>
    83   <profiles>
    84     <profile>
    85       <id>quattor-plugins</id>
    86       <pluginRepositories>
    87         <pluginRepository>
    88           <id>quattor-releases</id>
    89           <url>http://lapp-repo01.in2p3.fr:8081/nexus/content/repositories/releases/</url>
    90         </pluginRepository>
    91       </pluginRepositories>
    92     </profile>   
    93   </profiles>
    94   <activeProfiles/>
    95 </settings>
    96 }}}
    97 
    9867=== Creating the basic structure for the component ===
    9968
     
    10473    -DarchetypeArtifactId=cfg-module \
    10574    -DarchetypeGroupId=org.quattor.maven \
    106     -DarchetypeVersion=1.10 \
    107     -DarchetypeRepository=http://lapp-repo01.in2p3.fr:8081/nexus/content/repositories/releases/
     75    -DarchetypeVersion=1.13
    10876}}}
    10977
    11078With all this, you can now write your code!
     79
     80Note that you no longer need to add the LAPP repository to your settings file.
     81
     82Note also that you can check for the [[http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.quattor.maven%22%20AND%20a%3A%22cfg-module%22|latest version of the archetype]] by searching the central maven repository. 
    11183
    11284=== Importing an existing component into the new structure ===