pom.xml 2.88 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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>org.genesys2</groupId>
		<artifactId>anno</artifactId>
		<version>0.0.1-SNAPSHOT</version>
	</parent>
	<artifactId>anno-gui-macosx</artifactId>
	<name>Anno for MacOSX</name>
	<repositories>
		<repository>
			<id>thingml</id>
			<name>3rd Party Eclipse</name>
			<url>http://maven.thingml.org/thirdparty/</url>
		</repository>
Matija Obreza's avatar
Bulk    
Matija Obreza committed
17
18
19
20
		<repository>
			<id>swt-repo</id>
			<url>https://swt-repo.googlecode.com/svn/repo/</url>
		</repository>
Matija Obreza's avatar
Matija Obreza committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>foobar</id>
			<name>Some other repo for osxappbundle</name>
			<url>http://nexus.cs.toronto.edu/nexus/content/repositories/externals/</url>
		</pluginRepository>
	</pluginRepositories>
	<dependencies>
		<dependency>
			<groupId>org.genesys2</groupId>
			<artifactId>anno-gui</artifactId>
			<version>0.0.1-SNAPSHOT</version>
		</dependency>
		<dependency>
Matija Obreza's avatar
Bulk    
Matija Obreza committed
36
			<groupId>org.eclipse.swt</groupId>
Matija Obreza's avatar
Matija Obreza committed
37
			<artifactId>org.eclipse.swt.cocoa.macosx.x86_64</artifactId>
Matija Obreza's avatar
SWT4.4    
Matija Obreza committed
38
			<version>4.4</version>
Matija Obreza's avatar
Matija Obreza committed
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>osxappbundle-maven-plugin</artifactId>
				<version>1.0-alpha-5-sdumitriu</version>
				<configuration>
					<mainClass>org.genesys2.anno.gui.AppWindow</mainClass>
					<bundleName>Genesys Magic</bundleName>
					<jvmVersion>1.6+</jvmVersion>
60
					<includeApplicationsSymlink>false</includeApplicationsSymlink>
Matija Obreza's avatar
Matija Obreza committed
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
					<!-- <javaApplicationStub>bin/JavaAppLauncher</javaApplicationStub> -->
					<dictionaryFile>${basedir}/bin/Info.plist.template</dictionaryFile>
					<vmOptions>-Dapple.laf.useScreenMenuBar=true</vmOptions>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>bundle</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- Run it -->

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<version>1.2.1</version>
				<configuration>
					<executable>java</executable>
					<arguments>
						<argument>-XstartOnFirstThread</argument>
						<arguments>-Dapple.laf.useScreenMenuBar=true</arguments>
						<argument>-classpath</argument>
						<!-- automatically creates the classpath using all project dependencies, 
							also adding the project build directory -->
						<classpath />
						<argument>org.genesys2.anno.gui.AppWindow</argument>
					</arguments>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>