Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

Commit 6899347

Browse files
authored
Merge pull request #2 from rleigh-codelibre/package-bioformats-package-jar
Package only bioformats_package.jar
2 parents 4635fa8 + 0e3b904 commit 6899347

File tree

2 files changed

+36
-24
lines changed

2 files changed

+36
-24
lines changed

matlab-assembly.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<format>zip</format>
88
</formats>
99
<includeBaseDirectory>false</includeBaseDirectory>
10-
<dependencySets>
11-
<dependencySet>
12-
<outputDirectory>bio-formats-matlab-${project.version}/jar</outputDirectory>
13-
<useProjectArtifact>false</useProjectArtifact>
14-
<scope>runtime</scope>
15-
</dependencySet>
16-
</dependencySets>
1710
<fileSets>
11+
<fileSet>
12+
<directory>target/package-jars</directory>
13+
<outputDirectory>bio-formats-matlab-${project.version}</outputDirectory>
14+
<includes>
15+
<include>*.jar</include>
16+
</includes>
17+
</fileSet>
1818
<fileSet>
1919
<directory>src</directory>
2020
<outputDirectory>bio-formats-matlab-${project.version}</outputDirectory>

pom.xml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,14 @@
77

88
<groupId>ome</groupId>
99
<artifactId>bio-formats-matlab</artifactId>
10-
<version>5.7.4-SNAPSHOT</version>
10+
<version>5.8.1-SNAPSHOT</version>
1111
<packaging>pom</packaging>
1212

1313
<name>Bio-Formats bundle collection</name>
1414
<description>Create matlab of Bio-Formats jars and tools for distribution.</description>
1515
<url>https://www.openmicroscopy.org/bio-formats</url>
1616
<inceptionYear>2005</inceptionYear>
1717

18-
<dependencies>
19-
<dependency>
20-
<groupId>${project.groupId}</groupId>
21-
<artifactId>bio-formats_plugins</artifactId>
22-
<version>${bio-formats_plugins.version}</version>
23-
</dependency>
24-
<dependency>
25-
<groupId>${project.groupId}</groupId>
26-
<artifactId>bio-formats-tools</artifactId>
27-
<version>${bio-formats-tools.version}</version>
28-
</dependency>
29-
</dependencies>
30-
3118
<properties>
3219
<!-- If two artifacts on the classpath use two different versions of the
3320
same dependency, behavior is inconsistent at best, and often broken.
@@ -39,9 +26,8 @@
3926
<date>${maven.build.timestamp}</date>
4027
<year>2018</year>
4128
<project.rootdir>${basedir}</project.rootdir>
42-
<bioformats.version>5.7.3</bioformats.version>
43-
<bio-formats_plugins.version>${bioformats.version}</bio-formats_plugins.version>
44-
<bio-formats-tools.version>${bioformats.version}</bio-formats-tools.version>
29+
<bioformats.version>5.8.1-SNAPSHOT</bioformats.version>
30+
<bio-formats_package.version>${bioformats.version}</bio-formats_package.version>
4531
<imagej1.version>1.48s</imagej1.version>
4632
<log4j.version>1.2.17</log4j.version>
4733
<slf4j.version>1.7.6</slf4j.version>
@@ -147,6 +133,32 @@
147133
<version>2.5</version>
148134
</plugin>
149135

136+
<plugin>
137+
<groupId>org.apache.maven.plugins</groupId>
138+
<artifactId>maven-dependency-plugin</artifactId>
139+
<executions>
140+
<execution>
141+
<id>unpack-ome-xml</id>
142+
<phase>generate-resources</phase>
143+
<goals>
144+
<goal>copy</goal>
145+
</goals>
146+
<configuration>
147+
<artifactItems>
148+
<artifactItem>
149+
<groupId>${project.groupId}</groupId>
150+
<artifactId>bioformats_package</artifactId>
151+
<version>${bio-formats_package.version}</version>
152+
<type>jar</type>
153+
<outputDirectory>${project.build.directory}/package-jars</outputDirectory>
154+
<destFileName>bioformats_package.jar</destFileName>
155+
</artifactItem>
156+
</artifactItems>
157+
</configuration>
158+
</execution>
159+
</executions>
160+
</plugin>
161+
150162
<plugin>
151163
<artifactId>maven-assembly-plugin</artifactId>
152164
<version>3.1.0</version>

0 commit comments

Comments
 (0)