Commit 6492c851648a5f111d931899e9ae6ec212784252

Authored by Nathanael Jourdane
1 parent 32746123
Exists in master

Add a desciption and comments to the pom.xml

Showing 1 changed file with 32 additions and 27 deletions   Show diff stats
pom.xml
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4 +
  5 + <!-- Basic informations -->
4 6 <modelVersion>4.0.0</modelVersion>
5 7 <groupId>eu.omp.irap.vespa</groupId>
6 8 <artifactId>epntapclient</artifactId>
7 9 <version>0.0.1-SNAPSHOT</version>
8 10 <name>epnTAPCLient</name>
  11 + <description>The Epn-TAP library aims to provide methods to manage resources, services and dataset wich implements the epn-TAP core, in order to get data and deal with it with any other software, ie. though a SAMP hub. It also comes with a GUI, initialy built to be integrated on the Cassis sofware, but it can be launch as standalone.</description>
  12 + <url>http://cassis.irap.omp.eu/</url>
  13 +
  14 + <!-- The developers of the library. -->
9 15 <developers>
10 16 <developer>
11 17 <name>Nathanaël Jourdane</name>
... ... @@ -16,12 +22,15 @@
16 22 </roles>
17 23 </developer>
18 24 </developers>
  25 +
  26 + <!-- The files encoding. -->
19 27 <properties>
20 28 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21 29 </properties>
22 30 <build>
23 31  
24 32 <plugins>
  33 +
25 34 <!-- Tell to Maven wich Java version is used. -->
26 35 <plugin>
27 36 <artifactId>maven-compiler-plugin</artifactId>
... ... @@ -31,6 +40,7 @@
31 40 <target>1.7</target>
32 41 </configuration>
33 42 </plugin>
  43 +
34 44 <!-- Sign the jar in order to push it to cassis repository. -->
35 45 <plugin>
36 46 <groupId>org.apache.maven.plugins</groupId>
... ... @@ -57,6 +67,7 @@
57 67 <verbose>true</verbose>
58 68 </configuration>
59 69 </plugin>
  70 +
60 71 <!-- Generate model classes (voTable and voResource) from xsd schemas -->
61 72 <plugin>
62 73 <groupId>org.jvnet.jaxb2.maven2</groupId>
... ... @@ -72,28 +83,20 @@
72 83 <configuration>
73 84 <schemaDirectory>src/main/resources/xsd</schemaDirectory>
74 85 <bindingDirectory>src/main/resources/xjb</bindingDirectory>
  86 + <!-- The xjb file tels to xjc which xsd file is associated to some Java package. -->
  87 + <!-- It also modify voTable.xsd in order to rename the `Value`, which is a xjc keyword. -->
75 88 </configuration>
76 89 </execution>
77 90 </executions>
78 91 </plugin>
79   - <!-- Ant plugin to add suppress-warnings in generated code. -->
80 92 <plugin>
  93 +
  94 + <!-- Ant executions. -->
81 95 <artifactId>maven-antrun-plugin</artifactId>
82 96 <version>1.7</version>
83 97 <executions>
84 98 <execution>
85   - <id>remove-episode</id>
86   - <phase>process-sources</phase>
87   - <goals>
88   - <goal>run</goal>
89   - </goals>
90   - <configuration>
91   - <target name="Removing META-INF/sun-jaxb.episode">
92   - <delete file="${basedir}/src/main/java/META-INF/sun-jaxb.episode" />
93   - </target>
94   - </configuration>
95   - </execution>
96   - <execution>
  99 + <!-- Add @SuppressWarnings annotations for each class of the generated code. -->
97 100 <id>suppress-warning-generated</id>
98 101 <phase>process-sources</phase>
99 102 <goals>
... ... @@ -119,8 +122,8 @@
119 122 </executions>
120 123 </plugin>
121 124 </plugins>
122   - <!-- To avoid Eclipse warnings "Plugin execution not covered by lifecycle
123   - configuration" -->
  125 +
  126 + <!-- Avoid Eclipse warnings "Plugin execution not covered by lifecycle configuration" -->
124 127 <pluginManagement>
125 128 <plugins>
126 129 <plugin>
... ... @@ -132,15 +135,9 @@
132 135 <pluginExecutions>
133 136 <pluginExecution>
134 137 <pluginExecutionFilter>
135   - <groupId>
136   - org.apache.maven.plugins
137   - </groupId>
138   - <artifactId>
139   - maven-antrun-plugin
140   - </artifactId>
141   - <versionRange>
142   - [1.7,)
143   - </versionRange>
  138 + <groupId> org.apache.maven.plugins </groupId>
  139 + <artifactId> maven-antrun-plugin </artifactId>
  140 + <versionRange> [1.7,) </versionRange>
144 141 <goals>
145 142 <goal>run</goal>
146 143 </goals>
... ... @@ -156,22 +153,26 @@
156 153 </plugins>
157 154 </pluginManagement>
158 155 </build>
  156 +
  157 + <!-- The project dependencies -->
159 158 <dependencies>
160 159 <dependency>
  160 +
  161 + <!-- A library to deal with JSON files -->
161 162 <groupId>com.google.code.gson</groupId>
162 163 <artifactId>gson</artifactId>
163 164 <version>2.2.2</version>
164 165 <scope>compile</scope>
165 166 </dependency>
166 167 </dependencies>
  168 +
167 169 <profiles>
  170 + <!-- This profile is activated by the "-P jenkins" switch when run on the build server by
  171 + Jenkins (continuous integration) -->
168 172 <profile>
169 173 <id>jenkins</id>
170   - <!-- This profile is activated by the "-P jenkins" switch when run on
171   - the build server by Jenkins (continuous integration) -->
172 174 <build>
173 175 <plugins>
174   - <!-- Jenkins should only build -SNAPSHOTs -->
175 176 <plugin>
176 177 <artifactId>maven-enforcer-plugin</artifactId>
177 178 <executions>
... ... @@ -182,6 +183,7 @@
182 183 <configuration>
183 184 <rules>
184 185 <evaluateBeanshell>
  186 + <!-- Jenkins should only build -SNAPSHOTs -->
185 187 <condition>"${project.version}".endsWith("-SNAPSHOT")</condition>
186 188 <message>Jenkins should only build -SNAPSHOT versions</message>
187 189 </evaluateBeanshell>
... ... @@ -195,12 +197,15 @@
195 197 </build>
196 198 </profile>
197 199 </profiles>
  200 +
  201 + <!-- The repository where to deploy the project. -->
198 202 <repositories>
199 203 <repository>
200 204 <id>IRAP-NEXUS</id>
201 205 <url>https://nexus.irap.omp.eu/content/groups/public</url>
202 206 </repository>
203 207 </repositories>
  208 +
204 209 <!-- For using it, (with mvn deploy) it need the <server(s)> config on ~/m2/settings.xml
205 210 with the logins for nexus. -->
206 211 <distributionManagement>
... ...