<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div dir="ltr"><div><div>> I don't understand how to change the name of the jar file created in</div><div>> the Netbeans build. It currently builds a jar file called APC_.jar.</div><div>> The only place I can see that name is in the pom.xml in my project's</div>
<div>> Project Files.</div></div><div><br></div><div style="">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.</div></div></blockquote><div><br></div><div>The <artifact> of the project is already changed in line 15:</div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><img id="9fffe7f5-7a28-42cd-9008-0cfd846e311b" height="240" width="246" apple-width="yes" apple-height="yes" src="cid:8C4F24AD-3B46-43C4-B713-D3747748443A@hsd1.ca.comcast.net."></div></div></blockquote><div><div><br></div><div>The problem lies between lines 27 and 32. Should I delete those?</div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div style="">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.</div></div></blockquote><div><br></div>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.<br><br><blockquote type="cite"><div dir="ltr">
<div style="">> package org.jdesktop.layout does not exist</div><div><div>> </div><div>> even though the swing-layout-1.0.3.jar (which contains</div><div>> org.jdesktop.layout) is in my project dependencies.</div>
</div><div><br></div><div style="">You must add a dependency to the proper GAV in your POM. In this case, it is:</div><div style=""><br></div><div style=""><dependency><br></div><div><div> <groupId>org.swinglabs</groupId></div>
<div> <artifactId>swing-layout</artifactId></div><div> <version>1.0.3</version></div><div></dependency></div></div></div></blockquote><div><br></div><div>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. </div><br><blockquote type="cite"><div dir="ltr"><div>In general, to search for dependencies, you can use the site:</div>
<div style=""><br></div><div style=""> <a href="http://maven.imagej.net/">http://maven.imagej.net/</a></div><div style=""><br></div><div style=""><div>> So in my Projects under Dependencies I have the APC_.jar with its</div><div>
> version (APC_-1.0.0.jar)</div><div><br></div><div style="">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.</div></div></div></blockquote><div><br></div><div>I don't know either. Should I remove lines 27 through 32, i.e.,</div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span> <dependency></div><div><span class="Apple-tab-span" style="white-space:pre"> </span> <groupId>sc.fiji</groupId></div><div><span class="Apple-tab-span" style="white-space:pre"> </span> <artifactId>APC_</artifactId></div><div><span class="Apple-tab-span" style="white-space:pre"> </span> <version>1.0.0</version></div><div><span class="Apple-tab-span" style="white-space:pre"> </span> <type>jar</type></div><div><span class="Apple-tab-span" style="white-space:pre"> </span> </dependency></div><div><br></div></div></div></blockquote><div><div>Removing it gives me the org.jdesktop.layout.GroupLayout errors again, and adding the dependencies</div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><blockquote type="cite"><div dir="ltr"><div><dependency><br></div><div><div> <groupId>org.swinglabs</groupId></div><div> <artifactId>swing-layout</artifactId></div><div> <version>1.0.3</version></div><div></dependency></div></div></div></blockquote><div><div dir="ltr"><div><div><br></div></div></div></div></div></div></div></blockquote><div><div>does not get rid of the errors. The errors go away only if I replace the lines to the screenshot above. </div><br><blockquote type="cite"><div dir="ltr"><div style="">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:</div><div><div><br></div><div> <a href="http://fiji.sc/Maven">http://fiji.sc/Maven</a></div></div></div></blockquote><br></div><div>OK, I read it and am trying to understand how it relates to my problem...</div><br></body></html>