<div dir="ltr">Hi Chris,<div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">The problem lies between lines 27 and 32. Should I delete those?</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Yes. That is erroneous. I have no idea what APC_ is, or why you would want to depend on it. Delete it.</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">> </span><span style="font-family:arial,sans-serif;font-size:13px">it magically updates with the errors if I change line 29 from APC_ to A_Postcard</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Your project is A_Postcard. You do not want it to *depend* on A_Postcard, because then it would be depending on itself, which would obviously be an error.</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">> </span><span style="font-family:arial,sans-serif;font-size:13px">even though there are several classes with underscores in their names</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Your artifactId needs an underscore, so that the JAR has an underscore, which it does have. But you still need a plugins.config, too. Did you edit the plugins.config as shown in the screencast?</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">> </span><span style="font-family:arial,sans-serif;font-size:13px">I set up ad1054/Postcards on GitHub, but I don't see how to put my project there. </span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Read the guide, step 3, "push your commit":</span></div>
<div style><a href="https://help.github.com/articles/create-a-repo" target="_blank">https://help.github.com/articles/create-a-repo#step-3-push-your-commit</a></div><div style><br></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Regards,</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">Curtis</span></div><div class="im" style="font-family:arial,sans-serif;font-size:13px"></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jun 26, 2013 at 12:05 PM, Chris <span dir="ltr"><<a href="mailto:coulonchris59@gmail.com" target="_blank">coulonchris59@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div class="im"><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>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><div>The <artifact> of the project is already changed in line 15:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><img height="240" width="246" 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 class="im"><div><br></div><br><blockquote type="cite"><div dir="ltr"><div>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></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.<div class="im">
<br><br><blockquote type="cite"><div dir="ltr">
<div>> 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>You must add a dependency to the proper GAV in your POM. In this case, it is:</div><div><br></div><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><br></div></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>
<div class="im"><br><blockquote type="cite"><div dir="ltr"><div>In general, to search for dependencies, you can use the site:</div>
<div><br></div><div> <a href="http://maven.imagej.net/" target="_blank">http://maven.imagej.net/</a></div><div><br></div><div><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>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><div>I don't know either. Should I remove lines 27 through 32, i.e.,</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><span style="white-space:pre-wrap"> </span> <dependency></div>
<div><span style="white-space:pre-wrap"> </span> <groupId>sc.fiji</groupId></div><div><span style="white-space:pre-wrap"> </span> <artifactId>APC_</artifactId></div><div><span style="white-space:pre-wrap"> </span> <version>1.0.0</version></div>
<div><span style="white-space:pre-wrap"> </span> <type>jar</type></div><div><span style="white-space:pre-wrap"> </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><div class="im"><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><div>does not get rid of the errors. The errors go away only if I replace the lines to the screenshot above. </div><div class="im"><br><blockquote type="cite"><div dir="ltr"><div>
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" target="_blank">http://fiji.sc/Maven</a></div>
</div></div></blockquote><br></div></div><div>OK, I read it and am trying to understand how it relates to my problem...</div><br></div></blockquote></div><br></div>