Maven Plugin keeps resetting module JDK and other settings

Maybe it's something that I'm doing but in certain modules I need to maintain a certain JDK. Whenever I hit the synch button in the Maven docked window it changes the JDK of certain modules. My biggest issue is with a J2ME module that I have wrappered with a Maven build. This module is the child of a master build which includes other submodules like shared libs and web-apps. The J2ME module is actually built with Ant and to properly get Maven around it would take more effort than I have time to spend. So in the meantime I try to just work around certain issues, but my source folders and JDK for the module get reset each time I synchronize any module in the Maven window. Is there a workaround or any plans to allow Maven to leave certain modules alone when you synchronize? I can't take this module out of the Maven build loop because that defats the purpose. I can't declare official source and test source folders (which I've already tried) because that brings along other issues regarding compiler specifics and other delicate work necessary to ensure the Ant build doesn't get tripped up with already compiled classes. Could someone lend a hand?

0
4 comments

I don't quite understand the layout of your project - is the jme module a maven module?

PS There is an relative issue (http://www.jetbrains.net/jira/browse/IDEADEV-24748). But I'm not sure it's the one.

0

Sorry it took so long to follow up. Yes, I have a Maven wrapper around an Ant build that manages a J2ME project. This is part of a multi-module maven build that constantly gives me trouble. Because I cannot easily define the build path in Maven without adversly affecting the underlying Ant build it wraps I lose all of my module settings everytime I hit the Synchronize button on the Maven plugin. I need a Synchronize this module button added to the Maven support that would allow me to work around this most painful issue.

0

I don't quite understand the layout of your project - is the jme module a maven module?


Yes, IDEA resets J2ME module's JDK to project's one.
The layout is:
A project consist of several modules, all the modules are maven modeles.
Project has a default JDK 1.6.
There is a J2ME module, it has a specific JDK - WTK, in fact.
When you hit "synchronize with maven" button, J2ME's module jdk is reset to project's JDK.
Screen shots attached.
"Before.jpg" is before sync, "after.jpg" is after sync.
You can see JDK change for module "mc"
IDEA v.7.0.3

W BR,
Dmitry



Attachment(s):
before.JPG
after.JPG
0

The issues with JDK and module output paths will be fixed in the next eap.
Thanks

0

Please sign in to leave a comment.