Skip to content

Commit

Permalink
resolving package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
olir committed Apr 5, 2018
1 parent ec417fe commit 7e69f99
Show file tree
Hide file tree
Showing 11 changed files with 116 additions and 331 deletions.
2 changes: 2 additions & 0 deletions plugin-jogamp/native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<!-- Check activations with: mvn help:system |grep os -->
<profiles>
<!--
<profile>
<id>win32</id>
<activation>
Expand All @@ -30,6 +31,7 @@
<module>win32</module>
</modules>
</profile>
-->

<profile>
<id>win64</id>
Expand Down
149 changes: 0 additions & 149 deletions plugin-jogamp/native/win32/pom.xml

This file was deleted.

2 changes: 1 addition & 1 deletion plugin-jogamp/native/win64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
</execution>
<execution>
<id>copy</id>
<phase>package</phase>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
Expand Down
12 changes: 2 additions & 10 deletions plugin-jogamp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,8 @@
</modules>

<build>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>1.0-alpha-8</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
</plugins>

</build>

Expand Down
61 changes: 61 additions & 0 deletions plugin-opencv/distribution/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>de.serviceflow.frankenstein.plugin.opencv</groupId>
<artifactId>plugin-parent</artifactId>
<version>0.3.4-SNAPSHOT</version>
</parent>

<artifactId>distribution</artifactId>

<packaging>pom</packaging>

<name>Distribution</name>

<!-- NOTE: These dependency declarations are only required to sort this project to the
end of the line in the multimodule build.
Since we only include the child1 module in our assembly, we only need to ensure this
distribution project builds AFTER that one...
-->
<dependencies>
<dependency>
<groupId>de.serviceflow.frankenstein.plugin.opencv</groupId>
<artifactId>plugin-opencv</artifactId>
<version>0.3.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.serviceflow.frankenstein.plugin.opencv</groupId>
<artifactId>plugin-opencv-64</artifactId>
<version>0.3.4-SNAPSHOT</version>
<type>dll</type>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>distro-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/assembly/bin.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
26 changes: 26 additions & 0 deletions plugin-opencv/distribution/src/assembly/bin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>bin</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>

<!-- Enable access to all projects in the current multimodule build! -->
<useAllReactorProjects>true</useAllReactorProjects>

<!-- Now, select which projects to include in this module-set. -->
<includes>
<include>de.serviceflow.frankenstein.plugin.opencv:plugin-opencv</include>
<include>de.serviceflow.frankenstein.plugin.opencv:plugin-opencv-64</include>
</includes>
<binaries>
<outputDirectory>modules/maven-assembly-plugin</outputDirectory>
<unpack>false</unpack>
</binaries>
</moduleSet>
</moduleSets>
</assembly>
4 changes: 1 addition & 3 deletions plugin-opencv/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@
<goal>jar</goal>
</goals>
<configuration>
<outputDirectory>
${project.basedir}/target/jws
</outputDirectory>
<outputDirectory>${project.basedir}/target/jws</outputDirectory>
</configuration>
</execution>
</executions>
Expand Down
3 changes: 2 additions & 1 deletion plugin-opencv/native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<!-- Check activations with: mvn help:system |grep os -->
<profiles>
<!--
<profile>
<id>win32</id>
<activation>
Expand All @@ -30,7 +31,7 @@
<module>win32</module>
</modules>
</profile>
-->
<profile>
<id>win64</id>
<activation>
Expand Down

0 comments on commit 7e69f99

Please sign in to comment.