Statistics
| Revision:

root / tags / tags / 3.8.03 / modelio3.8.x / pom.xml @ 552

History | View | Annotate | Download (8.93 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.03</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
        <!-- documentation plugin -->
40
        <dependency>
41
          <groupId>org.modelio.module</groupId>
42
          <artifactId>sysmlarchitect-doc</artifactId>
43
          <version>3.8.03</version>
44
          <optional>true</optional>
45
        </dependency>
46
    </dependencies>
47

    
48
    <!-- // Build // -->
49
    <build>
50
        <sourceDirectory>src/main/java</sourceDirectory>
51
        <plugins>
52
            <!-- Use JVM 1.8 -->
53
            <plugin>
54
                <groupId>org.apache.maven.plugins</groupId>
55
                <artifactId>maven-compiler-plugin</artifactId>
56
                <version>2.3.2</version>
57
                <configuration>
58
                    <source>1.8</source>
59
                    <target>1.8</target>
60
                    <encoding>${project.build.sourceEncoding}</encoding>
61
                </configuration>
62
            </plugin>
63

    
64
            <plugin>
65
                <groupId>org.modelio</groupId>
66
                <artifactId>modelio-maven-plugin</artifactId>
67
                <version>3.8.0.02</version>
68
                <executions>
69
                    <execution>
70
                        <id>ModuleValidation</id>
71
                        <phase>validate</phase>
72
                        <goals>
73
                            <goal>module-validation</goal>
74
                        </goals>
75
                    </execution>
76
                    <execution>
77
                        <id>ResourceManagement</id>
78
                        <phase>generate-resources</phase>
79
                        <goals>
80
                            <goal>module-configuration</goal>
81
                        </goals>
82
                    </execution>
83
                </executions>
84
                <configuration>
85
                    <moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
86
                    <sourceBasedir>src/main/java</sourceBasedir>
87
                </configuration>
88
            </plugin>
89

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

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

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

    
151
                                </target>
152
                            </configuration>
153
                            <goals>
154
                                <goal>run</goal>
155
                            </goals>
156
                        </execution>
157
                    </executions>
158
                </plugin>
159
            </plugins>
160

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