2

I just started to do some work on the ImageJ project. This software is developped in Java using Maven as a build system and is split intp numerous sub-projects/modules. I would like to work and modify some of these sub/projects and have them compile in one go by the main Maven project.

How can I (if possible) configure maven to use the local source code instead of the distant Jar file to build the ImageJ Software ?

I can see that each dependency is listed in the pom.xml file of the main project but I did not find a solution to use the local source code instead.

1 Answers1

1

If you build ImageJ with a certain version number (like 1.2.3-SNAPSHOT) by using mvn clean install, you can use this version of ImageJ in the dependencies of your other project.

You cannot reference source code directly by Maven (although there is a feature "Workspace Resolution" in Eclipse that does that).

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142