Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Bootstrapping Eclipse
Bootstrapping Eclipse [message #480784] Tue, 18 August 2009 13:16 Go to next message
Tim is currently offline TimFriend
Messages: 18
Registered: July 2009
Junior Member
I'm new to using the iam plugin for eclipse. I've used the m2:eclipse
plugin before to bootstrap my projects (specificly the web project). When
I checkout my webproject from svn and enbale maven on the project, eclipse
does not know it is a web project. Is there a command and procedure for
bootstrapping a web project using the iam plugin without calling the
eclipse:m2eclipse maven command?
Re: Bootstrapping Eclipse [message #480857 is a reply to message #480784] Tue, 18 August 2009 16:58 Go to previous messageGo to next message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Tim,

Tim wrote:
> I'm new to using the iam plugin for eclipse. I've used the m2:eclipse
> plugin before to bootstrap my projects (specificly the web project).
> When I checkout my webproject from svn and enbale maven on the project,
> eclipse does not know it is a web project. Is there a command and
> procedure for bootstrapping a web project using the iam plugin without
> calling the eclipse:m2eclipse maven command?
>

Enabling maven on any clean "war" project will automatically enable
support. By clean, it means that has not yet been configured in any
other way.

You will need to make sure that IAM's Webtools support has been
installed for this to work.

If you still can not make your war project perform as an Web Project,
you can try removing eclipse metadata (.project, .classpath, .settings)
and importing the project on the workspace using the Import Maven
Project option.

Finally, let me clarify that IAM and m2eclipse are developed by
different teams, so running eclipse:m2eclipse will not help.

Yours,
--
Abel Muiño
Re: Bootstrapping Eclipse [message #480865 is a reply to message #480857] Tue, 18 August 2009 17:35 Go to previous messageGo to next message
Tim is currently offline TimFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks for the quick response. I did not have the web tools plugin
enabled. I installed that, restarted eclipse, and re-checked out the
project from SVN (no .project,.classpath, .settings are in source
control). I then enabled Maven Dependency Management and eclipse turned
the project into a Java project (no dynamic web project as it should be).
In the pom.xml file I have it specified as a war package type. Is there
anything else that needs to be added to the pom.xml? Am I missing
anything else? Thanks again! I'd love to get this working as this plugin
is much better then m2eclipse.
Re: Bootstrapping Eclipse [message #480903 is a reply to message #480865] Tue, 18 August 2009 19:22 Go to previous messageGo to next message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Tim wrote:
> Thanks for the quick response. I did not have the web tools plugin
> enabled. I installed that, restarted eclipse, and re-checked out the
> project from SVN (no .project,.classpath, .settings are in source
> control). I then enabled Maven Dependency Management and eclipse turned
> the project into a Java project (no dynamic web project as it should
> be).

Did you install both the Eclipse Webtools (WTP) and the IAM Support for WTP?

Please also check that you have all the update sites listed in the
installation instructions: http://code.google.com/p/q4e/wiki/Installation

Also make sure that your pom is valid and that maven is properly
configured inside IAM (paths to settings.xml, proxy settings for
accessing the repositories...) before importing the project.

If after following all the steps it still does not work, please open a
bugzilla ticket with yout eclipse configuration (from the About dialog)
and pom file (removing any sensitive information).

Please also try creating a web project from an archetype (for example,
the wicket one) and see if it is correctly configured (that can help in
rulling out a problem on your pom).

> In the pom.xml file I have it specified as a war package type. Is
> there anything else that needs to be added to the pom.xml? Am I missing
> anything else? Thanks again!

It should be automatic on import.

> I'd love to get this working as this
> plugin is much better then m2eclipse.
Well... thanks!

--
Abel Muiño
Re: Bootstrapping Eclipse [message #481416 is a reply to message #480903] Thu, 20 August 2009 21:29 Go to previous messageGo to next message
Tim is currently offline TimFriend
Messages: 18
Registered: July 2009
Junior Member
I created the wicket project from the archtype and it converted it into a
web project fine. This would lead me to believe that the problem is in my
pom.xml. So I even tried coping and pasting the pom.xml from the wicket
application to my war and it still would not build my ptoject as a a war.
When I checkout my project from the repo there is no eclipse specific info
and my directory structure is

/ProjectName/pom.xml
/ProjectName/src/main/java
/ProjectName/src/main/resources
/ProjectName/src/main/webapp/WEB-INF/web.xml

Is the build dependent on the directory structure? Does the .project file
need to be there before I enable project dependency managment (is is not
there now)? What information is needed about my setup when I open the bug?

Tim
Re: Bootstrapping Eclipse [message #482289 is a reply to message #481416] Wed, 26 August 2009 05:46 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Tim and please forgive my delay

Project configuration is just based on the pom's contents, although it
is affected by any existing eclipse configuration.

I can not see a reason why it will not configure your project when using
the same pom as the wicket archetype...

When creating an issue, if you could attach a zip/tgz of the project
folder that is not working for you (sources are not needed) and also
your configuration details (from the about box), that would be enough at
the moment.

Thanks for the feedback!

Tim wrote:
>
> I created the wicket project from the archtype and it converted it into
> a web project fine. This would lead me to believe that the problem is
> in my pom.xml. So I even tried coping and pasting the pom.xml from the
> wicket application to my war and it still would not build my ptoject as
> a a war. When I checkout my project from the repo there is no eclipse
> specific info and my directory structure is
> /ProjectName/pom.xml
> /ProjectName/src/main/java
> /ProjectName/src/main/resources
> /ProjectName/src/main/webapp/WEB-INF/web.xml
>
> Is the build dependent on the directory structure? Does the .project
> file need to be there before I enable project dependency managment (is
> is not there now)? What information is needed about my setup when I
> open the bug?
>
> Tim
Re: Bootstrapping Eclipse [message #570627 is a reply to message #480784] Tue, 18 August 2009 16:58 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Tim,

Tim wrote:
> I'm new to using the iam plugin for eclipse. I've used the m2:eclipse
> plugin before to bootstrap my projects (specificly the web project).
> When I checkout my webproject from svn and enbale maven on the project,
> eclipse does not know it is a web project. Is there a command and
> procedure for bootstrapping a web project using the iam plugin without
> calling the eclipse:m2eclipse maven command?
>

Enabling maven on any clean "war" project will automatically enable
support. By clean, it means that has not yet been configured in any
other way.

You will need to make sure that IAM's Webtools support has been
installed for this to work.

If you still can not make your war project perform as an Web Project,
you can try removing eclipse metadata (.project, .classpath, .settings)
and importing the project on the workspace using the Import Maven
Project option.

Finally, let me clarify that IAM and m2eclipse are developed by
different teams, so running eclipse:m2eclipse will not help.

Yours,
--
Abel Muiño
Re: Bootstrapping Eclipse [message #570673 is a reply to message #480857] Tue, 18 August 2009 17:35 Go to previous message
Tim is currently offline TimFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks for the quick response. I did not have the web tools plugin
enabled. I installed that, restarted eclipse, and re-checked out the
project from SVN (no .project,.classpath, .settings are in source
control). I then enabled Maven Dependency Management and eclipse turned
the project into a Java project (no dynamic web project as it should be).
In the pom.xml file I have it specified as a war package type. Is there
anything else that needs to be added to the pom.xml? Am I missing
anything else? Thanks again! I'd love to get this working as this plugin
is much better then m2eclipse.
Re: Bootstrapping Eclipse [message #570685 is a reply to message #480865] Tue, 18 August 2009 19:22 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Tim wrote:
> Thanks for the quick response. I did not have the web tools plugin
> enabled. I installed that, restarted eclipse, and re-checked out the
> project from SVN (no .project,.classpath, .settings are in source
> control). I then enabled Maven Dependency Management and eclipse turned
> the project into a Java project (no dynamic web project as it should
> be).

Did you install both the Eclipse Webtools (WTP) and the IAM Support for WTP?

Please also check that you have all the update sites listed in the
installation instructions: http://code.google.com/p/q4e/wiki/Installation

Also make sure that your pom is valid and that maven is properly
configured inside IAM (paths to settings.xml, proxy settings for
accessing the repositories...) before importing the project.

If after following all the steps it still does not work, please open a
bugzilla ticket with yout eclipse configuration (from the About dialog)
and pom file (removing any sensitive information).

Please also try creating a web project from an archetype (for example,
the wicket one) and see if it is correctly configured (that can help in
rulling out a problem on your pom).

> In the pom.xml file I have it specified as a war package type. Is
> there anything else that needs to be added to the pom.xml? Am I missing
> anything else? Thanks again!

It should be automatic on import.

> I'd love to get this working as this
> plugin is much better then m2eclipse.
Well... thanks!

--
Abel Muiño
Re: Bootstrapping Eclipse [message #570743 is a reply to message #480903] Thu, 20 August 2009 21:29 Go to previous message
Tim is currently offline TimFriend
Messages: 18
Registered: July 2009
Junior Member
I created the wicket project from the archtype and it converted it into a
web project fine. This would lead me to believe that the problem is in my
pom.xml. So I even tried coping and pasting the pom.xml from the wicket
application to my war and it still would not build my ptoject as a a war.
When I checkout my project from the repo there is no eclipse specific info
and my directory structure is

/ProjectName/pom.xml
/ProjectName/src/main/java
/ProjectName/src/main/resources
/ProjectName/src/main/webapp/WEB-INF/web.xml

Is the build dependent on the directory structure? Does the .project file
need to be there before I enable project dependency managment (is is not
there now)? What information is needed about my setup when I open the bug?

Tim
Re: Bootstrapping Eclipse [message #570861 is a reply to message #481416] Wed, 26 August 2009 05:46 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Tim and please forgive my delay

Project configuration is just based on the pom's contents, although it
is affected by any existing eclipse configuration.

I can not see a reason why it will not configure your project when using
the same pom as the wicket archetype...

When creating an issue, if you could attach a zip/tgz of the project
folder that is not working for you (sources are not needed) and also
your configuration details (from the about box), that would be enough at
the moment.

Thanks for the feedback!

Tim wrote:
>
> I created the wicket project from the archtype and it converted it into
> a web project fine. This would lead me to believe that the problem is
> in my pom.xml. So I even tried coping and pasting the pom.xml from the
> wicket application to my war and it still would not build my ptoject as
> a a war. When I checkout my project from the repo there is no eclipse
> specific info and my directory structure is
> /ProjectName/pom.xml
> /ProjectName/src/main/java
> /ProjectName/src/main/resources
> /ProjectName/src/main/webapp/WEB-INF/web.xml
>
> Is the build dependent on the directory structure? Does the .project
> file need to be there before I enable project dependency managment (is
> is not there now)? What information is needed about my setup when I
> open the bug?
>
> Tim
Previous Topic:Cannot install IAM
Next Topic:IAM Installed but not active on galileo?
Goto Forum:
  


Current Time: Tue Apr 23 11:04:53 GMT 2024

Powered by FUDForum. Page generated in 0.04915 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top