Maven's profiles.xml bug?

When there's a profiles.xml in the root of my project, IDEA starts but will not display anything (almost) in the project view (see attached snapshot file).
I'm using #7523 and the problem persists, under Windows and OS X afaik.

I'm not a Maven expert but my profiles.xml seems regular, at least it works with maven command line.

thanks for any help
--nodje



Attachment(s):
Picture 1.png
5 comments

Hi I ran into a similar problem: when one of the sub projects has multiple profiles and one of those profiles is activated, a clean install on the parent pom will ignore the activated profile and thus build the project as if none of the profiles were selected.

I'm using the same version but on windows.

Raymond

0

Could you please attach sample poms and profiles files so that I could reproduce the problem?

0

Hi Anton,
sorry for the late reply, something must has been wrong with my email client.
Anyway, there's actually not much to attach, just create a profiles.xml in your project root with a default profile:
for instance

dev false environment test ]]>

and IDEA would have this weird behaviour.

cheers
--nodje

0

I've created relevant request in jira:http://www.jetbrains.net/jira/browse/IDEADEV-23199. I'm up to fix it by the next eap.

0

The problem with xml you wrote is that it is not well formed. Profiles.xml file should contain element as a root (not the ]]>).

I've added some error reporting in last eap (but not very user-friendly one - it just logs exceptions that could arise - but enough to track the root of the problems).

Please try to fix you profiles.xml file and let me know if it helps. (Please use jira for that http://www.jetbrains.net/jira/browse/IDEADEV-23199)

0

Please sign in to leave a comment.