ImageJ.net :: Testing your plugin

Hallo Image.sc forum,

I would like to add a small supplement to https://imagej.net/Developing_ImageJ_in_Eclipse
and I am unsure if it will be (possible or) easier to create an account and modify the content directly or if one of the imagej.net contributors can add it in case its interesting enough.

I am talking about topic
2.4 Testing your plugin in an existing installation

During development of plugins or projects it is annoying to copy jar files manually to plugins folder after every build. Since I want to avoid using option Option 2 (2.4.2 Option 2: Install dependencies) to not modify the existing installation to much I use the following section in the plugins/project pom file to copy just the corresponding jar file into an existing installation during Maven build. Maybe that’s helpful for others too.

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <id>my-jar-copy</id>
            <phase>install</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <!--  e.g.: D:\devHome\fiji -->
              <outputDirectory>${basedir}/../fiji/plugins</outputDirectory>
              <resources>          
                <resource>
                  <!--  e.g.: D:\devHome\ijplugin1 -->
                  <directory>${basedir}/target</directory>
                    <includes>
          	      <include>ijplugin1_-?????.jar</include>
                        <overwrite>true</overwrite>
       		    </includes>
                </resource>
              </resources>              
            </configuration>            
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

In case of interest this could be added as a hint in section 2.4.1 Option 1: Copying the jar.

What is the procedure to discuss imagej.net related suggestion like that?

Regards,

Peter

@phaub

It is a wiki - so I would say go ahead and add your contribution directly. Just notify us here when you do… those of us who have accounts on the ImageJ wiki will see your changes…

We love it when folks contribute! That’s what it’s all about in the end… helping each other as much as we can.