-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
169 lines (169 loc) · 5.67 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
<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>
<parent>
<groupId>com.bitplan.pom</groupId>
<artifactId>com.bitplan.pom</artifactId>
<version>0.0.33</version>
<relativePath>../com.bitplan.pom/pom.xml</relativePath>
</parent>
<groupId>com.bitplan</groupId>
<artifactId>com.bitplan.grapheditor</artifactId>
<packaging>jar</packaging>
<version>0.0.1</version>
<name>grapheditor</name>
<description>generic graph editor</description>
<url>https://github.com/BITPlan/com.bitplan.grapheditor</url>
<properties>
<!-- for parent pom to work -->
<github.project>com.bitplan.grapheditor</github.project>
<!-- for README.md generation -->
<documentation.wiki>http://wiki.bitplan.com/index.php/Com.bitplan.grapheditor</documentation.wiki>
<!-- versions of other libraries to be used -->
</properties>
<dependencies>
<!-- JUnit testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<scope>test</scope>
</dependency>
<!-- args4j command line utility -->
<dependency>
<groupId>args4j</groupId>
<artifactId>args4j</artifactId>
</dependency>
<!-- https://github.com/vlsi/jgraphx-publish -->
<dependency>
<groupId>com.mxgraph</groupId>
<artifactId>jgraphx</artifactId>
<version>4.1.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- jar creation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.bitplan.grapheditor.GraphEditor</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<!-- executable jar with dependencies see http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven
run with mvn clean compile assembly:single -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<configuration>
<archive>
<manifest>
<mainClass>com.bitplan.grapheditor.GraphEditor</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Launch4 J plugin to create cross plattform java app -->
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>${launch4j-maven-plugin.version}</version>
<executions>
<execution>
<id>l4j-gui</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<dontWrapJar>false</dontWrapJar>
<headerType>console</headerType>
<jar>target/com.bitplan.grapheditor-${project.version}-jar-with-dependencies.jar</jar>
<outfile>${project.build.directory}/grapheditor.exe</outfile>
<errTitle />
<cmdLine />
<chdir />
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl>http://wiki.bitplan.com/index.php/Com.bitplan.grapheditor</supportUrl>
<customProcName>false</customProcName>
<stayAlive>false</stayAlive>
<manifest />
<icon />
<jre>
<path />
<minVersion>1.8.0</minVersion>
<maxVersion />
<jdkPreference>preferJre</jdkPreference>
<initialHeapSize>256</initialHeapSize>
<maxHeapSize>3000</maxHeapSize>
</jre>
<!-- <splash> <file>${project.basedir}/src/main/build/Sunflower.bmp</file>
<waitForWindow>true</waitForWindow> <timeout>60</timeout> <timeoutErr>true</timeoutErr>
</splash> -->
<versionInfo>
<fileVersion>0.${project.version}</fileVersion>
<txtFileVersion>${project.version}</txtFileVersion>
<fileDescription>Generic Graph Editor</fileDescription>
<copyright>BITPlan GmbH</copyright>
<productVersion>0.0.1.0</productVersion>
<txtProductVersion>${project.version}</txtProductVersion>
<productName>Generic Graph Editor</productName>
<companyName>BITPlan GmbH</companyName>
<internalName>grapheditor</internalName>
<originalFilename>grapheditor.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
<!-- http://kosalads.blogspot.de/2013/04/maven-copy-artifact-in-to-separate.html
https://stackoverflow.com/a/16862404/1497139 -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<configuration>
<tasks>
<copy
file="target/com.bitplan.grapheditor-${project.version}-jar-with-dependencies.jar"
tofile="release/grapheditor.jar" />
<copy file="target/grapheditor.exe"
tofile="release/grapheditor.exe" />
</tasks>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>