• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic