Statistics
| Revision:

root / branches / modelio3.7.x / pom.xml @ 245

History | View | Annotate | Download (5.67 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
        <groupId>org.modelio.module</groupId>
7
        <artifactId>togafarchitect</artifactId>
8
        <version>3.7.01</version>
9
        <name>TogafArchitect</name>
10

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

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

    
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.7.0,3.7.1)</version>
35
                        <type>pom</type>
36
                        <scope>provided</scope>
37
                </dependency>
38

    
39
                <dependency>
40
                        <groupId>org.apache.poi</groupId>
41
                        <artifactId>poi</artifactId>
42
                        <version>3.9</version>
43
                </dependency>
44

    
45
                <dependency>
46
                        <groupId>org.modelio</groupId>
47
                        <artifactId>org.modelio.documentation.togaf</artifactId>
48
                        <version>${project.version}</version>
49
                </dependency>
50

    
51
        </dependencies>
52

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

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

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

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

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

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