Statistics
| Revision:

root / branches / modelio3 / pom.xml @ 46

History | View | Annotate | Download (5.63 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>modelermodule</artifactId>
9
        <version>8.2.03</version>
10

    
11
        <name>ModelerModule</name>
12

    
13
        <!-- properties -->
14
        <properties>
15
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16
        </properties>
17

    
18
        <dependencies>
19
                <!-- api modelio -->
20
                <dependency>
21
                        <groupId>org.modelio</groupId>
22
                        <artifactId>MDAKit</artifactId>
23
                        <version>3.0.0.05</version>
24
                        <type>pom</type>
25
                        <scope>provided</scope>
26
                </dependency>
27
        </dependencies>
28

    
29
        <!-- repositories -->
30
        <repositories>
31
                <repository>
32
                        <id>modelio</id>
33
                        <url>http://repository.modelio.org</url>
34
                </repository>
35
        </repositories>
36

    
37
        <pluginRepositories>
38
                <pluginRepository>
39
                        <id>modelio</id>
40
                        <url>http://repository.modelio.org</url>
41
                </pluginRepository>
42
        </pluginRepositories>
43

    
44
        <!-- // Build // -->
45
        <build>
46
                <plugins>
47
                        <!-- Use JVM 1.7 -->
48
                        <plugin>
49
                                <groupId>org.apache.maven.plugins</groupId>
50
                                <artifactId>maven-compiler-plugin</artifactId>
51
                                <version>2.3.2</version>
52
                                <configuration>
53
                                        <source>1.7</source>
54
                                        <target>1.7</target>
55
                                        <encoding>${project.build.sourceEncoding}</encoding>
56
                                </configuration>
57
                        </plugin>
58

    
59
                        <plugin>
60
                                <groupId>org.modelio</groupId>
61
                                <artifactId>modelio-maven-plugin</artifactId>
62
                                <version>3.0.0.00</version>
63
                                <executions>
64
                                        <execution>
65
                                            <id>ModuleValidation</id>
66
                                                <phase>validate</phase>
67
                                                <goals>
68
                                                        <goal>module-validation</goal>
69
                                                </goals>
70
                                        </execution>
71
                                        <execution>
72
                                                <id>ResourceManagement</id>
73
                                                <phase>generate-resources</phase>
74
                                                <goals>
75
                                                        <goal>module-configuration</goal>
76
                                                </goals>
77
                                        </execution>
78
                                </executions>
79
                                <configuration>
80
                                        <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
81
                                </configuration>
82
                        </plugin>
83

    
84
                        <!-- Copy maven dependencies -->
85
                        <plugin>
86
                                <groupId>org.apache.maven.plugins</groupId>
87
                                <artifactId>maven-dependency-plugin</artifactId>
88
                                <version>2.4</version>
89
                                <configuration>
90
                                        <outputDirectory>${project.basedir}/target/lib</outputDirectory>
91
                                        <overWriteReleases>false</overWriteReleases>
92
                                        <overWriteSnapshots>false</overWriteSnapshots>
93
                                        <overWriteIfNewer>true</overWriteIfNewer>
94
                                        <excludeScope>provided</excludeScope>
95
                                </configuration>
96
                                <executions>
97
                                        <execution>
98
                                                <id>copy-dependencies</id>
99
                                                <phase>package</phase>
100
                                                <goals>
101
                                                        <goal>copy-dependencies</goal>
102
                                                </goals>
103
                                        </execution>
104
                                </executions>
105
                        </plugin>
106

    
107
                        <!-- Build zip -->
108
                        <plugin>
109
                                <groupId>org.apache.maven.plugins</groupId>
110
                                <artifactId>maven-assembly-plugin</artifactId>
111
                                <version>2.3</version>
112
                                <configuration>
113
                                        <encoding>${project.build.sourceEncoding}</encoding>
114
                                        <descriptors>
115
                                                <descriptor>assembly.xml</descriptor>
116
                                        </descriptors>
117
                                        <finalName>${project.name}_${project.version}</finalName>
118
                                        <appendAssemblyId>false</appendAssemblyId>
119
                                </configuration>
120
                                <executions>
121
                                        <execution>
122
                                                <id>make-assembly</id>
123
                                                <phase>package</phase>
124
                                                <goals>
125
                                                        <goal>single</goal>
126
                                                </goals>
127
                                        </execution>
128
                                </executions>
129
                        </plugin>
130

    
131
                        <!-- Rename zip into jmdac -->
132
                        <plugin>
133
                                <groupId>org.apache.maven.plugins</groupId>
134
                                <artifactId>maven-antrun-plugin</artifactId>
135
                                <version>1.7</version>
136
                                <executions>
137
                                        <execution>
138
                                                <id>rename</id>
139
                                                <phase>package</phase>
140
                                                <configuration>
141
                                                        <target>
142
                                                                <move
143
                                                                        file="${project.basedir}/target/${project.name}_${project.version}.zip"
144
                                                                        tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
145
                                                        </target>
146
                                                </configuration>
147
                                                <goals>
148
                                                        <goal>run</goal>
149
                                                </goals>
150
                                        </execution>
151
                                </executions>
152
                        </plugin>
153
                </plugins>
154

    
155
                <pluginManagement>
156
                        <plugins>
157
                                <!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
158
                                <plugin>
159
                                        <groupId>org.eclipse.m2e</groupId>
160
                                        <artifactId>lifecycle-mapping</artifactId>
161
                                        <version>1.0.0</version>
162
                                        <configuration>
163
                                                <lifecycleMappingMetadata>
164
                                                        <pluginExecutions>
165
                                                                <pluginExecution>
166
                                                                        <pluginExecutionFilter>
167
                                                                                <groupId>org.apache.maven.plugins</groupId>
168
                                                                                <artifactId>maven-dependency-plugin</artifactId>
169
                                                                                <versionRange>[1.0.0,)</versionRange>
170
                                                                                <goals>
171
                                                                                        <goal>copy-dependencies</goal>
172
                                                                                </goals>
173
                                                                        </pluginExecutionFilter>
174
                                                                        <action>
175
                                                                                <ignore />
176
                                                                        </action>
177
                                                                </pluginExecution>
178
                                                                <pluginExecution>
179
                                                                        <pluginExecutionFilter>
180
                                                                                <groupId>org.modelio</groupId>
181
                                                                                <artifactId>
182
                                                                                        modelio-maven-plugin
183
                                                                                </artifactId>
184
                                                                                <versionRange>
185
                                                                                        [2.2.0.03,)
186
                                                                                </versionRange>
187
                                                                                <goals>
188
                                                                                        <goal>
189
                                                                                                module-configuration
190
                                                                                        </goal>
191
                                                                                        <goal>
192
                                                                                                module-validation
193
                                                                                        </goal>
194
                                                                                </goals>
195
                                                                        </pluginExecutionFilter>
196
                                                                        <action>
197
                                                                                <ignore></ignore>
198
                                                                        </action>
199
                                                                </pluginExecution>
200
                                                        </pluginExecutions>
201
                                                </lifecycleMappingMetadata>
202
                                        </configuration>
203
                                </plugin>
204
                        </plugins>
205
                </pluginManagement>
206
        </build>
207
        
208
        <distributionManagement>
209
                <repository>
210
                        <id>modelio-dev</id>
211
                        <name>modelio-dev</name>
212
                        <url>http://minotaure:8081/nexus/content/repositories/dev/</url>
213
                </repository>
214
        </distributionManagement>
215
</project>
216