|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Robert Scholte (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... JIRA
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Robert Scholte (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Robert Scholte (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... JIRA
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... JIRA
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Robert Scholte (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Robert Scholte (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... JIRA
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJAXB-71) Ensure no exception whe... Anders Hammar (JIRA)

The scenario is more complex than that, Robert.
I agree with Anders; I believe that the majority of cases would mind that at least one sourceDirectories exist.
Example: Some plugins - such as the AspectJ Maven Plugin - add sourceDirectories to the project they are provided in,
and all project children. In the case of the AspectJ plugin, src/main/aspect and src/test/aspect are added as
sourceDirectories by default. Maven promotes creating a commonly used build definition (such as AspectJ + JAXB2 to
weave and create XSD for entity class definition projects) in a parent pom.
However, our example parent pom will always fail the build if it does not contain directories src/main/aspect and src/test/aspect.
Heck, even all child projects might not contain these directories - and we should really avoid forcing developers to check
in dummy files to ensure that the src/main/aspect directory exists for all child projects to our example parent.
This is simply poor operation of the JAXB2 plugin.
While both the attached patch and your idea about a property failOnMissingSources could handle the scenario above, I would argue
that the default value for the property should be false - so that the example above should work without having to provide extra
configuration to the JAXB2 plugin. We should use sensible default values to promote the spirit of maven's usage.