Statistics
| Revision:

root / branches / modelio3 / pom.xml @ 385

History | View | Annotate | Download (6.02 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"
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
        <version>3.1.00</version>
10
        <name>JavaDesigner</name>
11

    
12
        <!-- 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
        <!-- 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
                        <version>3.0.0.05</version>
38
                        <type>pom</type>
39
                        <scope>provided</scope>
40
                </dependency>
41
                
42
                <dependency>
43
                        <groupId>org.modelio</groupId>
44
                        <artifactId>org.modelio.documentation.javadesigner</artifactId>
45
                        <version>${project.version}</version>
46
                </dependency>
47
                
48
                <dependency>
49
                        <groupId>com.modelio.module</groupId>
50
                        <artifactId>xmlreverse</artifactId>
51
                        <version>3.0.11</version>
52
                </dependency>
53
                <dependency>
54
                        <groupId>org.javatuples</groupId>
55
                        <artifactId>javatuples</artifactId>
56
                        <version>1.2</version>
57
                </dependency>
58
                <dependency>
59
                        <groupId>org.modelio.module.javadesigner</groupId>
60
                        <artifactId>antlr-runtime</artifactId>
61
                        <version>3.4.1</version>
62
                </dependency>
63
        </dependencies>
64

    
65
        <!-- // Build // -->
66
        <build>
67
                <plugins>
68
                        <!-- Use JVM 1.7 -->
69
                        <plugin>
70
                                <groupId>org.apache.maven.plugins</groupId>
71
                                <artifactId>maven-compiler-plugin</artifactId>
72
                                <version>2.3.2</version>
73
                                <configuration>
74
                                        <source>1.7</source>
75
                                        <target>1.7</target>
76
                                        <encoding>${project.build.sourceEncoding}</encoding>
77
                                </configuration>
78
                        </plugin>
79

    
80
                        <plugin>
81
                                <groupId>org.modelio</groupId>
82
                                <artifactId>modelio-maven-plugin</artifactId>
83
                                <version>3.0.0.00</version>
84
                                <executions>
85
                                        <execution>
86
                                            <id>ModuleValidation</id>
87
                                                <phase>validate</phase>
88
                                                <goals>
89
                                                        <goal>module-validation</goal>
90
                                                </goals>
91
                                        </execution>
92
                                        <execution>
93
                                                <id>ResourceManagement</id>
94
                                                <phase>generate-resources</phase>
95
                                                <goals>
96
                                                        <goal>module-configuration</goal>
97
                                                </goals>
98
                                        </execution>
99
                                </executions>
100
                                <configuration>
101
                                        <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
102
                                </configuration>
103
                        </plugin>
104

    
105
                        <!-- Copy maven dependencies -->
106
                        <plugin>
107
                                <groupId>org.apache.maven.plugins</groupId>
108
                                <artifactId>maven-dependency-plugin</artifactId>
109
                                <version>2.4</version>
110
                                <configuration>
111
                                        <outputDirectory>${project.basedir}/target/lib</outputDirectory>
112
                                        <overWriteReleases>false</overWriteReleases>
113
                                        <overWriteSnapshots>false</overWriteSnapshots>
114
                                        <overWriteIfNewer>true</overWriteIfNewer>
115
                                        <excludeScope>provided</excludeScope>
116
                                </configuration>
117
                                <executions>
118
                                        <execution>
119
                                                <id>copy-dependencies</id>
120
                                                <phase>package</phase>
121
                                                <goals>
122
                                                        <goal>copy-dependencies</goal>
123
                                                </goals>
124
                                        </execution>
125
                                </executions>
126
                        </plugin>
127

    
128
                        <!-- Build zip -->
129
                        <plugin>
130
                                <groupId>org.apache.maven.plugins</groupId>
131
                                <artifactId>maven-assembly-plugin</artifactId>
132
                                <version>2.3</version>
133
                                <configuration>
134
                                        <encoding>${project.build.sourceEncoding}</encoding>
135
                                        <descriptors>
136
                                                <descriptor>assembly.xml</descriptor>
137
                                        </descriptors>
138
                                        <finalName>${project.name}_${project.version}</finalName>
139
                                        <appendAssemblyId>false</appendAssemblyId>
140
                                </configuration>
141
                                <executions>
142
                                        <execution>
143
                                                <id>make-assembly</id>
144
                                                <phase>package</phase>
145
                                                <goals>
146
                                                        <goal>single</goal>
147
                                                </goals>
148
                                        </execution>
149
                                </executions>
150
                        </plugin>
151

    
152
                        <!-- Rename zip into jmdac -->
153
                        <plugin>
154
                                <groupId>org.apache.maven.plugins</groupId>
155
                                <artifactId>maven-antrun-plugin</artifactId>
156
                                <version>1.7</version>
157
                                <executions>
158
                                        <execution>
159
                                                <id>rename</id>
160
                                                <phase>package</phase>
161
                                                <configuration>
162
                                                        <target>
163
                                                                <move
164
                                                                        file="${project.basedir}/target/${project.name}_${project.version}.zip"
165
                                                                        tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
166
                                                        </target>
167
                                                </configuration>
168
                                                <goals>
169
                                                        <goal>run</goal>
170
                                                </goals>
171
                                        </execution>
172
                                </executions>
173
                        </plugin>
174
                </plugins>
175

    
176
                <pluginManagement>
177
                        <plugins>
178
                                <!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
179
                                <plugin>
180
                                        <groupId>org.eclipse.m2e</groupId>
181
                                        <artifactId>lifecycle-mapping</artifactId>
182
                                        <version>1.0.0</version>
183
                                        <configuration>
184
                                                <lifecycleMappingMetadata>
185
                                                        <pluginExecutions>
186
                                                                <pluginExecution>
187
                                                                        <pluginExecutionFilter>
188
                                                                                <groupId>org.apache.maven.plugins</groupId>
189
                                                                                <artifactId>maven-dependency-plugin</artifactId>
190
                                                                                <versionRange>[1.0.0,)</versionRange>
191
                                                                                <goals>
192
                                                                                        <goal>copy-dependencies</goal>
193
                                                                                </goals>
194
                                                                        </pluginExecutionFilter>
195
                                                                        <action>
196
                                                                                <ignore />
197
                                                                        </action>
198
                                                                </pluginExecution>
199
                                                                <pluginExecution>
200
                                                                        <pluginExecutionFilter>
201
                                                                                <groupId>org.modelio</groupId>
202
                                                                                <artifactId>
203
                                                                                        modelio-maven-plugin
204
                                                                                </artifactId>
205
                                                                                <versionRange>
206
                                                                                        [3.0.0.00,)
207
                                                                                </versionRange>
208
                                                                                <goals>
209
                                                                                        <goal>
210
                                                                                                module-configuration
211
                                                                                        </goal>
212
                                                                                        <goal>
213
                                                                                                module-validation
214
                                                                                        </goal>
215
                                                                                </goals>
216
                                                                        </pluginExecutionFilter>
217
                                                                        <action>
218
                                                                                <ignore></ignore>
219
                                                                        </action>
220
                                                                </pluginExecution>
221
                                                        </pluginExecutions>
222
                                                </lifecycleMappingMetadata>
223
                                        </configuration>
224
                                </plugin>
225
                        </plugins>
226
                </pluginManagement>
227
        </build>
228

    
229
</project>
230