Commit 6492c851648a5f111d931899e9ae6ec212784252
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 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 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 | <modelVersion>4.0.0</modelVersion> | 6 | <modelVersion>4.0.0</modelVersion> |
5 | <groupId>eu.omp.irap.vespa</groupId> | 7 | <groupId>eu.omp.irap.vespa</groupId> |
6 | <artifactId>epntapclient</artifactId> | 8 | <artifactId>epntapclient</artifactId> |
7 | <version>0.0.1-SNAPSHOT</version> | 9 | <version>0.0.1-SNAPSHOT</version> |
8 | <name>epnTAPCLient</name> | 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 | <developers> | 15 | <developers> |
10 | <developer> | 16 | <developer> |
11 | <name>Nathanaël Jourdane</name> | 17 | <name>Nathanaël Jourdane</name> |
@@ -16,12 +22,15 @@ | @@ -16,12 +22,15 @@ | ||
16 | </roles> | 22 | </roles> |
17 | </developer> | 23 | </developer> |
18 | </developers> | 24 | </developers> |
25 | + | ||
26 | + <!-- The files encoding. --> | ||
19 | <properties> | 27 | <properties> |
20 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 28 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
21 | </properties> | 29 | </properties> |
22 | <build> | 30 | <build> |
23 | 31 | ||
24 | <plugins> | 32 | <plugins> |
33 | + | ||
25 | <!-- Tell to Maven wich Java version is used. --> | 34 | <!-- Tell to Maven wich Java version is used. --> |
26 | <plugin> | 35 | <plugin> |
27 | <artifactId>maven-compiler-plugin</artifactId> | 36 | <artifactId>maven-compiler-plugin</artifactId> |
@@ -31,6 +40,7 @@ | @@ -31,6 +40,7 @@ | ||
31 | <target>1.7</target> | 40 | <target>1.7</target> |
32 | </configuration> | 41 | </configuration> |
33 | </plugin> | 42 | </plugin> |
43 | + | ||
34 | <!-- Sign the jar in order to push it to cassis repository. --> | 44 | <!-- Sign the jar in order to push it to cassis repository. --> |
35 | <plugin> | 45 | <plugin> |
36 | <groupId>org.apache.maven.plugins</groupId> | 46 | <groupId>org.apache.maven.plugins</groupId> |
@@ -57,6 +67,7 @@ | @@ -57,6 +67,7 @@ | ||
57 | <verbose>true</verbose> | 67 | <verbose>true</verbose> |
58 | </configuration> | 68 | </configuration> |
59 | </plugin> | 69 | </plugin> |
70 | + | ||
60 | <!-- Generate model classes (voTable and voResource) from xsd schemas --> | 71 | <!-- Generate model classes (voTable and voResource) from xsd schemas --> |
61 | <plugin> | 72 | <plugin> |
62 | <groupId>org.jvnet.jaxb2.maven2</groupId> | 73 | <groupId>org.jvnet.jaxb2.maven2</groupId> |
@@ -72,28 +83,20 @@ | @@ -72,28 +83,20 @@ | ||
72 | <configuration> | 83 | <configuration> |
73 | <schemaDirectory>src/main/resources/xsd</schemaDirectory> | 84 | <schemaDirectory>src/main/resources/xsd</schemaDirectory> |
74 | <bindingDirectory>src/main/resources/xjb</bindingDirectory> | 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 | </configuration> | 88 | </configuration> |
76 | </execution> | 89 | </execution> |
77 | </executions> | 90 | </executions> |
78 | </plugin> | 91 | </plugin> |
79 | - <!-- Ant plugin to add suppress-warnings in generated code. --> | ||
80 | <plugin> | 92 | <plugin> |
93 | + | ||
94 | + <!-- Ant executions. --> | ||
81 | <artifactId>maven-antrun-plugin</artifactId> | 95 | <artifactId>maven-antrun-plugin</artifactId> |
82 | <version>1.7</version> | 96 | <version>1.7</version> |
83 | <executions> | 97 | <executions> |
84 | <execution> | 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 | <id>suppress-warning-generated</id> | 100 | <id>suppress-warning-generated</id> |
98 | <phase>process-sources</phase> | 101 | <phase>process-sources</phase> |
99 | <goals> | 102 | <goals> |
@@ -119,8 +122,8 @@ | @@ -119,8 +122,8 @@ | ||
119 | </executions> | 122 | </executions> |
120 | </plugin> | 123 | </plugin> |
121 | </plugins> | 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 | <pluginManagement> | 127 | <pluginManagement> |
125 | <plugins> | 128 | <plugins> |
126 | <plugin> | 129 | <plugin> |
@@ -132,15 +135,9 @@ | @@ -132,15 +135,9 @@ | ||
132 | <pluginExecutions> | 135 | <pluginExecutions> |
133 | <pluginExecution> | 136 | <pluginExecution> |
134 | <pluginExecutionFilter> | 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 | <goals> | 141 | <goals> |
145 | <goal>run</goal> | 142 | <goal>run</goal> |
146 | </goals> | 143 | </goals> |
@@ -156,22 +153,26 @@ | @@ -156,22 +153,26 @@ | ||
156 | </plugins> | 153 | </plugins> |
157 | </pluginManagement> | 154 | </pluginManagement> |
158 | </build> | 155 | </build> |
156 | + | ||
157 | + <!-- The project dependencies --> | ||
159 | <dependencies> | 158 | <dependencies> |
160 | <dependency> | 159 | <dependency> |
160 | + | ||
161 | + <!-- A library to deal with JSON files --> | ||
161 | <groupId>com.google.code.gson</groupId> | 162 | <groupId>com.google.code.gson</groupId> |
162 | <artifactId>gson</artifactId> | 163 | <artifactId>gson</artifactId> |
163 | <version>2.2.2</version> | 164 | <version>2.2.2</version> |
164 | <scope>compile</scope> | 165 | <scope>compile</scope> |
165 | </dependency> | 166 | </dependency> |
166 | </dependencies> | 167 | </dependencies> |
168 | + | ||
167 | <profiles> | 169 | <profiles> |
170 | + <!-- This profile is activated by the "-P jenkins" switch when run on the build server by | ||
171 | + Jenkins (continuous integration) --> | ||
168 | <profile> | 172 | <profile> |
169 | <id>jenkins</id> | 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 | <build> | 174 | <build> |
173 | <plugins> | 175 | <plugins> |
174 | - <!-- Jenkins should only build -SNAPSHOTs --> | ||
175 | <plugin> | 176 | <plugin> |
176 | <artifactId>maven-enforcer-plugin</artifactId> | 177 | <artifactId>maven-enforcer-plugin</artifactId> |
177 | <executions> | 178 | <executions> |
@@ -182,6 +183,7 @@ | @@ -182,6 +183,7 @@ | ||
182 | <configuration> | 183 | <configuration> |
183 | <rules> | 184 | <rules> |
184 | <evaluateBeanshell> | 185 | <evaluateBeanshell> |
186 | + <!-- Jenkins should only build -SNAPSHOTs --> | ||
185 | <condition>"${project.version}".endsWith("-SNAPSHOT")</condition> | 187 | <condition>"${project.version}".endsWith("-SNAPSHOT")</condition> |
186 | <message>Jenkins should only build -SNAPSHOT versions</message> | 188 | <message>Jenkins should only build -SNAPSHOT versions</message> |
187 | </evaluateBeanshell> | 189 | </evaluateBeanshell> |
@@ -195,12 +197,15 @@ | @@ -195,12 +197,15 @@ | ||
195 | </build> | 197 | </build> |
196 | </profile> | 198 | </profile> |
197 | </profiles> | 199 | </profiles> |
200 | + | ||
201 | + <!-- The repository where to deploy the project. --> | ||
198 | <repositories> | 202 | <repositories> |
199 | <repository> | 203 | <repository> |
200 | <id>IRAP-NEXUS</id> | 204 | <id>IRAP-NEXUS</id> |
201 | <url>https://nexus.irap.omp.eu/content/groups/public</url> | 205 | <url>https://nexus.irap.omp.eu/content/groups/public</url> |
202 | </repository> | 206 | </repository> |
203 | </repositories> | 207 | </repositories> |
208 | + | ||
204 | <!-- For using it, (with mvn deploy) it need the <server(s)> config on ~/m2/settings.xml | 209 | <!-- For using it, (with mvn deploy) it need the <server(s)> config on ~/m2/settings.xml |
205 | with the logins for nexus. --> | 210 | with the logins for nexus. --> |
206 | <distributionManagement> | 211 | <distributionManagement> |