Posted by
dscho on
Jan 21, 2014; 5:40pm
URL: http://imagej.273.s1.nabble.com/Re-AW-How-to-handle-dependencies-tp5006206.html
Hi Heinrich,
On Tue, 21 Jan 2014, Heinrich Grabmayr wrote:
> Finally, I have now set up a maven project in netbeans for my plugins
> pacakge (including several classes). This is so amazingly great!!
Glad it worked out for you!
> I set the dependencies to the old versions I know my code compiles with.
> Now I would like to update the dependencies. Is there a way to do that
> gradually, e.g. for one class at a time or so? This might make it easier
> to debug?
Unfortunately, you cannot update the dependencies on a class-by-class
basis. All you can do is to upgrade the dependencies one by one to newer
versions.
On the assumption that the problem is ImageJ 1.x, here are the steps to
define the ImageJ dependency to a new version:
- edit pom.xml and locate the <dependencies> section
- you will find something like
<dependency>
<groupId>net.imagej</groupId>
<artifactId>ij</artifactId>
<version>${imagej1.version}</version>
</dependency>
- there are two ways to switch the version:
1) replace "${imagej1.version}" by something like "1.48o", or
2) define a property in the <properties> section instead:
<properties>
<imagej1.version>1.48i</imagej1.version>
</properties>
in both cases, you override the property set by the parent project
defined in the <parent> section at the beginning of the pom.xml file.
- after saving the edited pom.xml, you will most likely have to tell
Netbeans that the project changed and that it needs to refresh the
project settings.
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html