|
| 1 | +<!-- |
| 2 | + #%L |
| 3 | + ImageJ software for multidimensional image processing and analysis. |
| 4 | + %% |
| 5 | + Copyright (C) 2012 - 2016 Board of Regents of the University of |
| 6 | + Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck |
| 7 | + Institute of Molecular Cell Biology and Genetics. |
| 8 | + %% |
| 9 | + Redistribution and use in source and binary forms, with or without |
| 10 | + modification, are permitted provided that the following conditions are met: |
| 11 | + |
| 12 | + 1. Redistributions of source code must retain the above copyright notice, |
| 13 | + this list of conditions and the following disclaimer. |
| 14 | + 2. Redistributions in binary form must reproduce the above copyright notice, |
| 15 | + this list of conditions and the following disclaimer in the documentation |
| 16 | + and/or other materials provided with the distribution. |
| 17 | + |
| 18 | + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 | + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 | + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 | + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE |
| 22 | + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 | + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 24 | + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 25 | + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 26 | + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 27 | + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 28 | + POSSIBILITY OF SUCH DAMAGE. |
| 29 | + #L% |
| 30 | + --> |
| 31 | + |
| 32 | +<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/maven-v4_0_0.xsd"> |
| 33 | + <modelVersion>4.0.0</modelVersion> |
| 34 | + |
| 35 | + <groupId>org.apache.maven.plugin.my.unit</groupId> |
| 36 | + <artifactId>Example_PlugIn</artifactId> |
| 37 | + <version>1.0.0-SNAPSHOT</version> |
| 38 | + <packaging>jar</packaging> |
| 39 | + <name>An example ImageJ 1.x plugin to test scijava-maven-plugin's CopyJarsMojo</name> |
| 40 | + |
| 41 | + <dependencies> |
| 42 | + <dependency> |
| 43 | + <groupId>junit</groupId> |
| 44 | + <artifactId>junit</artifactId> |
| 45 | + <version>4.8.1</version> |
| 46 | + <scope>test</scope> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>net.imagej</groupId> |
| 50 | + <artifactId>ij</artifactId> |
| 51 | + <version>1.48s</version> |
| 52 | + </dependency> |
| 53 | + </dependencies> |
| 54 | + |
| 55 | + <properties> |
| 56 | + <imagej.app.directory>${project.basedir}/target/ImageJ.app/</imagej.app.directory> |
| 57 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 58 | + </properties> |
| 59 | + |
| 60 | + <build> |
| 61 | + <plugins> |
| 62 | + <plugin> |
| 63 | + <groupId>org.scijava</groupId> |
| 64 | + <artifactId>scijava-maven-plugin</artifactId> |
| 65 | + <version>${scijava-maven.version}</version> |
| 66 | + <executions> |
| 67 | + <execution> |
| 68 | + <id>copy-jars</id> |
| 69 | + <phase>install</phase> |
| 70 | + <goals> |
| 71 | + <goal>copy-jars</goal> |
| 72 | + </goals> |
| 73 | + </execution> |
| 74 | + <execution> |
| 75 | + <id>install-artifact</id> |
| 76 | + <phase>install</phase> |
| 77 | + <goals> |
| 78 | + <goal>install-artifact</goal> |
| 79 | + </goals> |
| 80 | + <configuration> |
| 81 | + <imagejDirectory>${project.basedir}/target/Other.app/</imagejDirectory> |
| 82 | + <artifact>${project.groupId}:${project.artifactId}:${project.version}</artifact> |
| 83 | + </configuration> |
| 84 | + </execution> |
| 85 | + </executions> |
| 86 | + </plugin> |
| 87 | + </plugins> |
| 88 | + </build> |
| 89 | +</project> |
0 commit comments