You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by annon88 <an...@web.de> on 2012/03/20 06:31:35 UTC

Eclipse import of the sources.

Hello.

I want to import the tapestry sources into eclipse and tried the following:
svn checkout https://svn.apache.org/repos/asf/tapestry/tapestry5/trunk/
tapestry-project
Interrupted this after 30 minutes without success.

Downloaded 5.3.2 from 
http://tapestry.apache.org/download.html
Than I did:
gradle eclipse with gradle 6 and got:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/user/workspace/tapestry_5.3.2/tapestry-core/build.gradle'
line: 36

* What went wrong:
A problem occurred evaluating project ':tapestry-core'.
Cause: Could not find method description() for arguments [Generates Java
sources from Antlr3 grammars.] on project ':tapestry-core'.


Then I downloaded 5.3.1
gradle eclipse works
Eclipse ->  Import existing project into workspace works, too, but several
things do not work. For instance Strg left mouse should normally lead to the
specific class. And I can see no dependency tree. I read that eclipse needs
a flat project structure, so I replaces the include in settings.gradle with
includeFlat. But this does not work, too. I also tried to import it as
existing project and copy project into workspace. Nothing worked.

Some hints would be fine.


--
View this message in context: http://tapestry.1045711.n5.nabble.com/Eclipse-import-of-the-sources-tp5579088p5579088.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Eclipse import of the sources.

Posted by annon88 <an...@web.de>.
Thiago H de Paula Figueiredo wrote
> 
> Take a  look at the Gradle documentation to know how to generate the
> Eclipse  
> project files.
> 

If you mean I should use the command "gradle eclipse", please read my
initial post.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Eclipse-import-of-the-sources-tp5579088p5597081.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Eclipse import of the sources.

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Sat, 24 Mar 2012 12:59:36 -0300, annon88 <an...@web.de> wrote:

> I try to import the sources in Eclipse. Just for fun and learn. I know  
> that gradle install does a maven install of the archive artifacts into  
> my local .m2 cache. But it does not create the pom.xml's which I could  
> import easy
> with "Import as existing maven project". So I don't see how your advice
> should help me.

It doesn't generate a pom.xml because it doesn't use Maven itself. Take a  
look at the Gradle documentation to know how to generate the Eclipse  
project files.

> For instance I know the quickstart archetype. But I don't see the
> correlation to my question.

Sorry, I didn't understand at that time what you were trying to do. :)

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Eclipse import of the sources.

Posted by annon88 <an...@web.de>.
@Thiago H de Paula Figueiredo 
Thanks for your feedback. I thought about your answer and I'am not sure, if
you already gave me the hint I need to import the tapestry sources in
eclipse, or if we talk past each other.


Thiago H de Paula Figueiredo wrote
> 
> Its build tool is Gradle and used to be Maven. Don't forget that Gradle  
> generates Maven artifacts, so unless you're building Tapestry from source,  
> it won't have any difference for you.
> 
I try to import the sources in Eclipse. Just for fun and learn. I know that
gradle install does a maven install of the archive artifacts into my local
.m2 cache. But it does not create the pom.xml's which I could import easy
with "Import as existing maven project". So I don't see how your advice
should help me.



> I use Eclipse. Its m2e (Maven plugin) has a very friendly way to generate  
> a project from an archetype. I suggest you to use it instead of using the  
> command-line for that.
> 
For instance I know the quickstart archetype. But I don't see the
correlation to my question.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Eclipse-import-of-the-sources-tp5579088p5591885.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Eclipse import of the sources.

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Sat, 24 Mar 2012 08:59:34 -0300, annon88 <an...@web.de> wrote:

> @Beat Durrer
> Thank you for your answer! This community is very quiet.

What do you mean by that? Just curious. ;)

> In general I know the way you describe, but it seems that tapestry is no
> maven project. I which it would be.

Its build tool is Gradle and used to be Maven. Don't forget that Gradle  
generates Maven artifacts, so unless you're building Tapestry from source,  
it won't have any difference for you.

> Maybe this is a good reason to try another IDE. I always wanted to test
> IDEA. What do the tapestry developers use? Or can somebody help me  
> importing this project into eclipse?

I use Eclipse. Its m2e (Maven plugin) has a very friendly way to generate  
a project from an archetype. I suggest you to use it instead of using the  
command-line for that.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Eclipse import of the sources.

Posted by annon88 <an...@web.de>.
@Beat Durrer
Thank you for your answer! This community is very quiet. The more I'am glad
about your feedback.

In general I know the way you describe, but it seems that tapestry is no
maven project. I which it would be. The only pom.xml is in the quickstart
directory. The others are configured as multi module gradle project.

Maybe this is a good reason to try another IDE. I always wanted to test
IDEA. What do the tapestry developers use? Or can somebody help me importing
this project into eclipse?

Cheers
anon (-:

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Eclipse-import-of-the-sources-tp5579088p5591582.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Eclipse import of the sources.

Posted by Beat Durrer <bd...@gmail.com>.
Hi,

I don't know about your specific issue, but to save you time:
The easiest way to start is take a vanilla eclipse, add the maven
plugin, create the project via eclipse-maven and then download the
sources via right-clicking the project -> maven -> download sources.
No hassle with svn or maven command line tools.

Cheers :)
Beat


2012/3/20 annon88 <an...@web.de>:
> Hello.
>
> I want to import the tapestry sources into eclipse and tried the following:
> svn checkout https://svn.apache.org/repos/asf/tapestry/tapestry5/trunk/
> tapestry-project
> Interrupted this after 30 minutes without success.
>
> Downloaded 5.3.2 from
> http://tapestry.apache.org/download.html
> Than I did:
> gradle eclipse with gradle 6 and got:
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/home/user/workspace/tapestry_5.3.2/tapestry-core/build.gradle'
> line: 36
>
> * What went wrong:
> A problem occurred evaluating project ':tapestry-core'.
> Cause: Could not find method description() for arguments [Generates Java
> sources from Antlr3 grammars.] on project ':tapestry-core'.
>
>
> Then I downloaded 5.3.1
> gradle eclipse works
> Eclipse ->  Import existing project into workspace works, too, but several
> things do not work. For instance Strg left mouse should normally lead to the
> specific class. And I can see no dependency tree. I read that eclipse needs
> a flat project structure, so I replaces the include in settings.gradle with
> includeFlat. But this does not work, too. I also tried to import it as
> existing project and copy project into workspace. Nothing worked.
>
> Some hints would be fine.
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Eclipse-import-of-the-sources-tp5579088p5579088.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org