From: "Brett Porter" <[EMAIL PROTECTED]>
is the preferred way of doing <sourceModification> from maven 1 in maven 2 to use filtering on the source files and compile the target? Or is there a different (better) method.
I believe these would be achieved by profiles in m2.
Is there an example with profiles anywhere yet? I was using <sourceModification> to exclude some files from compilation and I don't see how to do it in m2. Specifically, there are files in certain packages that I need to exclude. This is an Ant build with files for four artifacts under a single source directory. I have the build files in a separate directory structure so that each artifact can have its own pom.xml. In m1, I was doing this: <sourceModifications> <sourceModification> <className>x.y.z.Class</className> <!-- doesn't exist, so the excludes always happen--> <excludes> <exclude>org/apache/shale/spring/**</exclude> <exclude>org/apache/shale/tiles/**</exclude> </excludes> </sourceModification> </sourceModifications> Thanks, Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]