Hello,

I'm just wondering what version of the maven-eclipse- or the maven-idea-plugin you're using because I've never had problems with the maven-faces-plugin generating source in the target tree. "mvn eclipse:eclipse" or "mvn idea:idea" configures the project properly at least for me as I don't have to add additional source folders.

For example, I've attached the accoring part of the project configuration being generated by the maven-idea-plugin:

///

<content url="file://$MODULE_DIR$">
  <sourceFolder url="file://$MODULE_DIR$/src/main/java"
                                      isTestSource="false"/>
  <sourceFolder url="file://$MODULE_DIR$/target/
        maven-faces-plugin/main/java" isTestSource="false"/>
  <sourceFolder url="file://$MODULE_DIR$/src/test/java"
                                      isTestSource="true"/>

   <sourceFolder url="file://$MODULE_DIR$/src/main/resources"
                                      isTestSource="false"/>
   <sourceFolder url="file://$MODULE_DIR$/src/test/resources"
                                      isTestSource="true"/>

   <excludeFolder url="file://$MODULE_DIR$/target/classes"/>
   <excludeFolder url="file://$MODULE_DIR$/target/test-classes"/>
 </content>

\\\

I know that this works also if you're using the maven-eclipse-plugin.

regards,
Bernhard

On 01/31/2008 +0100,
"Leonardo Uribe" <[EMAIL PROTECTED]> wrote:
Ok, I understand.

* generating source into the src/main/java tree sucks, because it is
hard to tell generated code apart from non-generated stuff.

* generating source into the target tree sucks a bit, because you need
to explicitly add it to an IDE

So we agree that the option that sucks less is generating source into the target directory?

regards

Leonardo Uribe


Reply via email to