Statistics
| Revision:

root / branches / modelio3.8.x / pom.xml @ 449

History | View | Annotate | Download (7.06 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>javadesigner</artifactId>
8
        <version>3.8.01</version>
9
        <name>JavaDesigner</name>
10

    
11
        <!-- repositories -->
12
        <repositories>
13
                <repository>
14
                        <id>modelio</id>
15
                        <url>https://repository.modelio.org</url>
16
                </repository>
17
        </repositories>
18

    
19
        <pluginRepositories>
20
                <pluginRepository>
21
                        <id>modelio</id>
22
                        <url>https://repository.modelio.org</url>
23
                </pluginRepository>
24
        </pluginRepositories>
25

    
26
        <!-- properties -->
27
        <properties>
28
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29
        </properties>
30

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

    
41
                <dependency>
42
                        <groupId>org.modelio</groupId>
43
                        <artifactId>org.modelio.documentation.javadesigner</artifactId>
44
                        <version>${project.version}</version>
45
                </dependency>
46

    
47
                <dependency>
48
                        <groupId>com.modelio.module</groupId>
49
                        <artifactId>xmlreverse</artifactId>
50
                        <version>3.4.03</version>
51
            <type>jar</type>
52
                </dependency>
53

    
54
                <dependency>
55
                        <groupId>org.javatuples</groupId>
56
                        <artifactId>javatuples</artifactId>
57
                        <version>1.2</version>
58
                </dependency>
59

    
60
                <dependency>
61
                        <groupId>org.modelio.module.javadesigner</groupId>
62
                        <artifactId>antlr-runtime</artifactId>
63
                        <version>3.4.1</version>
64
                </dependency>
65

    
66
        <dependency>
67
            <groupId>org.modelio.module</groupId>
68
            <artifactId>modelermodule</artifactId>
69
            <version>8.8.12</version>
70
            <scope>provided</scope>
71
        </dependency>
72
                
73
        <dependency>
74
            <groupId>org.modelio</groupId>
75
            <artifactId>org.modelio.core.session</artifactId>
76
            <version>[3.8.0,3.8.1)</version>
77
            <type>jar</type>
78
            <scope>provided</scope>
79
        </dependency>
80

    
81
        </dependencies>
82

    
83
        <!-- // Build // -->
84
        <build>
85
                <plugins>
86
                        <!-- Use JVM 1.8 -->
87
                        <plugin>
88
                                <groupId>org.apache.maven.plugins</groupId>
89
                                <artifactId>maven-compiler-plugin</artifactId>
90
                                <version>2.3.2</version>
91
                                <configuration>
92
                                        <source>1.8</source>
93
                                        <target>1.8</target>
94
                                        <encoding>${project.build.sourceEncoding}</encoding>
95
                                </configuration>
96
                        </plugin>
97

    
98
                        <plugin>
99
                                <groupId>org.modelio</groupId>
100
                                <artifactId>modelio-maven-plugin</artifactId>
101
                <version>3.7.1.00</version>
102
                                <executions>
103
                                        <execution>
104
                                            <id>ModuleValidation</id>
105
                                                <phase>validate</phase>
106
                                                <goals>
107
                                                        <goal>module-validation</goal>
108
                                                </goals>
109
                                        </execution>
110
                                        <execution>
111
                                                <id>ResourceManagement</id>
112
                                                <phase>generate-resources</phase>
113
                                                <goals>
114
                                                        <goal>module-configuration</goal>
115
                                                </goals>
116
                                        </execution>
117
                                </executions>
118
                                <configuration>
119
                                        <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
120
                                </configuration>
121
                        </plugin>
122

    
123
                        <!-- Copy maven dependencies -->
124
                        <plugin>
125
                                <groupId>org.apache.maven.plugins</groupId>
126
                                <artifactId>maven-dependency-plugin</artifactId>
127
                                <version>2.4</version>
128
                                <configuration>
129
                                        <outputDirectory>${project.basedir}/target/lib</outputDirectory>
130
                                        <overWriteReleases>false</overWriteReleases>
131
                                        <overWriteSnapshots>false</overWriteSnapshots>
132
                                        <overWriteIfNewer>true</overWriteIfNewer>
133
                                        <excludeScope>provided</excludeScope>
134
                                </configuration>
135
                                <executions>
136
                                        <execution>
137
                                                <id>copy-dependencies</id>
138
                                                <phase>package</phase>
139
                                                <goals>
140
                                                        <goal>copy-dependencies</goal>
141
                                                </goals>
142
                                        </execution>
143
                                </executions>
144
                        </plugin>
145

    
146
                        <!-- Build zip -->
147
                        <plugin>
148
                                <groupId>org.apache.maven.plugins</groupId>
149
                                <artifactId>maven-assembly-plugin</artifactId>
150
                                <version>2.3</version>
151
                                <configuration>
152
                                        <encoding>${project.build.sourceEncoding}</encoding>
153
                                        <descriptors>
154
                                                <descriptor>assembly.xml</descriptor>
155
                                        </descriptors>
156
                                        <finalName>${project.name}_${project.version}</finalName>
157
                                        <attach>false</attach>
158
                                        <appendAssemblyId>false</appendAssemblyId>
159
                                </configuration>
160
                                <executions>
161
                                        <execution>
162
                                                <id>make-assembly</id>
163
                                                <phase>package</phase>
164
                                                <goals>
165
                                                        <goal>single</goal>
166
                                                </goals>
167
                                        </execution>
168
                                </executions>
169
                        </plugin>
170

    
171
                        <!-- Rename zip into jmdac -->
172
                        <plugin>
173
                                <groupId>org.apache.maven.plugins</groupId>
174
                                <artifactId>maven-antrun-plugin</artifactId>
175
                                <version>1.7</version>
176
                                <executions>
177
                                        <execution>
178
                                                <id>rename</id>
179
                                                <phase>package</phase>
180
                                                <configuration>
181
                                                        <target>
182
                                <move file="${project.basedir}/target/${project.name}_${project.version}.zip" tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
183

    
184
                                                        </target>
185
                                                </configuration>
186
                                                <goals>
187
                                                        <goal>run</goal>
188
                                                </goals>
189
                                        </execution>
190
                                </executions>
191
                        </plugin>
192
                </plugins>
193

    
194
                <pluginManagement>
195
                        <plugins>
196
                                <!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
197
                                <plugin>
198
                                        <groupId>org.eclipse.m2e</groupId>
199
                                        <artifactId>lifecycle-mapping</artifactId>
200
                                        <version>1.0.0</version>
201
                                        <configuration>
202
                                                <lifecycleMappingMetadata>
203
                                                        <pluginExecutions>
204
                                                                <pluginExecution>
205
                                                                        <pluginExecutionFilter>
206
                                                                                <groupId>org.apache.maven.plugins</groupId>
207
                                                                                <artifactId>maven-dependency-plugin</artifactId>
208
                                                                                <versionRange>[1.0.0,)</versionRange>
209
                                                                                <goals>
210
                                                                                        <goal>copy-dependencies</goal>
211
                                                                                </goals>
212
                                                                        </pluginExecutionFilter>
213
                                                                        <action>
214
                                                                                <ignore />
215
                                                                        </action>
216
                                                                </pluginExecution>
217
                                                                <pluginExecution>
218
                                                                        <pluginExecutionFilter>
219
                                                                                <groupId>org.modelio</groupId>
220
                                                                                <artifactId>
221
                                                                                        modelio-maven-plugin
222
                                                                                </artifactId>
223
                                                                                <versionRange>
224
                                                [3.7.0.02,)
225
                                                                                </versionRange>
226
                                                                                <goals>
227
                                                                                        <goal>
228
                                                    module-validation
229
                                                                                        </goal>
230
                                                                                        <goal>
231
                                                    module-configuration
232
                                                                                        </goal>
233
                                                                                </goals>
234
                                                                        </pluginExecutionFilter>
235
                                                                        <action>
236
                                                                                <ignore></ignore>
237
                                                                        </action>
238
                                                                </pluginExecution>
239
                                                        </pluginExecutions>
240
                                                </lifecycleMappingMetadata>
241
                                        </configuration>
242
                                </plugin>
243
                        </plugins>
244
                </pluginManagement>
245
        </build>
246
    <description>The Java Designer module provides a complete range of features dedicated to Java development, including Java code and Javadoc generation from UML2 models. It also provides an automatic model completion feature, incorporating automatic accessor production and synchronization, and a reverse service used to reverse-engineer existing Java application.</description>
247
</project>
248