You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Mario Ivankovits <ma...@ops.co.at> on 2006/03/01 19:55:46 UTC

maven eclipse:eclipse problems

Hi!

With the current trunk I have some problems creating the project files
for eclipse:

The source folder of the following projects
myfaces-shared-impl
myfaces-shared-tomahawk
point to the resource directory instead of the java directory. At least,
the java directory is missing.

Missing reference to myfaces-shared-tomahawk in Tomahawk-sandbox.

I changed above by hand and then the build worked.

Ciao,
Mario


Re: maven eclipse:eclipse problems

Posted by Manfred Geiler <ma...@gmail.com>.
Don't know much about eclispe but simplest workaround for now would be
to work with 3 separate eclipse projects:
 shared
 impl
 tomahawk
This way your IDE cannot be fooled by the 3 different versions of all
the shared classes.

What also helped in IntelliJ was to clear ALL caches once after the refactoring.

BTW, the new idea-plugin snapshot fixes all the shared classes
problems. Look at the new myfaces-master pom. I have added the
necessary configuration there.
Key is the useClassifiers option. It tells the idea-plugin to
configure a sources jar whenever it finds one for an artifact. This
way you get the refactored shared-impl and shared-tomahawk sources
into your idea projects although they do not exist in any regular src
folder.

Don't know if there are equal options for the eclipse plugin.

HTH,
Manfred



On 3/1/06, Mario Ivankovits <ma...@ops.co.at> wrote:
> Hi!
> > I also see the same problem with a clean checkout.
> >
> > I also don't know how to fix it in Maven, and manually performed the
> > steps.   For now, I'll update the wik.
> >
> Ok, but it looks like my way is not the correct one.
>
> e.g. eclipse thinks the AddResource.java file is there 3 times
> myfaces-shared-core, myfaces-shared-impl and myfaces-shared-tomahawk
>
> in impl and tomahawk it is found in the target/ directory, so I guess
> these are useless, arent they?
>
> It depends on which AddResource.java I open e.g "usage search" works or not.
> Its odd, not to say, you cant work that way. Do we need impl and
> tomahawk in our IDEs?
>
> Ciao,
> Mario
>
>

Re: maven eclipse:eclipse problems

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
>> I also see the same problem with a clean checkout.
>>
>> I also don't know how to fix it in Maven, and manually performed the
>> steps.   For now, I'll update the wik.
>>   
>>     
> Ok, but it looks like my way is not the correct one.
>   
I learned that my way indeed is the correct one, and that the way how
the new layout prevents us to use "usage search" and refactorings is a
feature of this layout :-)

Why is it not possible to do this source generation stuff only for the
build/release process?

---
Mario


Re: maven eclipse:eclipse problems

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> I also see the same problem with a clean checkout.
>
> I also don't know how to fix it in Maven, and manually performed the
> steps.   For now, I'll update the wik.
>   
Ok, but it looks like my way is not the correct one.

e.g. eclipse thinks the AddResource.java file is there 3 times
myfaces-shared-core, myfaces-shared-impl and myfaces-shared-tomahawk

in impl and tomahawk it is found in the target/ directory, so I guess
these are useless, arent they?

It depends on which AddResource.java I open e.g "usage search" works or not.
Its odd, not to say, you cant work that way. Do we need impl and
tomahawk in our IDEs?

Ciao,
Mario


Re: maven eclipse:eclipse problems

Posted by Mike Kienenberger <mk...@gmail.com>.
I also see the same problem with a clean checkout.

I also don't know how to fix it in Maven, and manually performed the
steps.   For now, I'll update the wik.


On 3/1/06, Mario Ivankovits <ma...@ops.co.at> wrote:
> Hi!
>
> With the current trunk I have some problems creating the project files
> for eclipse:
>
> The source folder of the following projects
> myfaces-shared-impl
> myfaces-shared-tomahawk
> point to the resource directory instead of the java directory. At least,
> the java directory is missing.
>
> Missing reference to myfaces-shared-tomahawk in Tomahawk-sandbox.
>
> I changed above by hand and then the build worked.
>
> Ciao,
> Mario
>
>