maven eclipse plugin

段劲
2023-12-01

With the change done as part of MECLIPSE-443 "Only include **/*.java in Java source directories" the .classpath entries for classpathentry kind="src" now specify an including attribute with a value of "**/*.java" . Previously this attribute was not specified which meant that eclipse would include any file in this src directory as being on the classpath and hence compiled.

This broke Ajdt support as "**/*.aj" files were no longer included on the classpath and MECLIPSE-538 fixed this.

MECLIPSE-104 "Add the ability to specify source inclusions/exclusions" was added put back this flexibility.

In summary:

  • If your project is a java project then "**/*.java" will always be added to the including attribute of source directories.
  • If your project is an ajdt project then "**/*.aj" will always be added to the including attribute of source directories.
  • If you need any additional includes or excludes for source directories then use the configuration elements sourceIncludes/sourceExcludes

见:http://maven.apache.org/plugins/maven-eclipse-plugin/examples/specifying-source-path-inclusions-and-exclusions.html

 类似资料:

相关阅读

相关文章

相关问答