Maven pom for GStreamer-java

61 views
Skip to first unread message

stig.lau

unread,
Dec 23, 2008, 2:35:50 PM12/23/08
to gstreamer-java
I've tossed up a Maven pom for GStreamer-java I thought I'd share in
the spirit of Xmas.
It should be able to compile and package source, bin and javadocs
correctly for distribution with no hassle. Distributing Maven fashion
is possible to do by placing the files in SVN.
There are some problems regarding finding a correct version of SWT in
a public repo, and the tests didn't run on my mac rig.
Please ask if you have questions.

<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.gstreamer</groupId>
<artifactId>gstreamer-java</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

<name>GStreamer</name>
<url>http://code.google.com/p/gstreamer-java</url>

<dependencies>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>3.0.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>swt</groupId>
<artifactId>${swt.os-specific-dep}</artifactId>
<version>3.0m7</version>
</dependency>
</dependencies>

<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>

<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources>

<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>

<!-- Repository for JNA dependency -->
<repositories>
<repository>
<id>java.net.maven</id>
<url>http://download.java.net/maven/2</url>
</repository>
</repositories>

<!-- For creating the name of the swt dependency -->
<profiles>
<profile>
<id>mac</id>
<activation>
<os>
<family>macosx</family>
</os>
</activation>
<properties>
<swt.os-specific-dep>swt-macosx</swt.os-specific-dep>
</properties>
</profile>
<profile>
<id>unix</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<properties>
<swt.os-specific-dep>swt-linux-gtk</swt.os-specific-
dep>
</properties>
</profile>
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<swt.os-specific-dep>swt-win32</swt.os-specific-dep>
</properties>
</profile>
</profiles>
</project>

stig.lau

unread,
Dec 23, 2008, 4:39:45 PM12/23/08
to gstreamer-java
Thougth I'd advertize for my blogpost on GStreamer-Java while I'm at
it.
http://stigl.wordpress.com/gstreamer-multimedia-fun-on-a-plugin-architecture
Reply all
Reply to author
Forward
0 new messages