Skip to content

Commit 6144fe8

Browse files
clean repeating maven SWT config
1 parent 2072ed9 commit 6144fe8

2 files changed

Lines changed: 0 additions & 112 deletions

File tree

jzy3d-native-jogl-swt/pom.xml

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -30,95 +30,6 @@
3030
<version>${project.version}</version>
3131
</dependency>
3232

33-
<!-- The org.eclipse.platform::org.eclipse.swt artifact is only an empty
34-
hull for SWT (the jar does not contain any class-files). The actual class
35-
files are contained in platform-specific artifacts. This is due to the design
36-
of the SWT project with one org.eclipse.swt Eclipse plug-in and multiple
37-
fragments one for each platform containing the native code/adjustments. In
38-
order to get the jar for a certain platform a dependency for the artifact
39-
for that platform must be declared. In order to not declare a compile time
40-
dependency to all specific platforms referenced below the dependencies are
41-
marked as optional and are therefore only present when developing jzy3d.
42-
It is assumed that the platforms chosen below are the main dev-platforms. -->
43-
<dependency>
44-
<groupId>org.eclipse.platform</groupId>
45-
<artifactId>org.eclipse.swt</artifactId>
46-
</dependency>
47-
48-
<dependency>
49-
<groupId>org.eclipse.platform</groupId>
50-
<artifactId>org.eclipse.jface</artifactId>
51-
</dependency>
5233

5334
</dependencies>
54-
55-
<profiles>
56-
<!-- https://maven.apache.org/guides/introduction/introduction-to-profiles.html
57-
https://stackoverflow.com/questions/19023109/values-for-os-family-in-maven-profile-activation-condition -->
58-
59-
<profile>
60-
<id>MacOS x86_64</id>
61-
<activation>
62-
<os>
63-
<family>mac</family>
64-
<arch>x86_64</arch>
65-
</os>
66-
</activation>
67-
<dependencies>
68-
<dependency>
69-
<groupId>org.eclipse.platform</groupId>
70-
<artifactId>org.eclipse.swt.cocoa.macosx.x86_64</artifactId>
71-
</dependency>
72-
</dependencies>
73-
</profile>
74-
75-
<profile>
76-
<id>MacOS Aarch64</id>
77-
<activation>
78-
<os>
79-
<family>mac</family>
80-
<arch>aarch64</arch>
81-
</os>
82-
</activation>
83-
<dependencies>
84-
<dependency>
85-
<groupId>org.eclipse.platform</groupId>
86-
<artifactId>org.eclipse.swt.cocoa.macosx.aarch64</artifactId>
87-
</dependency>
88-
</dependencies>
89-
</profile>
90-
91-
<profile>
92-
<id>Windows</id>
93-
<activation>
94-
<os>
95-
<family>Windows</family>
96-
<!-- <name>Windows XP</name> <arch>x86</arch> <version>5.1.2600</version> -->
97-
</os>
98-
</activation>
99-
<dependencies>
100-
<dependency>
101-
<groupId>org.eclipse.platform</groupId>
102-
<artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>
103-
</dependency>
104-
</dependencies>
105-
</profile>
106-
107-
<profile>
108-
<id>Unix</id>
109-
<activation>
110-
<os>
111-
<family>unix</family>
112-
</os>
113-
</activation>
114-
<dependencies>
115-
<dependency>
116-
<groupId>org.eclipse.platform</groupId>
117-
<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
118-
</dependency>
119-
</dependencies>
120-
</profile>
121-
</profiles>
122-
123-
12435
</project>

jzy3d-native-panama-gl-swt/pom.xml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -53,27 +53,4 @@
5353
</plugin>
5454
</plugins>
5555
</build>
56-
57-
<profiles>
58-
<!-- macOS requires -XstartOnFirstThread for SWT Display creation. -->
59-
<profile>
60-
<id>mac</id>
61-
<activation>
62-
<os>
63-
<family>mac</family>
64-
</os>
65-
</activation>
66-
<build>
67-
<plugins>
68-
<plugin>
69-
<groupId>org.apache.maven.plugins</groupId>
70-
<artifactId>maven-surefire-plugin</artifactId>
71-
<configuration>
72-
<argLine>-XstartOnFirstThread --enable-native-access=ALL-UNNAMED</argLine>
73-
</configuration>
74-
</plugin>
75-
</plugins>
76-
</build>
77-
</profile>
78-
</profiles>
7956
</project>

0 commit comments

Comments
 (0)