Re: [ImageJ-devel] Copy Plugin directly to Plugins folder.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [ImageJ-devel] Copy Plugin directly to Plugins folder.

ctrueden
Hi Mohamed,

> Actually in this specific thread I was trying with imageJ1.x plugin.
> The same problem as Chris and Gerrit in the link I posted.

Thanks for the clarification.

> Netbeans automatically trys to copy the compiled jar to "jars" folder
> inside the specified directory. Do you have any idea how to configure
> Netbeans to copy to plugins instead of jars?

OK, after reading through the link you mentioned, I understand your problem
now.

The reason it copies your code into jars rather than plugins can be seen in
the source code for imagej-maven-plugin:
https://github.com/imagej/imagej-maven-plugin/blob/9661c28fe2e88524ad3adef003be82d24cb36591/src/main/java/imagej/maven/CopyJarsMojo.java#L252

Your artifactId does not have an underscore in the name, so
imagej-maven-plugin assumes it is a library (which go in jars/) rather than
a plugin (which go in plugins/).

Try renaming your artifact from e.g. "myArtifact" to "my_artifact" or
"myArtifact_" to match ImageJ1's naming convention. You'll need an
underscore in the name of the JAR, anyway, for ImageJ1 to pick it up as a
plugin.

Regards,
Curtis


On Wed, Jun 26, 2013 at 5:26 AM, Mohamed Tleis <[hidden email]>wrote:

>  Hi Curits,
>
> I am sorry about making my post not clear enough. Actually in this
> specific thread I was trying with imageJ1.x plugin. The same problem as
> Chris and Gerrit in the link I posted.
>
> Best Regards,
> Mohamed Tleis
>
>
> On 06/25/2013 11:48 PM, Curtis Rueden wrote:
>
> Hi Chris,
>
>  > ImageJ 1.x is what I'm developing my project in.
>
>  OK. Please note that Mohamed is developing against ImageJ2, so answers
> to his questions are probably not applicable to you, then. If you have a
> specific question about NetBeans + ImageJ1 that you would like addressed,
> feel free to reframe it here and we can try to help.
>
>  Regards,
> Curtis
>
>  P.S. I updated the front page of http://developer.imagej.net/ to be
> clearer about the nature of these two projects.
>
>
> On Tue, Jun 25, 2013 at 4:45 PM, Chris <[hidden email]> wrote:
>
>> Hi Curtis,
>>
>>  ImageJ 1.x is what I'm developing my project in.
>>
>>  Chris
>>
>>  On Jun 25, 2013, at 12:30 PM, Curtis Rueden wrote:
>>
>>  Hi Chris,
>>
>>  > this would be a great improvement for my project too, so if someone is
>> > kind enough to provide an answer, I would be grateful if you could
>> > share the solution with me.
>>
>>  I am bit confused on what you are trying to accomplish. Are you trying
>> to develop plugins for ImageJ 1.x, the current stable release used by many
>> thousands of scientists -- or ImageJ 2.x, for the next generation of
>> N-dimensional image data, which is still in beta?
>>
>>  Please note that material on developer.imagej.net is all about ImageJ2,
>> whereas material on imagej.net is all about ImageJ1. For more details on
>> the differences, please see: http://developer.imagej.net/flavors
>>
>>  The screencast that Johannes recently created (
>> http://www.youtube.com/watch?v=Ac-6gJ2eRb0) is all about developing
>> ImageJ1 plugins, which is probably a better target for algorithms you want
>> to get into the hands of many users ASAP. [1]
>>
>>  Regards,
>> Curtis
>>
>>  [1]  Fiji will soon support ImageJ2 commands out of the box, but it
>> does not do so yet. Until ImageJ2 comes out of beta, ImageJ1 is a more
>> stable development target for plugins, unless you need ImageJ2's new
>> features for your work.
>>
>>
>> On Tue, Jun 25, 2013 at 10:05 AM, Chris <[hidden email]> wrote:
>>
>>>    In order to copy my built plugin directly to the imageJ/plugins
>>> folder; I was trying to set the imagej.app.directory in the POM file as
>>> follows:
>>>         <properties>
>>>
>>> <imagej.app.directory>/usr/share/imagej/plugins</imagej.app.directory>
>>>         </properties>
>>> Netbeans automatically trys to copy the compiled jar to "jars" folder
>>> inside the specified directory. Do you have any idea how to configure
>>> Netbeans to copy to plugins instead of jars?
>>>
>>> Previously in this list, another user faced the same issue, but the
>>> solution was not discussed.
>>> http://imagej.net/pipermail/imagej-devel/2013-January/001368.html
>>>
>>> Best Regards,
>>> M. Tleis
>>>
>>>
>>>   Sorry I haven't mastered all the intricacies of Netbeans, so I can't
>>> answer your question, although I suspect it may be addressed with a change
>>> in the script of your build.xml file.  However, this would be a great
>>> improvement for my project too, so if someone is kind enough to provide an
>>> answer, I would be grateful if you could share the solution with me.  :-)
>>>
>>>  Thanks,
>>>
>>>  Chris Coulon
>>>
>>> _______________________________________________
>>> ImageJ-devel mailing list
>>> [hidden email]
>>> http://imagej.net/mailman/listinfo/imagej-devel
>>>
>>>
>>  _______________________________________________
>> ImageJ-devel mailing list
>> [hidden email]
>> http://imagej.net/mailman/listinfo/imagej-devel
>>
>>
>>
>
>
> _______________________________________________
> ImageJ-devel mailing [hidden email]://imagej.net/mailman/listinfo/imagej-devel
>
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html