revised package development environment.
This commit is contained in:
parent
12c38db496
commit
ccb264871f
28
README.md
28
README.md
@ -1,27 +1,27 @@
|
|||||||
# BioFormatsImageInfo
|
# BioFormatsImageInfo
|
||||||
Metadata extraction tool based on Bio-Formats
|
Metadata extraction tool based on Bio-Formats
|
||||||
|
|
||||||
### Compile
|
### make package
|
||||||
```shell
|
|
||||||
mvn compile
|
|
||||||
```
|
|
||||||
|
|
||||||
### run
|
|
||||||
```shell
|
|
||||||
mvn exec:java -Dexec.mainClass=jp.riken.neurodata.tools.BioFormatsImageInfo -Dexec.args="'[path to image file]'"
|
|
||||||
```
|
|
||||||
|
|
||||||
### make jar package
|
|
||||||
```shell
|
```shell
|
||||||
mvn package
|
mvn package
|
||||||
```
|
```
|
||||||
|
|
||||||
### run by jar
|
### run
|
||||||
```shell
|
```shell
|
||||||
java -jar target/bioformats-imageinfo-1.0.0.jar "[path to image file]"
|
./target/dist/bin/bioformats-imageinfo "[path to image file]"
|
||||||
```
|
```
|
||||||
|
|
||||||
### run by class
|
### run by jar
|
||||||
|
```shell
|
||||||
|
java -jar ./target/dist/lib/bioformats-imageinfo-1.0.0.jar "[path to image file]"
|
||||||
|
```
|
||||||
|
|
||||||
|
### run by fat jar
|
||||||
|
```shell
|
||||||
|
java -jar ./target/bioformats-imageinfo-1.0.0-jar-with-dependencies.jar "[path to image file]"
|
||||||
|
```
|
||||||
|
|
||||||
|
### library usage
|
||||||
```java
|
```java
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
64
pom.xml
64
pom.xml
@ -11,17 +11,21 @@
|
|||||||
<url>https://neurodata.riken.jp</url>
|
<url>https://neurodata.riken.jp</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<bio-formats.version>6.10.0</bio-formats.version>
|
||||||
|
<bioformats-imageinfo.mainClass>jp.riken.neurodata.tools.BioFormatsImageInfo</bioformats-imageinfo.mainClass>
|
||||||
|
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ome</groupId>
|
<groupId>ome</groupId>
|
||||||
<artifactId>bioformats_package</artifactId>
|
<artifactId>bio-formats-tools</artifactId>
|
||||||
<version>6.10.0</version>
|
<version>${bio-formats.version}</version>
|
||||||
<type>pom</type>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
@ -39,7 +43,7 @@
|
|||||||
<goal>copy-dependencies</goal>
|
<goal>copy-dependencies</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory>${project.build.directory}/libs</outputDirectory>
|
<overWriteIfNewer>true</overWriteIfNewer>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
@ -52,8 +56,7 @@
|
|||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<addClasspath>true</addClasspath>
|
<addClasspath>true</addClasspath>
|
||||||
<classpathPrefix>libs/</classpathPrefix>
|
<mainClass>${bioformats-imageinfo.mainClass}</mainClass>
|
||||||
<mainClass>jp.riken.neurodata.tools.BioFormatsImageInfo</mainClass>
|
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -68,7 +71,7 @@
|
|||||||
</descriptorRefs>
|
</descriptorRefs>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>jp.riken.neurodata.tools.BioFormatsImageInfo</mainClass>
|
<mainClass>${bioformats-imageinfo.mainClass}</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -82,6 +85,42 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>appassembler-maven-plugin</artifactId>
|
||||||
|
<version>1.10</version>
|
||||||
|
<configuration>
|
||||||
|
<assembleDirectory>${project.build.directory}/dist</assembleDirectory>
|
||||||
|
<repositoryLayout>flat</repositoryLayout>
|
||||||
|
<repositoryName>lib</repositoryName>
|
||||||
|
<programs>
|
||||||
|
<program>
|
||||||
|
<mainClass>${bioformats-imageinfo.mainClass}</mainClass>
|
||||||
|
<id>${project.name}</id>
|
||||||
|
</program>
|
||||||
|
</programs>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>assemble</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.owasp</groupId>
|
||||||
|
<artifactId>dependency-check-maven</artifactId>
|
||||||
|
<version>7.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -98,17 +137,16 @@
|
|||||||
<id>central</id>
|
<id>central</id>
|
||||||
<name>Central Repository</name>
|
<name>Central Repository</name>
|
||||||
<url>https://repo.maven.apache.org/maven2</url>
|
<url>https://repo.maven.apache.org/maven2</url>
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>unidata.releases</id>
|
|
||||||
<url>https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases</url>
|
|
||||||
<snapshots><enabled>false</enabled></snapshots>
|
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>ome</id>
|
<id>ome</id>
|
||||||
<name>OME Artifactory</name>
|
<name>OME Artifactory</name>
|
||||||
<url>https://artifacts.openmicroscopy.org/artifactory/maven/</url>
|
<url>https://artifacts.openmicroscopy.org/artifactory/maven/</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>unidata.releases</id>
|
||||||
|
<url>https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases</url>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
Reference in New Issue
Block a user