Statistics
| Revision:

root / branches / modelio3 / pom.xml @ 314

History | View | Annotate | Download (5.09 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>com.modeliosoft.modelio</groupId>
8
        <artifactId>SysMLArchitect</artifactId>
9
        <version>3.0.06</version>
10

    
11
        <name>SysMLArchitect</name>
12

    
13
        <!-- repositories -->
14
        <repositories>
15
                <repository>
16
                        <id>modelio</id>
17
                        <url>http://repository.modelio.org</url>
18
                </repository>
19
        </repositories>
20

    
21
        <pluginRepositories>
22
                <pluginRepository>
23
                        <id>modelio</id>
24
                        <url>http://repository.modelio.org</url>
25
                </pluginRepository>
26
        </pluginRepositories>
27

    
28
        <!-- properties -->
29
        <properties>
30
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31
        </properties>
32

    
33
        <dependencies>
34
                <!-- api modelio -->
35
                <dependency>
36
                        <groupId>org.modelio</groupId>
37
                        <artifactId>MDAKit</artifactId>
38
                        <version>3.0.0.05</version>
39
                        <type>pom</type>
40
                        <scope>provided</scope>
41
                </dependency>
42

    
43
        </dependencies>
44

    
45

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

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

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

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

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

    
157
                <pluginManagement>
158
                        <plugins>
159
                                <!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
160
                                <plugin>
161
                                        <groupId>org.eclipse.m2e</groupId>
162
                                        <artifactId>lifecycle-mapping</artifactId>
163
                                        <version>1.0.0</version>
164
                                        <configuration>
165
                                                <lifecycleMappingMetadata>
166
                                                        <pluginExecutions>
167
                                                                <pluginExecution>
168
                                                                        <pluginExecutionFilter>
169
                                                                                <groupId>org.apache.maven.plugins</groupId>
170
                                                                                <artifactId>maven-dependency-plugin</artifactId>
171
                                                                                <versionRange>[1.0.0,)</versionRange>
172
                                                                                <goals>
173
                                                                                        <goal>copy-dependencies</goal>
174
                                                                                </goals>
175
                                                                        </pluginExecutionFilter>
176
                                                                        <action>
177
                                                                                <ignore />
178
                                                                        </action>
179
                                                                </pluginExecution>
180
                                                        </pluginExecutions>
181
                                                </lifecycleMappingMetadata>
182
                                        </configuration>
183
                                </plugin>
184
                        </plugins>
185
                </pluginManagement>
186
        </build>
187
</project>
188