Skip to content

Instantly share code, notes, and snippets.

@aschain
Created October 27, 2020 02:14
Show Gist options
  • Save aschain/a9bafe53666a1669d843495491511713 to your computer and use it in GitHub Desktop.
Save aschain/a9bafe53666a1669d843495491511713 to your computer and use it in GitHub Desktop.
pom addition for copyToFiji.sh
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>first-execution</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>bash</executable>
<workingDirectory>${basedir}</workingDirectory>
<arguments>
<argument>-c</argument>
<argument>"../copyToFiji.sh jars ${project.artifactId} target/${project.build.finalName}.jar"</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment