Thomas, Most Maven modules which generate code add the generated code to the build path. (Hibernate plugin adds /target/generated-sources/hibernate) If you want to add your own folder (say src/generated/java) to the buildpath take a look at the buildhelper plugin [1].
If I were you I would look into a plugin which generates your code and add it to the build path. Also, when you generate your code in /target it isn't added to your SCM so developers are not able to change the generated code itself. Which framework are you using to generate your code? Hth, Nick Stolwijk [1] http://mojo.codehaus.org/build-helper-maven-plugin/index.html -----Original Message----- From: Thomas Tardy [mailto:[EMAIL PROTECTED] Sent: Wed 2/20/2008 13:44 To: Maven Users List Subject: Using multiple source folders Hello, i'm looking for a solution to use multipe source folders in a project. What I have seen is a solution with multiple modules. Isn't there a possibility to just define two source folders. We want to separate generated from hand written source. Thanks for your help! Regards, Thomas
