Statistics
| Revision:

root / branches / modelio3.6.x / pom.xml @ 178

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

    
17
  <pluginRepositories>
18
  </pluginRepositories>
19

    
20
    <!-- properties -->
21
    <properties>
22
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
    </properties>
24

    
25
    <dependencies>
26
        <!-- api modelio -->
27
        <dependency>
28
            <groupId>org.modelio</groupId>
29
            <artifactId>MDAKit</artifactId>
30
            <version>[3.7.0,3.7.1)</version>
31
            <type>pom</type>
32
            <scope>provided</scope>
33
        </dependency>
34

    
35
    </dependencies>
36

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

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

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

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

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

    
138
                                </target>
139
                            </configuration>
140
                            <goals>
141
                                <goal>run</goal>
142
                            </goals>
143
                        </execution>
144
                    </executions>
145
                </plugin>
146
            </plugins>
147

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