Last active
December 16, 2015 06:58
-
-
Save mcgivrer/5394911 to your computer and use it in GitHub Desktop.
Maven pom.xml file with multi-plateforme dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<groupId>fr.mcgivrer.samples</groupId> | |
<artifactId>swt-project</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>swt-project</name> | |
<description>Dicovering SWT API/description> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.0</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
<encoding>utf-8</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>2.6</version> | |
<configuration> | |
<encoding>utf-8</encoding> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>linux64</id> | |
<activation> | |
<os> | |
<family>unix</family> | |
<arch>x86_64</arch> | |
</os> | |
</activation> | |
<dependencies> | |
<dependency> | |
<groupId>org.eclipse.swt.linux</groupId> | |
<artifactId>x86_64</artifactId> | |
<version>3.7.2</version> | |
<scope>system</scope> | |
<systemPath>${project.projectDirectory}/lib/linux/swt-3.7.2-linux-x86_64.jar</systemPath> | |
</dependency> | |
</dependencies> | |
</profile> | |
<profile> | |
<id>linux</id> | |
<activation> | |
<os> | |
<family>unix</family> | |
<arch>x86</arch> | |
</os> | |
</activation> | |
<dependencies> | |
<dependency> | |
<groupId>org.eclipse.swt.linux</groupId> | |
<artifactId>x86_64</artifactId> | |
<version>3.7.2</version> | |
<scope>system</scope> | |
<systemPath>${project.projectDirectory}/lib/linux/swt-3.7.2-linux-x86.jar</systemPath> | |
</dependency> | |
</dependencies> | |
</profile> | |
<profile> | |
<id>win32</id> | |
<activation> | |
<os> | |
<family>windows</family> | |
<arch>x86</arch> | |
<name>Windows XP</name> | |
</os> | |
</activation> | |
<dependencies> | |
<dependency> | |
<groupId>org.eclipse.swt.win32.win32</groupId> | |
<artifactId>x86</artifactId> | |
<version>3.7.2</version> | |
<scope>system</scope> | |
<systemPath>${project.projectDirectory}/lib/win/swt-3.7.2-win32-win32-x86.jar</systemPath> | |
</dependency> | |
</dependencies> | |
</profile> | |
<profile> | |
<id>win64</id> | |
<activation> | |
<os> | |
<family>windows</family> | |
<name>Windows 7</name> | |
<arch>x86</arch> | |
</os> | |
</activation> | |
<dependencies> | |
<dependency> | |
<groupId>org.eclipse.swt.win32.win32</groupId> | |
<artifactId>x86</artifactId> | |
<version>3.7.2</version> | |
<scope>system</scope> | |
<systemPath>${project.projectDirectory}/lib/win/swt-3.7.2-win32-win32-x86_64.jar</systemPath> | |
</dependency> | |
</dependencies> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment