Hi,

To include files to the org.apache.maven.plugins compile process one has
to specify those files in the configuration/includes section.

I noticed that if I add an includes section like the following

<includes>
            <include>**/*.properties</include>
</includes>

My java files are not build anymore.  Intuitively I thought or expected
the includes section to be additive.  In my fantasy I imagined that the
compiler plug-in defines a default include on *.java and if I want to
add more files, I just need to define that in the includes section.

As it turns out I have to do it in the following way:

<build>
...
  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0.1</version>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
          <includes>
            <include>**/*.properties</include>
            <include>**/*.java</include>
          </includes>
        </configuration>
      </plugin>
  </plugins>
</build>

Is this a general behavior in Maven with the includes section or is this
something specific to the compiler plug-in?

Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to