Statistics
| Revision:

root / branches / modelio3 / pom.xml @ 374

History | View | Annotate | Download (6.05 KB)

1 347 chm
<?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"
3
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0                       http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
        <modelVersion>4.0.0</modelVersion>
5
6
        <!-- definition -->
7
        <groupId>org.modelio.module</groupId>
8
        <artifactId>javadesigner</artifactId>
9 374 chm
        <version>3.0.03</version>
10 347 chm
        <name>JavaDesigner</name>
11
12 369 integratio
        <!-- repositories -->
13
        <repositories>
14
                <repository>
15
                        <id>modelio</id>
16
                        <url>http://repository.modelio.org</url>
17
                </repository>
18
        </repositories>
19
20
        <pluginRepositories>
21
                <pluginRepository>
22
                        <id>modelio</id>
23
                        <url>http://repository.modelio.org</url>
24
                </pluginRepository>
25
        </pluginRepositories>
26
27 347 chm
        <!-- properties -->
28
        <properties>
29
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30
        </properties>
31
32
        <dependencies>
33
                <!-- api modelio -->
34
                <dependency>
35
                        <groupId>org.modelio</groupId>
36
                        <artifactId>MDAKit</artifactId>
37 369 integratio
                        <version>3.0.0.05</version>
38 347 chm
                        <type>pom</type>
39
                        <scope>provided</scope>
40
                </dependency>
41
                <dependency>
42
                        <groupId>com.modelio.module</groupId>
43
                        <artifactId>xmlreverse</artifactId>
44
                        <version>3.0.11</version>
45
                </dependency>
46
                <dependency>
47
                        <groupId>org.javatuples</groupId>
48
                        <artifactId>javatuples</artifactId>
49
                        <version>1.2</version>
50
                </dependency>
51
                <dependency>
52
                        <groupId>org.modelio.module.javadesigner</groupId>
53
                        <artifactId>antlr-runtime</artifactId>
54
                        <version>3.4.1</version>
55
                </dependency>
56
        </dependencies>
57
58
        <!-- // Build // -->
59
        <build>
60
                <plugins>
61
                        <!-- Use JVM 1.7 -->
62
                        <plugin>
63
                                <groupId>org.apache.maven.plugins</groupId>
64
                                <artifactId>maven-compiler-plugin</artifactId>
65
                                <version>2.3.2</version>
66
                                <configuration>
67
                                        <source>1.7</source>
68
                                        <target>1.7</target>
69
                                        <encoding>${project.build.sourceEncoding}</encoding>
70
                                </configuration>
71
                        </plugin>
72
73
                        <plugin>
74
                                <groupId>org.modelio</groupId>
75
                                <artifactId>modelio-maven-plugin</artifactId>
76 369 integratio
                                <version>3.0.0.00</version>
77 347 chm
                                <executions>
78
                                        <execution>
79
                                            <id>ModuleValidation</id>
80
                                                <phase>validate</phase>
81
                                                <goals>
82
                                                        <goal>module-validation</goal>
83
                                                </goals>
84
                                        </execution>
85
                                        <execution>
86
                                                <id>ResourceManagement</id>
87
                                                <phase>generate-resources</phase>
88
                                                <goals>
89
                                                        <goal>module-configuration</goal>
90
                                                </goals>
91
                                        </execution>
92
                                </executions>
93
                                <configuration>
94
                                        <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
95
                                </configuration>
96
                        </plugin>
97
98
                        <!-- Copy maven dependencies -->
99
                        <plugin>
100
                                <groupId>org.apache.maven.plugins</groupId>
101
                                <artifactId>maven-dependency-plugin</artifactId>
102
                                <version>2.4</version>
103
                                <configuration>
104
                                        <outputDirectory>${project.basedir}/target/lib</outputDirectory>
105
                                        <overWriteReleases>false</overWriteReleases>
106
                                        <overWriteSnapshots>false</overWriteSnapshots>
107
                                        <overWriteIfNewer>true</overWriteIfNewer>
108
                                        <excludeScope>provided</excludeScope>
109
                                </configuration>
110
                                <executions>
111
                                        <execution>
112
                                                <id>copy-dependencies</id>
113
                                                <phase>package</phase>
114
                                                <goals>
115
                                                        <goal>copy-dependencies</goal>
116
                                                </goals>
117
                                        </execution>
118
                                </executions>
119
                        </plugin>
120
121
                        <!-- Build zip -->
122
                        <plugin>
123
                                <groupId>org.apache.maven.plugins</groupId>
124
                                <artifactId>maven-assembly-plugin</artifactId>
125
                                <version>2.3</version>
126
                                <configuration>
127
                                        <encoding>${project.build.sourceEncoding}</encoding>
128
                                        <descriptors>
129
                                                <descriptor>assembly.xml</descriptor>
130
                                        </descriptors>
131
                                        <finalName>${project.name}_${project.version}</finalName>
132
                                        <appendAssemblyId>false</appendAssemblyId>
133
                                </configuration>
134
                                <executions>
135
                                        <execution>
136
                                                <id>make-assembly</id>
137
                                                <phase>package</phase>
138
                                                <goals>
139
                                                        <goal>single</goal>
140
                                                </goals>
141
                                        </execution>
142
                                </executions>
143
                        </plugin>
144
145
                        <!-- Rename zip into jmdac -->
146
                        <plugin>
147
                                <groupId>org.apache.maven.plugins</groupId>
148
                                <artifactId>maven-antrun-plugin</artifactId>
149
                                <version>1.7</version>
150
                                <executions>
151
                                        <execution>
152
                                                <id>rename</id>
153
                                                <phase>package</phase>
154
                                                <configuration>
155
                                                        <target>
156
                                                                <move
157
                                                                        file="${project.basedir}/target/${project.name}_${project.version}.zip"
158
                                                                        tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
159
                                                        </target>
160
                                                </configuration>
161
                                                <goals>
162
                                                        <goal>run</goal>
163
                                                </goals>
164
                                        </execution>
165
                                </executions>
166
                        </plugin>
167
                </plugins>
168
169
                <pluginManagement>
170
                        <plugins>
171
                                <!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
172
                                <plugin>
173
                                        <groupId>org.eclipse.m2e</groupId>
174
                                        <artifactId>lifecycle-mapping</artifactId>
175
                                        <version>1.0.0</version>
176
                                        <configuration>
177
                                                <lifecycleMappingMetadata>
178
                                                        <pluginExecutions>
179
                                                                <pluginExecution>
180
                                                                        <pluginExecutionFilter>
181
                                                                                <groupId>org.apache.maven.plugins</groupId>
182
                                                                                <artifactId>maven-dependency-plugin</artifactId>
183
                                                                                <versionRange>[1.0.0,)</versionRange>
184
                                                                                <goals>
185
                                                                                        <goal>copy-dependencies</goal>
186
                                                                                </goals>
187
                                                                        </pluginExecutionFilter>
188
                                                                        <action>
189
                                                                                <ignore />
190
                                                                        </action>
191
                                                                </pluginExecution>
192
                                                                <pluginExecution>
193
                                                                        <pluginExecutionFilter>
194
                                                                                <groupId>org.modelio</groupId>
195
                                                                                <artifactId>
196
                                                                                        modelio-maven-plugin
197
                                                                                </artifactId>
198
                                                                                <versionRange>
199 369 integratio
                                                                                        [3.0.0.00,)
200 347 chm
                                                                                </versionRange>
201
                                                                                <goals>
202
                                                                                        <goal>
203
                                                                                                module-configuration
204
                                                                                        </goal>
205
                                                                                        <goal>
206
                                                                                                module-validation
207
                                                                                        </goal>
208
                                                                                </goals>
209
                                                                        </pluginExecutionFilter>
210
                                                                        <action>
211
                                                                                <ignore></ignore>
212
                                                                        </action>
213
                                                                </pluginExecution>
214
                                                        </pluginExecutions>
215
                                                </lifecycleMappingMetadata>
216
                                        </configuration>
217
                                </plugin>
218
                        </plugins>
219
                </pluginManagement>
220
        </build>
221
222
        <distributionManagement>
223
                <repository>
224
                        <id>modelio-dev</id>
225
                        <name>modelio-dev</name>
226
                        <url>http://minotaure:8081/nexus/content/repositories/dev/</url>
227
                </repository>
228
        </distributionManagement>
229
</project>