Changes between Version 8 and Version 9 of Obsolete/Development/Code/Maven
- Timestamp:
- Jan 23, 2012, 8:58:31 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Obsolete/Development/Code/Maven
v8 v9 65 65 == Using Maven to build an NCM component == 66 66 67 Add the LAPP nexus repository to your `~/.m2/settings.xml` file. An68 example looks like this:69 70 {{{#!xml71 <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.074 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 98 67 === Creating the basic structure for the component === 99 68 … … 104 73 -DarchetypeArtifactId=cfg-module \ 105 74 -DarchetypeGroupId=org.quattor.maven \ 106 -DarchetypeVersion=1.10 \ 107 -DarchetypeRepository=http://lapp-repo01.in2p3.fr:8081/nexus/content/repositories/releases/ 75 -DarchetypeVersion=1.13 108 76 }}} 109 77 110 78 With all this, you can now write your code! 79 80 Note that you no longer need to add the LAPP repository to your settings file. 81 82 Note 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. 111 83 112 84 === Importing an existing component into the new structure ===