History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-26535
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Anton Makeev
Reporter: M.J.Milicevic
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Maven ear packaging: creating invalid application.xml and more

Created: 05 Apr 08 16:10   Updated: Monday 17:08
Component/s: Maven Integration
Fix Version/s: Selena Next EAP, Diana 8375

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive idea-sample.zip (24 kb)

Environment: linux

Build: 7,782
Fixed in build: 8,366


 Description  « Hide
Below some bugs/feedback (and some frustration )

In a project I have a EJB module and 2 web modules which are packaged together in .ear

First problem is that IDEA creates 2 webmodules and names them both "Web",
although I use <finalName>admin</finalName> and <finalName>mysite</finalName> in the build section of my pom.xml.

Second, idea populates my application.xml and assignes id's to my webmodules (id="Web"), so application.xml becomes invalid, not unique id's.

Third: it also doesn't populate context property within application.xml web module definition (I expect it to be using finalName).

Also, after each synchronise, I have to go and fill those properties in for my webmodules
(idea also changes my war names from, for example "projectname-admin-SNAPSHOT.war to webadmin.war
and changes also application.xml, building with maven makes an invalid ear after this)

these are all quite small, but really anoying things/



 All   Comments   Work Log   Change History      Sort Order:
Anton Makeev - 10 Apr 08 15:37
Could you please attach the poms?

M.J.Milicevic - 01 May 08 19:22
Notice application.xml within ear folder (e.g. no context, although it is defined within pom,both ID's are "Web").
Also, if you change it manually, and than change one of the poms, and than synchronise, idea will change your application.xml, which is than invalid again..

<module id="EJB">
<ejb>ejb.jar</ejb>
</module>
<module id="Web">
<web>
<web-uri>admin-1.0-SNAPSHOT.war</web-uri>
<context-root/>
</web>
</module>
<module id="Web">
<web>
<web-uri>site-1.0-SNAPSHOT.war</web-uri>
<context-root/>
</web>
</module>
</application>


M.J.Milicevic - 01 May 08 19:23
btw, happens on linux/windows (probably platform doesn't matter)

Geoffrey De Smet - 03 May 08 15:48
Using 2 EJB jars in 1 ear causes the same havoc, because both EJB facets get the id "EJB".
I tried giving them unique names, and on the next maven sync I had 4 EJB facets

Why is IntelliJ so intrusive in the application.xml? Can I tell IntelliJ to keep its hand off that file and still use the EAR facet (to build the exploded ear etc)?

Related issue: IDEA-18001


Anton Makeev - 12 May 08 17:08
Please try any of the next releases and let me know if any problem occur.