-
Notifications
You must be signed in to change notification settings - Fork 1
/
pom.xml
185 lines (177 loc) · 6.15 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<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">
<modelVersion>4.0.0</modelVersion>
<name>PowerFlowAnalyzer</name>
<artifactId>PowerFlowAnalyzer</artifactId>
<groupId>PowerFlowAnalyzer</groupId>
<version>2.3.1-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.main.class>net.ee.pfanalyzer.PowerFlowAnalyzer</project.main.class>
<java.version>1.6</java.version>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<!-- only required when using downloadable dependency of miglayout -->
<!-- <repositories> -->
<!-- <repository> -->
<!-- <id>mvn-repo1</id> -->
<!-- <name>mvnrepository.com</name> -->
<!-- <url>http://www.miglayout.com/mavensite/</url> -->
<!-- </repository> -->
<!-- </repositories> -->
<dependencies>
<dependency>
<groupId>com.miglayout</groupId>
<artifactId>miglayout-swing</artifactId>
<version>3.7</version>
<scope>system</scope>
<systemPath>${project.basedir}/java/miglayout-3.7-swing.jar</systemPath>
</dependency>
<!-- SWING-only version is not available in this repository ?! -->
<!-- <dependency> -->
<!-- <groupId>com.miglayout</groupId> -->
<!-- <artifactId>miglayout</artifactId> -->
<!-- <version>3.7</version> -->
<!-- </dependency> -->
<dependency>
<groupId>com.fatcow</groupId>
<artifactId>fatcow-hosting-icons</artifactId>
<version>2000</version>
<scope>system</scope>
<systemPath>${project.basedir}/java/fatcow-hosting-icons-2000.zip</systemPath>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<!-- Activate plugin configurations -->
<!-- disabled since dependencies are copied from project folder -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-dependency-plugin</artifactId> -->
<!-- </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/distribution/java</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<!-- <classpathPrefix>java/</classpathPrefix> -->
<useUniqueVersions>false</useUniqueVersions>
<mainClass>${project.main.class}</mainClass>
</manifest>
<manifestEntries>
<!-- this is required since system scope dependencies are not added
here -->
<Class-Path>miglayout-3.7-swing.jar fatcow-hosting-icons-2000.zip</Class-Path>
<Group-Id>${project.groupId}</Group-Id>
<Artifact-Id>${project.artifactId}</Artifact-Id>
<App-Name>${project.name}</App-Name>
<App-Version>${project.version}</App-Version>
</manifestEntries>
</archive>
<finalName>distribution/java/${project.name}</finalName>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/distribution</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
<include>matlab/**</include>
<include>scripts/**</include>
<include>matpower/**</include>
<include>examples/**</include>
<include>java/miglayout-3.7-swing.jar</include>
<include>java/fatcow-hosting-icons-2000.zip</include>
</includes>
</resource>
<resource>
<!-- Copy files and and substitute variables in their content ("filter") -->
<directory>distribution/files</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<descriptors>
<descriptor>distribution/conf/assembly.xml</descriptor>
</descriptors>
<!-- <finalName>${pom.artifactId}-${pom.version}</finalName> -->
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>