[ImageJ-devel] Copy Plugin directly to Plugins folder.
Chris
coulonchris59 at gmail.com
Wed Jun 26 12:05:00 CDT 2013
> > I don't understand how to change the name of the jar file created in
> > the Netbeans build. It currently builds a jar file called APC_.jar.
> > The only place I can see that name is in the pom.xml in my project's
> > Project Files.
>
> As shown in the screencast, just change the <artifactId> of the project itself. Note that this is *not* one of the <artifactId> values within the <dependencies> block, but rather the <artifactId> immediately beneath <project>, towards the very top of the POM.
The <artifact> of the project is already changed in line 15:
The problem lies between lines 27 and 32. Should I delete those?
> Also as shown in the screencast, after editing your POM, NetBeans should magically update itself to match the new information there. In my experience, it works pretty well, but if you run into trouble, try quitting and restarting NetBeans.
Well, it magically updates with the errors if I change line 29 from APC_ to A_Postcard, but yesterday I got odd errors which magically went away when I restarted Netbeans.
> > package org.jdesktop.layout does not exist
> >
> > even though the swing-layout-1.0.3.jar (which contains
> > org.jdesktop.layout) is in my project dependencies.
>
> You must add a dependency to the proper GAV in your POM. In this case, it is:
>
> <dependency>
> <groupId>org.swinglabs</groupId>
> <artifactId>swing-layout</artifactId>
> <version>1.0.3</version>
> </dependency>
These errors do not occur with the pom.xml as shown above, and the project runs with Netbeans debug or run, but again, nothing appears under the ImageJ plugins menu, even though there are several classes with underscores in their names. Also, in the Files>target (which is grayed out) the classes contain both class and java files and there are two jar files, A_Postcard-0.1.0.jar and Process_Pixels-1.0.0.jar. The A_Postcard contains a small test class that just says, "It works!" when run, and I deleted that file right after I setup and tested my new project, so clearly that A_Postcard-0.1.0.jar file is a residue from when I first set up the project yesterday.
> In general, to search for dependencies, you can use the site:
>
> http://maven.imagej.net/
>
> > So in my Projects under Dependencies I have the APC_.jar with its
> > version (APC_-1.0.0.jar)
>
> I don't know where that APC_ artifact came from, but I suggest you remove it, since it is not an actual dependency of your project.
I don't know either. Should I remove lines 27 through 32, i.e.,
<dependency>
<groupId>sc.fiji</groupId>
<artifactId>APC_</artifactId>
<version>1.0.0</version>
<type>jar</type>
</dependency>
Removing it gives me the org.jdesktop.layout.GroupLayout errors again, and adding the dependencies
> <dependency>
> <groupId>org.swinglabs</groupId>
> <artifactId>swing-layout</artifactId>
> <version>1.0.3</version>
> </dependency>
does not get rid of the errors. The errors go away only if I replace the lines to the screenshot above.
> I also highly encourage you to read through the following article to get an overview of the Maven POM, as well as how to locate needed dependencies for your project:
>
> http://fiji.sc/Maven
OK, I read it and am trying to understand how it relates to my problem...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20130626/566ae062/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-13.png
Type: image/png
Size: 47309 bytes
Desc: not available
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20130626/566ae062/attachment-0001.png>
More information about the ImageJ-devel
mailing list