| Author |
Is there a way to create application (ear) project from maven to eclipse?
|
avihai marchiano
Ranch Hand
Joined: Jan 10, 2007
Posts: 342
|
|
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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26193
|
|
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?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
avihai marchiano
Ranch Hand
Joined: Jan 10, 2007
Posts: 342
|
|
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
Joined: Jun 24, 2003
Posts: 3268
|
|
Hi there, Can you post the relevant sections of your pom?
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
avihai marchiano
Ranch Hand
Joined: Jan 10, 2007
Posts: 342
|
|
Did you saw a maven-ear that become to eclipse-application-project (by importing or mvn:eclipse) ? Thank you
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
I assume you've tried the instructions here?
|
 |
avihai marchiano
Ranch Hand
Joined: Jan 10, 2007
Posts: 342
|
|
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
Joined: Jun 24, 2003
Posts: 3268
|
|
|
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
Joined: Jan 10, 2007
Posts: 342
|
|
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
Joined: Jun 24, 2003
Posts: 3268
|
|
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!
|
 |
 |
|
|
subject: Is there a way to create application (ear) project from maven to eclipse?
|
|
|