Fixed maven build

This commit is contained in:
Eyck Jentzsch 2015-01-23 19:33:08 +01:00
parent 8aab5490fe
commit e2561ca672
9 changed files with 104 additions and 101 deletions

View File

@ -6,5 +6,8 @@ Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: MINRES Technologies GnbH Bundle-Vendor: MINRES Technologies GnbH
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Require-Bundle: org.junit, Require-Bundle: org.junit,
com.minres.scviewer.database com.minres.scviewer.database,
com.minres.scviewer.database.sqlite;bundle-version="1.0.0",
com.minres.scviewer.database.text;bundle-version="1.0.0",
com.minres.scviewer.database.vcd;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy Bundle-ActivationPolicy: lazy

View File

@ -1,24 +1,29 @@
<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"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<modelVersion>4.0.0</modelVersion> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>com.minres.scviewer.database.test</artifactId> <modelVersion>4.0.0</modelVersion>
<build> <artifactId>com.minres.scviewer.database.test</artifactId>
<sourceDirectory>src</sourceDirectory> <parent>
<plugins> <groupId>com.minres.scviewer</groupId>
<plugin> <artifactId>com.minres.scviewer.parent</artifactId>
<artifactId>maven-compiler-plugin</artifactId> <version>1.0.0-SNAPSHOT</version>
<version>3.1</version> <relativePath>../com.minres.scviewer.parent</relativePath>
<configuration> </parent>
<source>1.7</source> <packaging>eclipse-test-plugin</packaging>
<target>1.7</target> <build>
</configuration> <plugins>
</plugin> <plugin>
</plugins> <groupId>org.eclipse.tycho</groupId>
</build> <artifactId>tycho-surefire-plugin</artifactId>
<parent> <configuration>
<groupId>com.minres.scviewer</groupId> <!-- <bundleStartLevel /> -->
<artifactId>com.minres.scviewer.parent</artifactId> <dependencies>
<version>1.0.0-SNAPSHOT</version> <dependency>
<relativePath>../com.minres.scviewer.parent</relativePath> <type>p2-installable-unit</type>
</parent> <artifactId>org.eclipse.equinox.ds</artifactId>
<packaging>eclipse-test-plugin</packaging> </dependency>
</dependencies>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -34,7 +34,7 @@ public class DatabaseServicesTest {
return; return;
Thread.sleep(1000); Thread.sleep(1000);
} }
fail("OSGi dependencies unfulfilled"); assertEquals("OSGi dependencies unfulfilled", 3, WaveformDb.getLoaders().size());
} }
@After @After

View File

@ -11,4 +11,5 @@
bin.includes = META-INF/,\ bin.includes = META-INF/,\
.,\ .,\
OSGI-INF/ OSGI-INF/
bin.excludes = **/*.groovy
source.. = src/ source.. = src/

View File

@ -1,24 +1,41 @@
<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"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<modelVersion>4.0.0</modelVersion> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>com.minres.scviewer.database.text</artifactId> <modelVersion>4.0.0</modelVersion>
<build> <artifactId>com.minres.scviewer.database.text</artifactId>
<sourceDirectory>src</sourceDirectory> <parent>
<plugins> <groupId>com.minres.scviewer</groupId>
<plugin> <artifactId>com.minres.scviewer.parent</artifactId>
<artifactId>maven-compiler-plugin</artifactId> <version>1.0.0-SNAPSHOT</version>
<version>3.1</version> <relativePath>../com.minres.scviewer.parent</relativePath>
<configuration> </parent>
<source>1.7</source> <packaging>eclipse-plugin</packaging>
<target>1.7</target> <build>
</configuration> <plugins>
</plugin> <plugin>
</plugins> <groupId>org.eclipse.tycho</groupId>
</build> <artifactId>tycho-compiler-plugin</artifactId>
<parent> <configuration>
<groupId>com.minres.scviewer</groupId> <compilerId>groovy-eclipse-compiler</compilerId>
<artifactId>com.minres.scviewer.parent</artifactId> <!-- set verbose to be true if you want lots of uninteresting messages -->
<version>1.0.0-SNAPSHOT</version> <!-- <verbose>true</verbose> -->
<relativePath>../com.minres.scviewer.parent</relativePath> <source>1.7</source>
</parent> <target>1.7</target>
<packaging>eclipse-plugin</packaging> </configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>${groovy-eclipse-compiler-version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>${groovy-eclipse-batch-version}</version>
<!-- or choose a different compiler version -->
<!-- <version>2.1.8-01</version> -->
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -1,19 +1,6 @@
<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"> <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> <modelVersion>4.0.0</modelVersion>
<artifactId>com.minres.scviewer.database.vcd</artifactId> <artifactId>com.minres.scviewer.database.vcd</artifactId>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<parent> <parent>
<groupId>com.minres.scviewer</groupId> <groupId>com.minres.scviewer</groupId>
<artifactId>com.minres.scviewer.parent</artifactId> <artifactId>com.minres.scviewer.parent</artifactId>

View File

@ -1,19 +1,6 @@
<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"> <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> <modelVersion>4.0.0</modelVersion>
<artifactId>com.minres.scviewer.database</artifactId> <artifactId>com.minres.scviewer.database</artifactId>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<parent> <parent>
<groupId>com.minres.scviewer</groupId> <groupId>com.minres.scviewer</groupId>
<artifactId>com.minres.scviewer.parent</artifactId> <artifactId>com.minres.scviewer.parent</artifactId>

View File

@ -19,12 +19,23 @@
<properties> <properties>
<tycho.version>0.22.0</tycho.version> <tycho.version>0.22.0</tycho.version>
<tycho-extras.version>0.22.0</tycho-extras.version> <tycho-extras.version>0.22.0</tycho-extras.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<groovy-eclipse-compiler-version>2.9.1-01</groovy-eclipse-compiler-version>
<groovy-eclipse-batch-version>2.3.4-01</groovy-eclipse-batch-version>
<eclipse-repo.url>http://download.eclipse.org/releases/luna</eclipse-repo.url> <eclipse-repo.url>http://download.eclipse.org/releases/luna</eclipse-repo.url>
<groovy-repo.url>http://dist.springsource.org/release/GRECLIPSE/e4.4</groovy-repo.url> <groovy-repo.url>http://dist.springsource.org/release/GRECLIPSE/e4.4</groovy-repo.url>
<tycho-repo.url>https://oss.sonatype.org/content/groups/public/</tycho-repo.url> <tycho-repo.url>https://oss.sonatype.org/content/groups/public/</tycho-repo.url>
</properties> </properties>
<!-- <dependencies> -->
<!-- <dependency> -->
<!-- <groupId>org.codehaus.groovy</groupId> -->
<!-- <artifactId>groovy-all</artifactId> -->
<!-- <version>2.3.7</version> -->
<!-- <type>jar</type> -->
<!-- <classifier>indy</classifier> -->
<!-- </dependency> -->
<!-- </dependencies> -->
<repositories> <repositories>
<repository> <repository>
@ -53,6 +64,7 @@
</pluginRepositories> </pluginRepositories>
<build> <build>
<sourceDirectory>src</sourceDirectory>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.eclipse.tycho</groupId> <groupId>org.eclipse.tycho</groupId>
@ -60,7 +72,6 @@
<version>${tycho.version}</version> <version>${tycho.version}</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.eclipse.tycho</groupId> <groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId> <artifactId>target-platform-configuration</artifactId>
@ -94,7 +105,6 @@
</environments> </environments>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.eclipse.tycho</groupId> <groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId> <artifactId>tycho-source-plugin</artifactId>
@ -107,8 +117,15 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins> </plugins>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
@ -124,7 +141,7 @@
<compilerArguments> <compilerArguments>
<inlineJSR /> <inlineJSR />
<enableJavadoc /> <enableJavadoc />
<encoding>ISO-8859-1</encoding> <encoding>UTF-8</encoding>
</compilerArguments> </compilerArguments>
</configuration> </configuration>
</plugin> </plugin>
@ -139,14 +156,10 @@
<version>${tycho-extras.version}</version> <version>${tycho-extras.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- <configuration> <!-- <configuration> <strictBinIncludes>false</strictBinIncludes> <format>'v'yyyyMMdd-HHmm</format>
<strictBinIncludes>false</strictBinIncludes> <timestampProvider>jgit</timestampProvider> <jgit.ignore> </jgit.ignore>
<format>'v'yyyyMMdd-HHmm</format> </configuration> -->
<timestampProvider>jgit</timestampProvider> </plugin>
<jgit.ignore>
</jgit.ignore>
</configuration>
--> </plugin>
<plugin> <plugin>
<groupId>org.eclipse.tycho</groupId> <groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId> <artifactId>tycho-surefire-plugin</artifactId>
@ -189,7 +202,10 @@
<baselineReplace>none</baselineReplace> <baselineReplace>none</baselineReplace>
<baselineRepositories> <baselineRepositories>
<repository> <repository>
<url>http://download.eclipse.org/eclipse/updates/4.4</url> <url>${eclipse-repo.url}</url>
</repository>
<repository>
<url>${groovy-repo.url}</url>
</repository> </repository>
</baselineRepositories> </baselineRepositories>
</configuration> </configuration>

View File

@ -1,19 +1,6 @@
<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"> <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> <modelVersion>4.0.0</modelVersion>
<artifactId>com.minres.scviewer.ui</artifactId> <artifactId>com.minres.scviewer.ui</artifactId>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<parent> <parent>
<groupId>com.minres.scviewer</groupId> <groupId>com.minres.scviewer</groupId>
<artifactId>com.minres.scviewer.parent</artifactId> <artifactId>com.minres.scviewer.parent</artifactId>