Newer
Older
piccolo2d.java / swt / pom.xml
<?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>
  <parent>
    <artifactId>piccolo2d-parent</artifactId>
    <groupId>org.piccolo2d</groupId>
    <version>1.3-SNAPSHOT</version>
    <relativePath>../parent/pom.xml</relativePath>
  </parent>
  <artifactId>piccolo2d-swt</artifactId>
  <packaging>bundle</packaging>
  <name>Piccolo2D SWT</name>
  <url>http://code.google.com/p/piccolo2d/</url>
  <description>
    A revolutionary way to create robust, full-featured graphical applications in Java and C#, with striking visual effects such as zooming, animation and multiple representations.
  </description>
<!--
  <repositories>
    <repository>
      <id>Maven default</id>
      <name>Apache repository</name>
      <url>http://repo1.maven.org/maven2</url>
    </repository>
    <repository>
      <id>Apache Directory SVN Repo Cheat</id>
      <name>Apache Directory SVN Repo Cheat</name>
      <url>https://svn.apache.org/repos/asf/directory/studio/trunk/repository</url>
    </repository>
  </repositories>
-->
  <dependencies>
    <dependency>
      <groupId>org.piccolo2d</groupId>
      <artifactId>piccolo2d-extras</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>${swt.groupId}</groupId>
      <artifactId>${swt.artifactId}</artifactId>
<!--      <version>3.5.0.v3550b</version> -->
      <version>3.3.0-v3346</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <scm>
    <connection>
      scm:svn:http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/swt
    </connection>
    <developerConnection>
      scm:svn:https://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/swt
    </developerConnection>
    <url>http://code.google.com/p/piccolo2d/source/browse/piccolo2d.java/trunk/swt</url>
  </scm>
  <reporting>
    <plugins>
      <!-- don't use UmlGraph as the current settings (see ../parent/pom.xml) cause pain with swt  -->      
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <configuration>
          <configLocation>${basedir}/src/build/conf/checkstyle.xml</configLocation>
          <enableRulesSummary>false</enableRulesSummary>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>        
        <configuration>
          <source>1.4</source>
          <verbose>false</verbose>
          <show>package</show>
          <links>
            <link>
              http://java.sun.com/j2se/1.4.2/docs/api/
            </link>
          </links>                    
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-changelog-plugin</artifactId>
        <!--
          configuration> <connectionType>connection</connectionType>
          </configuration
        -->
      </plugin>
      <plugin>
        <artifactId>maven-jxr-plugin</artifactId>        
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>taglist-maven-plugin</artifactId>
        <configuration>
          <tags>
            <tag>TODO</tag>
            <tag>FIXME</tag>
            <tag>@todo</tag>
            <tag>@deprecated</tag>
          </tags>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>
          maven-project-info-reports-plugin
        </artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-pmd-plugin</artifactId>
        <configuration>
          <sourceEncoding>ascii</sourceEncoding>
          <targetJdk>1.4</targetJdk>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jdepend-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <!-- http://wiki.hudson-ci.org/display/HUDSON/FindBugs+Plugin -->
          <findbugsXmlOutput>true</findbugsXmlOutput>
          <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
          <xmlOutput>true</xmlOutput>
          <xmlOutputDirectory>target/site</xmlOutputDirectory>
          <includeTests>false</includeTests>         
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <configuration>
          <formats>
            <format>xml</format>
            <format>html</format>
          </formats>
          <instrumentation>
            <ignores>
              <ignore>edu.umd.cs.piccolo.examples.*</ignore>
              <ignore>edu.umd.cs.piccolo.examples.pswing.*</ignore>
              <ignore>edu.umd.cs.piccolo.examples.swt.*</ignore>
              <ignore>edu.umd.cs.piccolo.tutorial.*</ignore>
            </ignores>
            <excludes>
              <exclude>edu/umd/cs/piccolo/examples/**</exclude>
            </excludes>
          </instrumentation>
        </configuration>
      </plugin>
    </plugins>  
  </reporting>
  <profiles>
    <profile>
      <id>gtk_linux_x86_64</id>
      <activation>
        <os>
          <name>linux</name>
          <arch>x86_64</arch>
        </os>
      </activation>
      <properties>
        <swt.groupId>org.eclipse.swt.gtk.linux</swt.groupId>
        <swt.artifactId>x86_64</swt.artifactId>
<!--        <swt.version>3.5.0.v3550b</swt.version> -->
        <swt.version>3.3.0-v3346</swt.version>
      </properties>
    </profile>
    <profile>
      <id>gtk_linux_amd64</id>
      <activation>
        <os>
          <name>linux</name>
          <arch>amd64</arch>
        </os>
      </activation>
      <properties>
        <swt.groupId>org.eclipse.swt.gtk.linux</swt.groupId>
        <swt.artifactId>x86_64</swt.artifactId>
<!--        <swt.version>3.5.0.v3550b</swt.version> -->
        <swt.version>3.3.0-v3346</swt.version>
      </properties>
    </profile>
    <profile>
      <id>gtk_linux_x86</id>
      <activation>
        <os>
          <name>linux</name>
          <arch>x86</arch>
        </os>
      </activation>
      <properties>
        <swt.groupId>org.eclipse.swt.gtk.linux</swt.groupId>
        <swt.artifactId>x86</swt.artifactId>
<!--        <swt.version>3.5.0.v3550b</swt.version> -->
        <swt.version>3.3.0-v3346</swt.version>
      </properties>
    </profile>
    <profile>
      <id>gtk_linux_i386</id>
      <activation>
        <os>
          <name>linux</name>
          <arch>i386</arch>
        </os>
      </activation>
      <properties>
        <swt.groupId>org.eclipse.swt.gtk.linux</swt.groupId>
        <swt.artifactId>x86</swt.artifactId>
<!--        <swt.version>3.5.0.v3550b</swt.version> -->
        <swt.version>3.3.0-v3346</swt.version>
      </properties>
    </profile>
    <profile>
      <id>windows</id>
      <activation>
        <os>
          <family>windows</family>
        </os>
      </activation>
      <properties>
        <swt.groupId>org.eclipse.swt.win32.win32</swt.groupId>
        <swt.artifactId>x86</swt.artifactId>
<!--        <swt.version>3.5.0.v3550b</swt.version> -->
        <swt.version>3.3.0-v3346</swt.version>
      </properties>
    </profile>
<!--

    todo:

    the following mac profile does not work on PPC
    need to test mac profile on intel

    consider adding:  gtk linux ppc
                      gtk linux i686 (assume that uses x86 swt version)
                      gtk solaris sparc
                      motif aix ppc
-->
    <profile>
      <id>mac</id>
      <activation>
        <os>
          <name>mac os x</name>
        </os>
      </activation>
      <properties>
        <swt.groupId>org.eclipse.swt.carbon</swt.groupId>
        <swt.artifactId>macosx</swt.artifactId>
<!--        <swt.version>3.5.0.v3550b</swt.version>  -->
        <swt.version>3.3.0-v3346</swt.version>
      </properties>
    </profile>
  </profiles>
</project>