Statistics
| Revision:

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

History | View | Annotate | Download (8.72 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>sysmlarchitect</artifactId>
9
        <version>3.8.01</version>
10
        <name>SysMLArchitect</name>
11

    
12
         <repositories>
13
                <repository>
14
                        <id>modelio</id>
15
                        <url>http://repository.modelio.org</url>
16
                </repository>
17
        </repositories>
18

    
19
        <pluginRepositories>
20
                <pluginRepository>
21
                        <id>modelio</id>
22
                        <url>http://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

    
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.module</groupId>
43
            <artifactId>modelermodule</artifactId>
44
            <version>8.8.12</version>
45
            <scope>provided</scope>
46
        </dependency>
47

    
48
                 <dependency>
49
                         <groupId>org.modelio</groupId>
50
                         <artifactId>org.modelio.documentation.sysml</artifactId>
51
                         <version>3.8.00</version>
52
                 </dependency>
53
        </dependencies>
54

    
55
        <!-- // Build // -->
56
    <build>
57
        <plugins>
58
            <!-- Use JVM 1.8 -->
59
            <plugin>
60
                <groupId>org.apache.maven.plugins</groupId>
61
                <artifactId>maven-compiler-plugin</artifactId>
62
                <version>2.3.2</version>
63
                <configuration>
64
                    <source>1.8</source>
65
                    <target>1.8</target>
66
                    <encoding>${project.build.sourceEncoding}</encoding>
67
                </configuration>
68
            </plugin>
69

    
70
            <plugin>
71
                <groupId>org.modelio</groupId>
72
                <artifactId>modelio-maven-plugin</artifactId>
73
                <version>3.7.0.02</version>
74
                <executions>
75
                    <execution>
76
                        <id>ModuleValidation</id>
77
                        <phase>validate</phase>
78
                        <goals>
79
                            <goal>module-validation</goal>
80
                        </goals>
81
                    </execution>
82
                    <execution>
83
                        <id>ResourceManagement</id>
84
                        <phase>generate-resources</phase>
85
                        <goals>
86
                            <goal>module-configuration</goal>
87
                        </goals>
88
                    </execution>
89
                </executions>
90
                <configuration>
91
                    <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
92
                </configuration>
93
            </plugin>
94

    
95
            <!-- Copy maven dependencies -->
96
            <plugin>
97
                <groupId>org.apache.maven.plugins</groupId>
98
                <artifactId>maven-dependency-plugin</artifactId>
99
                <version>2.4</version>
100
                <configuration>
101
                    <outputDirectory>${project.basedir}/target/lib</outputDirectory>
102
                    <overWriteReleases>false</overWriteReleases>
103
                    <overWriteSnapshots>false</overWriteSnapshots>
104
                    <overWriteIfNewer>true</overWriteIfNewer>
105
                    <excludeScope>provided</excludeScope>
106
                </configuration>
107
                <executions>
108
                    <execution>
109
                        <id>copy-dependencies</id>
110
                        <phase>package</phase>
111
                        <goals>
112
                            <goal>copy-dependencies</goal>
113
                        </goals>
114
                    </execution>
115
                </executions>
116
            </plugin>
117

    
118
            <!-- Build zip -->
119
            <plugin>
120
                <groupId>org.apache.maven.plugins</groupId>
121
                <artifactId>maven-assembly-plugin</artifactId>
122
                <version>2.3</version>
123
                <configuration>
124
                    <encoding>${project.build.sourceEncoding}</encoding>
125
                    <descriptors>
126
                        <descriptor>assembly.xml</descriptor>
127
                    </descriptors>
128
                    <finalName>${project.name}_${project.version}</finalName>
129
                    <attach>false</attach>
130
                    <appendAssemblyId>false</appendAssemblyId>
131
                </configuration>
132
                <executions>
133
                    <execution>
134
                        <id>make-assembly</id>
135
                        <phase>package</phase>
136
                        <goals>
137
                            <goal>single</goal>
138
                        </goals>
139
                    </execution>
140
                </executions>
141
            </plugin>
142

    
143
            <!-- Rename zip into jmdac -->
144
            <plugin>
145
                <groupId>org.apache.maven.plugins</groupId>
146
                <artifactId>maven-antrun-plugin</artifactId>
147
                <version>1.7</version>
148
                <executions>
149
                    <execution>
150
                        <id>rename</id>
151
                        <phase>package</phase>
152
                        <configuration>
153
                            <target>
154
                                <move file="${project.basedir}/target/${project.name}_${project.version}.zip" tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
155

    
156
                                </target>
157
                            </configuration>
158
                            <goals>
159
                                <goal>run</goal>
160
                            </goals>
161
                        </execution>
162
                    </executions>
163
                </plugin>
164
            </plugins>
165

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