Cytoscape App開発: 外部ライブラリの利用

以下、org.apache.commonsを利用するpom.xmlを掲載する:

<?xml version="1.0" encoding="UTF-8"?>

<properties>
<bundle.symbolicName>rsCy3App.TestApacheHello1_3</bundle.symbolicName>
<bundle.namespace>rsCy3App.TestApacheHello1_3</bundle.namespace>
</properties>

<modelVersion>4.0.0</modelVersion>
<groupId>rsCy3App</groupId>
<artifactId>TestApacheHello1_3</artifactId>
<version>0.0.1-SNAPSHOT</version>

<name>${bundle.symbolicName}</name>
<packaging>bundle</packaging>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<!-- Cytoscape requires Java 1.6 -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>1.6</source>
<target>1.6</target>
<optimize>true</optimize>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<compilerArguments>
<Xmaxwarns>10000</Xmaxwarns>
<Xmaxerrs>10000</Xmaxerrs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.1</version>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
<!-- Generates the OSGi metadata based on the osgi.bnd file. -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Embed-Dependency>!*log4j;scope=compile|runtime;type=!pom</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Import-Package>*;resolution:=optional</Import-Package>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Export-Package>${bundle.namespace}</Export-Package>
<Private-Package>${bundle.namespace}.internal.*</Private-Package>
<Bundle-Activator>${bundle.namespace}.internal.CyActivator</Bundle-Activator>
</instructions>
</configuration>
</plugin>
</plugins>
</build>

<!-- Links to the Cytoscape Maven repositories. -->
<repositories>
<repository>
<id>cytoscape_snapshots</id>
<snapshots>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
<name>Cytoscape Snapshots</name>
</repository>
<repository>
<id>cytoscape_releases</id>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
</releases>
<name>Cytoscape Releases</name>
</repository>
</repositories>

<!-- Dependencies needed to compile this project. -->
<dependencies>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
<scope>provided</scope>
<groupId>org.cytoscape</groupId>
<artifactId>service-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
<groupId>org.cytoscape</groupId>
<artifactId>swing-application-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
<groupId>org.cytoscape</groupId>
<artifactId>session-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>

<!-- Logging -->
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-api</artifactId>
<version>1.5.2</version>
<scope>provided</scope>

<!-- From public resources -->
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-lang3</artifactId>
  <version>3.3.2</version>

</dependencies>

</project>