package structure does not appear "flat" in the project explorer view

View: New views
9 Messages — Rating Filter:   Alert me  

package structure does not appear "flat" in the project explorer view

by muzzamo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've created a new maven project using maven-archetype-webapp.

When i go into it in the project explorer and create a new java
package (or class), the package structure looks like windows explorer,
ie
- src/main/resources
   - foo
     - bar
       - foo
         - bar

When what I am after is

- src/main/resources
    + foo.bar.foo.bar

This seems to be the default behavior -  how do i fix this ?

Thanks again
Murray

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by Eugene Kuleshov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


  Unfortunately you can't fix that. In order to handle Maven resource
filtering and other code generation from Maven and still work nicely
with JDT incremental compiler we had to remove resource folders from the
build path, so JDT render them as non-packages like structure.

  regards,
  Eugene


Murray Waters wrote:

> I've created a new maven project using maven-archetype-webapp.
>
> When i go into it in the project explorer and create a new java
> package (or class), the package structure looks like windows explorer,
> ie
> - src/main/resources
>    - foo
>      - bar
>        - foo
>          - bar
>
> When what I am after is
>
> - src/main/resources
>     + foo.bar.foo.bar
>
> This seems to be the default behavior -  how do i fix this ?
>
> Thanks again
> Murray
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>  


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by muzzamo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This also seems to mean that the eclipse "Ctrl-Shift-T" shortcut
doesn't work either :( .

Do you think this is how it will be long term? It seems like a fairly
major issue to me.

On Wed, May 14, 2008 at 5:15 PM, Eugene Kuleshov <eu@...> wrote:

>
>   Unfortunately you can't fix that. In order to handle Maven resource
> filtering and other code generation from Maven and still work nicely with
> JDT incremental compiler we had to remove resource folders from the build
> path, so JDT render them as non-packages like structure.
>
>   regards,
>   Eugene
>
>
>  Murray Waters wrote:
>
> >
> >
> >
> > I've created a new maven project using maven-archetype-webapp.
> >
> > When i go into it in the project explorer and create a new java
> > package (or class), the package structure looks like windows explorer,
> > ie
> > - src/main/resources
> >   - foo
> >     - bar
> >       - foo
> >         - bar
> >
> > When what I am after is
> >
> > - src/main/resources
> >    + foo.bar.foo.bar
> >
> > This seems to be the default behavior -  how do i fix this ?
> >
> > Thanks again
> > Murray
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email
> >
> >
> >
> >
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by Eugene Kuleshov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Murray Waters wrote:
> This also seems to mean that the eclipse "Ctrl-Shift-T" shortcut doesn't work either :(
>  
  What do you mean? Ctrl-Shift-T shortcut is an "Open Type", which is
not including resources and it does work for the Java code (there is no
difference with non-Maven projects).
> Do you think this is how it will be long term? It seems like a fairly
> major issue to me.
>  
  I am not sure what is the issue, other then that Package Explorer
don't render resource folders like Java packages.

  regards,
  Eugene



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by muzzamo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks,

This issue may be related to the other email I sent about jsp's not
including resources.

It seems that after following the WTP min how-to to the letter,
eclipse isn't working with java resources properly. Ctrl-Shift-T wont
find the class, jsp imports will not work, and I also tried writing a
servlet and Tomcat could not find the class either.

Something majorly wrong at this stage :-(

Murray

On Thu, May 15, 2008 at 3:41 PM, Eugene Kuleshov <eu@...> wrote:

> Murray Waters wrote:
>
> > This also seems to mean that the eclipse "Ctrl-Shift-T" shortcut doesn't
> work either :(
> >
> >
>   What do you mean? Ctrl-Shift-T shortcut is an "Open Type", which is not
> including resources and it does work for the Java code (there is no
> difference with non-Maven projects).
>
>
> > Do you think this is how it will be long term? It seems like a fairly
> > major issue to me.
> >
> >
>   I am not sure what is the issue, other then that Package Explorer don't
> render resource folders like Java packages.
>
>   regards,
>   Eugene
>
>
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by Eugene Kuleshov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


  Can you please create jira issue and specify step by step instructions
how to reproduce this and maybe attach test project that has those
issues with JSP imports.

  Also, note thing worth to try, is to build that project from Maven
command line and manually deploy created jar to your tomcat server. If
that doesn't work, it mean there is something wrong with the Maven
project, e.g. most probably war plugin configuration or source folders
and resources specified in pom.xml.

  regards,
  Eugene


Murray Waters wrote:

> Thanks,
>
> This issue may be related to the other email I sent about jsp's not
> including resources.
>
> It seems that after following the WTP min how-to to the letter,
> eclipse isn't working with java resources properly. Ctrl-Shift-T wont
> find the class, jsp imports will not work, and I also tried writing a
> servlet and Tomcat could not find the class either.
>
> Something majorly wrong at this stage :-(
>
> Murray
>
>  


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by muzzamo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sure. I'll do this tomorrow.

On 5/15/08, Eugene Kuleshov <eu@...> wrote:

>
>   Can you please create jira issue and specify step by step instructions
> how to reproduce this and maybe attach test project that has those
> issues with JSP imports.
>
>   Also, note thing worth to try, is to build that project from Maven
> command line and manually deploy created jar to your tomcat server. If
> that doesn't work, it mean there is something wrong with the Maven
> project, e.g. most probably war plugin configuration or source folders
> and resources specified in pom.xml.
>
>   regards,
>   Eugene
>
>
> Murray Waters wrote:
>> Thanks,
>>
>> This issue may be related to the other email I sent about jsp's not
>> including resources.
>>
>> It seems that after following the WTP min how-to to the letter,
>> eclipse isn't working with java resources properly. Ctrl-Shift-T wont
>> find the class, jsp imports will not work, and I also tried writing a
>> servlet and Tomcat could not find the class either.
>>
>> Something majorly wrong at this stage :-(
>>
>> Murray
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

--
Sent from Gmail for mobile | mobile.google.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by Adam Hardy-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

CTRL + SHIFT + 'R' will open the 'find resources' dialog, which includes JSPs.

Eugene Kuleshov on 15/05/08 07:52, wrote:

>  Can you please create jira issue and specify step by step instructions
> how to reproduce this and maybe attach test project that has those
> issues with JSP imports.
>
>  Also, note thing worth to try, is to build that project from Maven
> command line and manually deploy created jar to your tomcat server. If
> that doesn't work, it mean there is something wrong with the Maven
> project, e.g. most probably war plugin configuration or source folders
> and resources specified in pom.xml.
>
> Murray Waters wrote:
>> Thanks,
>>
>> This issue may be related to the other email I sent about jsp's not
>> including resources.
>>
>> It seems that after following the WTP min how-to to the letter,
>> eclipse isn't working with java resources properly. Ctrl-Shift-T wont
>> find the class, jsp imports will not work, and I also tried writing a
>> servlet and Tomcat could not find the class either.
>>
>> Something majorly wrong at this stage :-(


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: package structure does not appear "flat" in the project explorer view

by muzzamo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This has been cleared up in http://jira.codehaus.org/browse/MNGECLIPSE-603 .

Murray.


---------- Forwarded message ----------
From: Adam Hardy <adam.maven@...>
Date: Thu, May 15, 2008 at 6:13 PM
Subject: Re: [m2eclipse-user] package structure does not appear "flat"
in the project explorer view
To: user@...


CTRL + SHIFT + 'R' will open the 'find resources' dialog, which includes JSPs.

Eugene Kuleshov on 15/05/08 07:52, wrote:

>
>  Can you please create jira issue and specify step by step instructions how to reproduce this and maybe attach test project that has those issues with JSP imports.
>
>  Also, note thing worth to try, is to build that project from Maven command line and manually deploy created jar to your tomcat server. If that doesn't work, it mean there is something wrong with the Maven project, e.g. most probably war plugin configuration or source folders and resources specified in pom.xml.
>
> Murray Waters wrote:
>>
>> Thanks,
>>
>> This issue may be related to the other email I sent about jsp's not
>> including resources.
>>
>> It seems that after following the WTP min how-to to the letter,
>> eclipse isn't working with java resources properly. Ctrl-Shift-T wont
>> find the class, jsp imports will not work, and I also tried writing a
>> servlet and Tomcat could not find the class either.
>>
>> Something majorly wrong at this stage :-(


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email