Statistics
| Revision:

root / cpswarm / pom.xml @ 60

History | View | Annotate | Download (10.5 KB)

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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4

    
5
  <!-- definition -->
6
  <groupId>org.modelio.module</groupId>
7
  <artifactId>cpswarm</artifactId>
8
  <version>3.8.06</version>
9
  <name>CPSWarm</name>
10
  <repositories>
11
      <repository>
12
          <id>modelio</id>
13
          <url>http://repository.modelio.org</url>
14
      </repository>
15
  </repositories>
16

    
17
  <pluginRepositories>
18
      <pluginRepository>
19
          <id>modelio-plugins</id>
20
          <url>http://repository.modelio.org</url>
21
      </pluginRepository>
22
  </pluginRepositories>
23

    
24
    <!-- properties -->
25
    <properties>
26
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27
    </properties>
28

    
29
    <dependencies>
30
        <!-- api modelio -->
31
        <dependency>
32
            <groupId>org.modelio</groupId>
33
            <artifactId>MDAKit</artifactId>
34
            <version>[3.8.0,3.8.1)</version>
35
            <type>pom</type>
36
            <scope>provided</scope>
37
        </dependency>
38

    
39
        <dependency>
40
            <groupId>com.fasterxml.jackson.core</groupId>
41
            <artifactId>jackson-core</artifactId>
42
            <version>2.8.7</version>
43
            <type>jar</type>
44
        </dependency>
45

    
46
        <dependency>
47
            <groupId>org.modelio</groupId>
48
            <artifactId>org.eclipse.ui.forms</artifactId>
49
            <version>3.7.101.v20170815-1446</version>
50
            <type>jar</type>
51
            <scope>provided</scope>
52
        </dependency>
53

    
54
        <dependency>
55
            <groupId>jaxen</groupId>
56
            <artifactId>jaxen</artifactId>
57
            <version>1.1</version>
58
            <type>jar</type>
59
        </dependency>
60

    
61
        <dependency>
62
            <groupId>org.jdom</groupId>
63
            <artifactId>jdom</artifactId>
64
            <version>1.1.3</version>
65
        </dependency>
66

    
67
        <dependency>
68
            <groupId>org.modelio.module</groupId>
69
            <artifactId>sysmlarchitect</artifactId>
70
            <version>3.8.03</version>
71
            <scope>provided</scope>
72
        </dependency>
73

    
74
        <dependency>
75
            <groupId>org.modelio</groupId>
76
            <artifactId>org.modelio.modelermodule</artifactId>
77
            <version>9.0.06</version>
78
            <scope>provided</scope>
79
        </dependency>
80

    
81
        <dependency>
82
            <groupId>xerces</groupId>
83
            <artifactId>xercesImpl</artifactId>
84
            <version>2.11.0</version>
85
            <type>jar</type>
86
        </dependency>
87

    
88
        <dependency>
89
            <groupId>com.fasterxml.jackson.core</groupId>
90
            <artifactId>jackson-annotations</artifactId>
91
            <version>2.8.7</version>
92
            <type>jar</type>
93
        </dependency>
94

    
95
        <dependency>
96
            <groupId>com.fasterxml.jackson.core</groupId>
97
            <artifactId>jackson-databind</artifactId>
98
            <version>2.8.7</version>
99
            <type>jar</type>
100
        </dependency>
101

    
102
    </dependencies>
103

    
104
    <!-- // Build // -->
105
    <build>
106
        <sourceDirectory>src/main/java</sourceDirectory>
107
        <plugins>
108
            <!-- Use JVM 1.8 -->
109
            <plugin>
110
                <groupId>org.apache.maven.plugins</groupId>
111
                <artifactId>maven-compiler-plugin</artifactId>
112
                <version>2.3.2</version>
113
                <configuration>
114
                    <source>1.8</source>
115
                    <target>1.8</target>
116
                    <encoding>${project.build.sourceEncoding}</encoding>
117
                </configuration>
118
            </plugin>
119

    
120
            <plugin>
121
                <groupId>org.modelio</groupId>
122
                <artifactId>modelio-maven-plugin</artifactId>
123
                <version>3.8.0.02</version>
124
                <executions>
125
                    <execution>
126
                        <id>ModuleValidation</id>
127
                        <phase>validate</phase>
128
                        <goals>
129
                            <goal>module-validation</goal>
130
                        </goals>
131
                    </execution>
132
                    <execution>
133
                        <id>ResourceManagement</id>
134
                        <phase>generate-resources</phase>
135
                        <goals>
136
                            <goal>module-configuration</goal>
137
                        </goals>
138
                    </execution>
139
                </executions>
140
                <configuration>
141
                    <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
142
                    <sourceBasedir>src/main/java</sourceBasedir>
143
                </configuration>
144
            </plugin>
145

    
146
            <!-- Copy maven dependencies -->
147
            <plugin>
148
                <groupId>org.apache.maven.plugins</groupId>
149
                <artifactId>maven-dependency-plugin</artifactId>
150
                <version>2.4</version>
151
                <configuration>
152
                    <outputDirectory>${project.basedir}/target/lib</outputDirectory>
153
                    <overWriteReleases>false</overWriteReleases>
154
                    <overWriteSnapshots>false</overWriteSnapshots>
155
                    <overWriteIfNewer>true</overWriteIfNewer>
156
                    <excludeScope>provided</excludeScope>
157
                </configuration>
158
                <executions>
159
                    <execution>
160
                        <id>copy-dependencies</id>
161
                        <phase>package</phase>
162
                        <goals>
163
                            <goal>copy-dependencies</goal>
164
                        </goals>
165
                    </execution>
166
                </executions>
167
            </plugin>
168

    
169
            <!-- Build zip -->
170
            <plugin>
171
                <groupId>org.apache.maven.plugins</groupId>
172
                <artifactId>maven-assembly-plugin</artifactId>
173
                <version>2.3</version>
174
                <configuration>
175
                    <encoding>${project.build.sourceEncoding}</encoding>
176
                    <descriptors>
177
                        <descriptor>assembly.xml</descriptor>
178
                    </descriptors>
179
                    <finalName>${project.name}_${project.version}</finalName>
180
                    <attach>false</attach>
181
                    <appendAssemblyId>false</appendAssemblyId>
182
                </configuration>
183
                <executions>
184
                    <execution>
185
                        <id>make-assembly</id>
186
                        <phase>package</phase>
187
                        <goals>
188
                            <goal>single</goal>
189
                        </goals>
190
                    </execution>
191
                </executions>
192
            </plugin>
193

    
194
            <!-- Rename zip into jmdac -->
195
            <plugin>
196
                <groupId>org.apache.maven.plugins</groupId>
197
                <artifactId>maven-antrun-plugin</artifactId>
198
                <version>1.7</version>
199
                <executions>
200
                    <execution>
201
                        <id>rename</id>
202
                        <phase>package</phase>
203
                        <configuration>
204
                            <target>
205
                                <move file="${project.basedir}/target/${project.name}_${project.version}.zip" tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
206

    
207
                                </target>
208
                            </configuration>
209
                            <goals>
210
                                <goal>run</goal>
211
                            </goals>
212
                        </execution>
213
                    </executions>
214
                </plugin>
215
            </plugins>
216

    
217
            <pluginManagement>
218
                <plugins>
219
                    <!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
220
                    <plugin>
221
                        <groupId>org.eclipse.m2e</groupId>
222
                       <artifactId>lifecycle-mapping</artifactId>
223
                        <version>1.0.0</version>
224
                        <configuration>
225
                            <lifecycleMappingMetadata>
226
                                <pluginExecutions>
227
                                    <pluginExecution>
228
                                        <pluginExecutionFilter>
229
                                            <groupId>org.apache.maven.plugins</groupId>
230
                                            <artifactId>maven-dependency-plugin</artifactId>
231
                                            <versionRange>[1.0.0,)</versionRange>
232
                                            <goals>
233
                                                <goal>copy-dependencies</goal>
234
                                            </goals>
235
                                        </pluginExecutionFilter>
236
                                        <action>
237
                                            <ignore />
238
                                        </action>
239
                                    </pluginExecution>
240
                                    <pluginExecution>
241
                                        <pluginExecutionFilter>
242
                                            <groupId>org.modelio</groupId>
243
                                            <artifactId>
244
                                                modelio-maven-plugin
245
                                            </artifactId>
246
                                            <versionRange>
247
                                                [3.8.0.02,)
248
                                            </versionRange>
249
                                            <goals>
250
                                                <goal>
251
                                                    module-validation
252
                                                </goal>
253
                                                <goal>
254
                                                    module-configuration
255
                                                </goal>
256
                                            </goals>
257
                                        </pluginExecutionFilter>
258
                                        <action>
259
                                            <ignore></ignore>
260
                                        </action>
261
                                    </pluginExecution>
262
                                </pluginExecutions>
263
                            </lifecycleMappingMetadata>
264
                        </configuration>
265
                    </plugin>
266
                </plugins>
267
            </pluginManagement>
268
        </build>
269
    <description>CPSWarm is a Modelio extension dedicated to the CPSWarm methodology and tool flow.</description>
270
    </project>