-
Notifications
You must be signed in to change notification settings - Fork 5
/
pom.xml
214 lines (199 loc) · 10.1 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
******************************************************************************
OpenSILEX - Licence AGPL V3.0 - https://www.gnu.org/licenses/agpl-3.0.en.html
Copyright © INRA 2019
Contact: vincent.migot@inra.fr, anne.tireau@inra.fr, pascal.neveu@inra.fr
OpenSilex Software main pom.xml
This module includes:
- An embed Tomcat Server
- An extensible Rest API using Jersey library
- An extensible Command Line Interface (CLI) using Picocli library
- An extensible Configuration management system
- An extensible Service management system
- A module management system for all extensions
- A security system based on Users, Groups and Profiles
- A Swagger UI interface to access web-services API
- A SPARQL object model system based on annotations
- A big data object model system based on annotations using DataNucleus library
- Base classes for unit and integration test
This module build create a Shade Jar including all core dependencies.
For more information see: https://maven.apache.org/plugins/maven-shade-plugin/
******************************************************************************
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>opensilex</artifactId>
<packaging>jar</packaging>
<name>opensilex</name>
<url>https://www.opensilex.org/</url>
<parent>
<groupId>org.opensilex</groupId>
<artifactId>opensilex-parent</artifactId>
<version>${revision}</version>
<relativePath>../opensilex-parent/pom.xml</relativePath>
</parent>
<dependencies>
<!-- Web app JS library Manage js file from maven @see http://www.webjars.org/documentation#servlet3
The ressource namespace META-INF.resources.webjars.jquery.2.1.4 contains
jquery.js the path is the same as the url namespace Ex : http://localhost:8080/phis2ws/webjars/jquery/2.1.4/jquery.js -->
<dependency>
<groupId>org.webjars</groupId>
<artifactId>swagger-ui</artifactId>
<version>2.2.10-1</version>
</dependency>
</dependencies>
<build>
<!-- include swagger webapp -->
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<!-- Define swagger interface resources -->
<resource>
<directory>src/main/webapp</directory>
<includes>
<include>**</include>
</includes>
<targetPath>webapp</targetPath>
</resource>
</resources>
<plugins>
<!-- Check plugin and dependencies available updates -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions.maven.plugin.version}</version>
<configuration>
<rulesUri>file:////${project.basedir}/src/main/resources/version-rules.xml</rulesUri>
<skip>${ignoreMavenPluginVersion}</skip>
</configuration>
</plugin>
<!-- Front Node & Yarn management -->
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend.maven.plugin.version}</version>
<executions>
<!-- install node and yarn globally -->
<execution>
<id>install node and package manager</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<phase>initialize</phase>
</execution>
<!-- install typescript and dts-generator types definition generator globally -->
<execution>
<id>install typescript and dts-generator globally</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>global add typescript dts-generator</arguments>
</configuration>
<phase>initialize</phase>
</execution>
<!-- install shared Javascript dependencies -->
<execution>
<id>install common js dependencies</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>--network-timeout 1000000 install</arguments>
<workingDirectory>../</workingDirectory>
</configuration>
<phase>initialize</phase>
</execution>
<!-- Check shared Javascript dependencies version -->
<execution>
<id>check common js outdated dependencies</id>
<phase>verify</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<skip>${skipFrontBuild}</skip>
<arguments>run check:outdated</arguments>
<workingDirectory>../</workingDirectory>
</configuration>
</execution>
<!-- Check shared Javascript dependencies security issues -->
<execution>
<id>check common js dependencies security issues</id>
<phase>verify</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<skip>${skipFrontAudit}</skip>
<arguments>run check:security</arguments>
<workingDirectory>../</workingDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Generate Shaded jar with dependencies -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>full</shadedClassifierName>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>org.opensilex.cli.MainCommand</Main-Class>
</manifestEntries>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer" />
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>**/module-info.class</exclude>
</excludes>
</filter>
</filters>
<artifactSet>
<excludes>
<exclude>jakarta.annotation:jakarta.annotation-api</exclude>
<exclude>org.glassfish.hk2.external:jakarta.inject</exclude>
<exclude>commons-logging:commons-logging</exclude>
<exclude>javax.activation:javax.activation-api</exclude>
<exclude>javax.mail:javax.mail-api</exclude>
<exclude>javax.validation:validation-api</exclude>
<exclude>jakarta.xml.bind:jakarta.xml.bind-api</exclude>
<exclude>jakarta.activation:jakarta.activation-api</exclude>
<exclude>com.sun.activation:jakarta.activation</exclude>
<exclude>jakarta.el:jakarta.el-api</exclude>
<exclude>org.glassfish:jakarta.el</exclude>
<exclude>javax.annotation:javax.annotation-api</exclude>
<exclude>org.apache.httpcomponents:httpcore-osgi</exclude>
<exclude>org.apache.httpcomponents:httpclient-osgi</exclude>
</excludes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>