• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a way to create application (ear) project from maven to eclipse?

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I am working with jboss.
i want to have import or create eclipse application project from my maven ear . is it possible.

I sucess to create project, but the problem was that the ear which was created dosnt include the dependencies.

Thank you
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by avihai marchiano:
I sucess to create project, but the problem was that the ear which was created dosnt include the dependencies.

In that they aren't in the ear or Eclipse isn't creating the references for you?
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the newest version of eclispe and m2 plugin.

import my ear project (ear pom) to eclipse.

the project that was created has the depended jar under maven library, but i dont see the depended jar (the utility jars) in the publish ear.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Can you post the relevant sections of your pom?
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Did you saw a maven-ear that become to eclipse-application-project (by importing or mvn:eclipse) ?

Thank you
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you've tried the instructions here?
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not relevant.

Eclipse has facet , which define the project type.

m2 plugin soppuse to support in creating the right eclipse project.

what i am trying to do is to create eclipse project from maven ear.
the eclipse project need to be with ear facet and need to have generated application xml and all the jars under the ear library.

the eclipse project is created , but it dosnt packgae all the dependencies .

if you have ear pom that you success to create eclipse ear from it i will be happy to see.

Thank you
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I think I got this around the wrong way. Are you trying to do this from Maven or from Eclipse using one of the Eclipse (Maven) plugins?
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create ear maven project - pom
and by import this project to exclipse (or by m2 plugin or by eclipse:eclipse) to have eclipse ear project.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, re-reading your original post, I think I see. Your mvn ear command is not putting the dependencies as you'd expect. You need t make sure that you include the dependencies correctly in the pom, so something like:



Hope that helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic