facebook

How to put jars to ear/lib not to war/WEB-INF/lib?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #314328 Reply

    vbez
    Member

    1 I have 3 projects in my workspace in MyEclipse:
    1. Pojo – simple java project
    2. WebApp – web project
    3. App – enterprise java project

    WebApp depends on Pojo project.
    So I added Pojo to Java Build Path of WebApp project on “Properties of WebApp/Java Build Path/Projects” tab.
    Also I’ve added WebApp module to “App” enterprise application.

    When I exported “App” enterprise application from MyEclipse I get ear file with following structure:

        app.ear
              |
              |___META-INF
              |___WebApp.war
                           |
                           |___WEB-INF
                                     |
                                     |___lib
                                           |
                                           |___pojo.jar

    Is it possible to make MyEclipse to put pojo.jar to ear/lib not to WebApp.war/WEB-INF/lib?

    PS.
    Pojo java project – it is plain java project, not ejb project.

    #314383 Reply

    vbez,
    You might like to take a look at this thread – http://www.myeclipseide.com/PNphpBB2-printview-t-5236-start-0.html. It contains steps and the changes in the preferences that you need to make. For more details, please check the “Advanced Features ” section in the Enterprise application project tutorial – http://www.myeclipseide.com/documentation/quickstarts/earprojects/ .

    Please let us know if you need more help.

    #314409 Reply

    vbez
    Member

    Thank you.

    I have another question.
    I have 2 java projects. And one Web project.
    Web project depends on these 2 java projects during compilation.
    But in war file I need only one of these java projects.
    Is it possible to configure MyEclipse to put only one of these java projects to WEB-INF/lib?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to put jars to ear/lib not to war/WEB-INF/lib?

You must be logged in to post in the forum log in