[ome-devel] Importing source into eclipse

Blazej Pindelski bpindelski at dundee.ac.uk
Fri Mar 28 09:08:28 GMT 2014


Thanks Curtis and Blazej,
Hi Ghislain,

Yes my version of eclipse comes with M2E, though it is called "import Maven Project".

When I select the location of the Bioformat GIT clone location, I get the following. It seems like I can select which projects I need. I am however unsure which one I should get to have the sources for the image readers and whatever constitutes the loci_tools.jar.
The projects you'd be interested in are formats-api, formats-bsd and formats-gpl (formats-common
contains helper classes used by the readers). The loci_tools.jar file is an indirect product
of compiling formats-api. More details can be found in "ant/toplevel.xml", where the targets
for the Ant build system are defined.

I also hope that http://www.openmicroscopy.org/site/support/bio-formats5/developers/index.html
will help you to navigate the project tree.

Regards,
Blazej

Thanks again for the help
[cid:part1.08040402.03080807 at dundee.ac.uk]

Ghislain Bonamy, PhD

From: ctrueden.wisc at gmail.com<mailto:ctrueden.wisc at gmail.com> [mailto:ctrueden.wisc at gmail.com] On Behalf Of Curtis Rueden
Sent: Tuesday, March 25, 2014 11:03 PM
To: Blazej Pindelski
Cc: Bonamy, Ghislain; ome-devel at lists.openmicroscopy.org.uk<mailto:ome-devel at lists.openmicroscopy.org.uk>
Subject: Re: [ome-devel] Importing source into eclipse

Hi Ghislain,

> Once the build finishes, you can follow the steps outlined

Note that those instructions are rather out of date now. If you use the "Eclipse IDE for Java developers" bundle of Kepler (4.3), it comes with the M2E plugin (i.e., Maven support).

Here is the table of which versions of Eclipse come with Maven support:
    http://eclipse.org/downloads/compare.php?release=kepler

You can also skip the "ant jars" and "mvn generate-sources" steps if you simply close the ome-xml project after importing Bio-Formats. (That project is the only one with a problem in Eclipse, since it generates most of its own source code.) Once ome-xml is closed, the other components should not show any errors.

Regards,
Curtis

On Tue, Mar 25, 2014 at 4:49 AM, Blazej Pindelski <b.pindelski at dundee.ac.uk<mailto:b.pindelski at dundee.ac.uk>> wrote:
> Hi Everyone,

Hi Ghislain,

>  I was hoping someone could guide me through importing the Bioformats project into eclipse. I remember I am supposed to use GIT and Maven project import, but I am not 100% sure how to do this again.
Git is used to clone the code from the github repository at https://github.com/openmicroscopy/bioformats. There is an HTTPS clone URL.
This will give you a local copy of the Bioformats code.

To remove any post-import errors in Eclipse, I suggest you run "ant jars" and "mvn generate-sources" in your newly cloned
repository. Once the build finishes, you can follow the steps outlined in
https://www.openmicroscopy.org/site/support/bio-formats5/developers/developing-bf.html?highlight=eclipse.

I hope that helps.

Regards,
Blazej

> Thanks in advance to give me the instructions to get this done (and requirements if needed), or point me to a short tutorial.
>
> Best,
>
> Ghislain Bonamy, PhD
>
> _______________________________________________
> ome-devel mailing list
> ome-devel at lists.openmicroscopy.org.uk<mailto:ome-devel at lists.openmicroscopy.org.uk>
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel


The University of Dundee is a registered Scottish Charity, No: SC015096
_______________________________________________
ome-devel mailing list
ome-devel at lists.openmicroscopy.org.uk<mailto:ome-devel at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel



The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20140328/d8a0bf1d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 107154 bytes
Desc: not available
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20140328/d8a0bf1d/attachment-0001.png>


More information about the ome-devel mailing list