jar in ear?
hello,
I'm developing a multi-module project using IDEA 4.5.1. One of my modules is an ear-file. How do I go about to include jar-files in my ear? My ear should have a structure like
MyApp.ear
--application.xml
--jboss-app.xml
--Manifest.mf
--MyApp.war
--HibernateStartup.sar
--xxx.jar
--yyy.jar
The first 5 files are ok, but I do not know how to include the two jars in my ear. Can't find a setting for it anywhere. Of course, I could use ant to build such an ear-file, but I would like to let IntelliJ build my ear and be able to debug...
any suggestions?
cheers,
pj
Please sign in to leave a comment.
Add them as libs, then specify their packing options in Application
module settings.
Peter Walsh wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
yes, but how do I do this? Under my Application Module Settings, I do not have any possibility to add anything. I was able to add the war during the creation of the Application Module, but jars...? (see enclosed gif)
cheers,
pj
Attachment(s):
intellij.GIF
Your probably don't have the right module types specified for your project.
I have a "J2EE Application Module" and a "Web Module". The war from the Web Module is packed inside the "J2EE Application Module". The "J2EE Application Module" is the ear-file. Should I create a "Java Module" with the jars I want to include in the J2EE Application Module and include the Java Module in the J2EE Application Module?
cheers,
pj
Add the library to the web module, specify packaging option in web
module setting: link via manifest and copy, the lib will be there
Peter Walsh wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Thank you, Maxim! It works perfectly :)
cheers,
pj