Skip to content

scijava/scijava-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SciJava Maven Plugin

scijava-maven-plugin is a Maven plugin for managing SciJava-based software.

It provides one goal:

  • set-rootdir (as part of the validate phase of the life cycle): finds the project root directory of nested Maven projects and sets the rootdir property to point there. This goal is useful if you want to define the location of the ImageJ.app/ directory relative to the project root directory.

It is recommended to enable it automatically by making the SciJava POM the parent project:

<project ...>
  <parent>
    <groupId>org.scijava</groupId>
    <artifactId>pom-scijava</artifactId>
    <version>1.156</version>
  </parent>
  ...
</project>

Alternatively, you can include the plugin explicitly in the life cycle:

<plugins>
  <!-- Set the rootdir property to the root of the multi-module project -->
  <plugin>
    <groupId>org.scijava</groupId>
    <artifactId>scijava-maven-plugin</artifactId>
    <version>0.1.0</version>
    <executions>
      <execution>
        <id>set-rootdir</id>
        <phase>validate</phase>
        <goals>
          <goal>set-rootdir</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
</plugins>

About

A Maven plugin to manage development of SciJava-based software.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 14

Languages