problems loading maven project with build-helper plugin

Hi

I'm using the build-helper (http://mojo.codehaus.org/build-helper-maven-plugin/) and I'm having problems adding a source directory.

This is the configuration I use:
org.codehaus.mojo build-helper-maven-plugin 1.1 add-sources generate-sources add-source ${designer.classes} The ${designer.classes} property is defined under a top level ]]> section. maven can deal with it without a problem, but when I load this project to IDEA I see the same string in the project settings dialog instead of the extracted path. If, Instead of property, I put the full path, it adds it both as source directory and as "excluded" directory (probably because it's under /target).

I've tried running idea:idea plugin instead of loading the project from inside maven. it then generates the paths without a problems but whenever I load the iml file into IDEA, it strips the javadoc/sources from the file so I have no documentation.

Since manually removing this directory from the exluded directories every time I refresh the project is not really a solution :) does anybody has any workaround that could work?

Thanx
--
Haim

1 comment
Comment actions Permalink

OK, After a few idea:clean, idea:idea and re-importing the project, it does accept sources and javadocs. This means that I have an acceptable solution.

Any idea about the build-helper though?

Thanx
--
Haim

0

Please sign in to leave a comment.