Statistics
| Revision:

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

History | View | Annotate | Download (8.56 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>sysmlarchitect</artifactId>
8
  <version>3.8.02</version>
9
  <name>SysMLArchitect</name>
10
  <repositories>
11
      <repository>
12
          <id>modelio</id>
13
          <url>http://repository.modelio.org</url>
14
      </repository>
15
  </repositories>
16

    
17
  <pluginRepositories>
18
      <pluginRepository>
19
          <id>modelio-plugins</id>
20
          <url>http://repository.modelio.org</url>
21
      </pluginRepository>
22
  </pluginRepositories>
23

    
24
    <!-- properties -->
25
    <properties>
26
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27
    </properties>
28

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

    
39
    </dependencies>
40

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

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

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

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

    
129
            <!-- Rename zip into jmdac -->
130
            <plugin>
131
                <groupId>org.apache.maven.plugins</groupId>
132
                <artifactId>maven-antrun-plugin</artifactId>
133
                <version>1.7</version>
134
                <executions>
135
                    <execution>
136
                        <id>rename</id>
137
                        <phase>package</phase>
138
                        <configuration>
139
                            <target>
140
                                <move file="${project.basedir}/target/${project.name}_${project.version}.zip" tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
141

    
142
                                </target>
143
                            </configuration>
144
                            <goals>
145
                                <goal>run</goal>
146
                            </goals>
147
                        </execution>
148
                    </executions>
149
                </plugin>
150
            </plugins>
151

    
152
            <pluginManagement>
153
                <plugins>
154
                    <!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
155
                    <plugin>
156
                        <groupId>org.eclipse.m2e</groupId>
157
                       <artifactId>lifecycle-mapping</artifactId>
158
                        <version>1.0.0</version>
159
                        <configuration>
160
                            <lifecycleMappingMetadata>
161
                                <pluginExecutions>
162
                                    <pluginExecution>
163
                                        <pluginExecutionFilter>
164
                                            <groupId>org.apache.maven.plugins</groupId>
165
                                            <artifactId>maven-dependency-plugin</artifactId>
166
                                            <versionRange>[1.0.0,)</versionRange>
167
                                            <goals>
168
                                                <goal>copy-dependencies</goal>
169
                                            </goals>
170
                                        </pluginExecutionFilter>
171
                                        <action>
172
                                            <ignore />
173
                                        </action>
174
                                    </pluginExecution>
175
                                    <pluginExecution>
176
                                        <pluginExecutionFilter>
177
                                            <groupId>org.modelio</groupId>
178
                                            <artifactId>
179
                                                modelio-maven-plugin
180
                                            </artifactId>
181
                                            <versionRange>
182
                                                [3.8.0.02,)
183
                                            </versionRange>
184
                                            <goals>
185
                                                <goal>
186
                                                    module-validation
187
                                                </goal>
188
                                                <goal>
189
                                                    module-configuration
190
                                                </goal>
191
                                            </goals>
192
                                        </pluginExecutionFilter>
193
                                        <action>
194
                                            <ignore></ignore>
195
                                        </action>
196
                                    </pluginExecution>
197
                                </pluginExecutions>
198
                            </lifecycleMappingMetadata>
199
                        </configuration>
200
                    </plugin>
201
                </plugins>
202
            </pluginManagement>
203
        </build>
204
    <description>SysML Architect is a Modelio extension, used to model SysML architectures.</description>
205
    </project>