See the documentation on the wiki:
https://cwiki.apache.org/confluence/display/AVRO/Build+Documentation

The maven eclipse plugin is one option, the other is the eclipse M2Eclipse
plugin.  Don't mix the two.

The project was migrated and tested with M2Eclipse.  The instructions for
importing projects with it are in the link above, but I'll repeat them
here:

Building Instructions: EclipseUse Eclipse 3.6 Helios
<http://www.eclipse.org/downloads/>
Use the m2Eclipse plugin
<http://m2eclipse.sonatype.org/installing-m2eclipse.html>.

 
* Load the projects into the workspace using the "Import ..." dialog, and
select "Existing Maven Projects"
 
* Select the lang/java directory, and it should show all projects
including the parent.  Import all of these.
 
* After the load and first build, it will not completely compile.  To
 fix it up to compile, select all of the projects and right-click.
Select Maven > Update Project Configuration.


For those that use the maven eclipse plugin, It would be great if someone
documented the wiki page with instructions on using it with Avro.

-Scott



On 2/6/11 8:06 AM, "Harsh J" <[email protected]> wrote:

>Hello,
>
>I updated my svn clone of Avro after quite a while and noticed that
>the Java build has moved from Ant to Maven. I'm was not very familiar
>with maven based projects yet, but I got some reading done and am able
>to use it now. But I have a remaining question that I was not able to
>solve:
>
>How do I ask it to generate Eclipse project files? I liked the
>'eclipse' or 'eclipse-files' target in the earlier Ant-based build
>system of Avro which easily generated Eclipse project files. But when
>I try "maven install; maven eclipse:eclipse" it fails for the tools
>package (in the eclipse part, the install goes fine). I do not have
>enough experience with Maven to know if it is a fault I'm doing or if
>it is a fault with the build files related to maven. Any help with
>creating eclipse project files for Avro's Java sub-project?
>
>-- 
>Harsh J
>www.harshj.com

Reply via email to