-
Notifications
You must be signed in to change notification settings - Fork 99
Do Not Use forceRegenerate
Do not use <forceRegenerate>true</forceRegenerate>
and switch to the 0.12.1
or later version of the plugin.
Historically, the plugin supports the <forceRegenerate>true</forceRegenerate>
configuration setting.
When set to true
, this setting will force the plugin to regenerate the sources - regardless of whether something was changed or not. In older version of the plugin this was useful if you've processed non-file resources like external URLs or resources from Maven artifacts - and wanted to force regenration when running mvn install
without mvn clean
.
The disadvantage is, however, that this forces XJC execution no matter what. This is especially problematic when using the plugin IDEs (for example in Eclipse via m2e
). Incremental builds are important for IDE integration and forceRegenerate=true
effectively disables them.
In 0.12.1
the up-to-date check for resources was extended to non-file-resources like Maven artifacts and files. The plugin will now do its best to check the last modification timestamp. Therefore mvn install
should work even if you're using this type of resources. Basically there's no longer need for <forceRegenerate>true</forceRegenerate>
.
To sum up, the use of <forceRegenerate>true</forceRegenerate>
is strongly discouraged. Consider removing this setting from your configuration (will default to false
). If you need a full rebuild, do mvn clean
instead.
The setting will be kept for backwards compatibility, but the plugin will display a warning if it is used.
- Home
- Migration guide
-
JAXB Maven Plugin
- Quick Start
-
User Guide
- Basic Usage
- Specifying What To Compile
- Referencing Resources in Maven Artifacts
- Using Catalogs
- Using Episodes
- Modular Schema Compilation
- Controlling the Output
- Using JAXB Plugins
- Using a Specific JAXB Version
- Configuring Extension, Validation and XML Security
- IDE Integration
- Miscellaneous
- Configuring Proxies
- Maven Documentation
- Configuration Cheat Sheet
- Common Pitfalls and Problems
-
JAXB2 Basics Plugins
- Using JAXB2 Basics Plugins
- JSR-305 Support
-
JAXB2 Basics Plugins List
- SimpleEquals Plugin
- SimpleHashCode Plugin
- Equals Plugin
- HashCode Plugin
- ToString Plugin
- Copyable Plugin
- Mergeable Plugin
- Inheritance Plugin
- AutoInheritance Plugin
- Wildcard Plugin
- Setters Plugin
- Simplify Plugin
- EnumValue Plugin
- JAXBIndex Plugin
- FixJAXB1058 Plugin
- Commons Lang Plugin
- Default Value Plugin
- Fluent API Plugin
- Namespace Prefix Plugin
- Value Constructor Plugin
- Boolean Getter Plugin
- CamelCase Plugin
- XML ElementWrapper Plugin
- Parent Pointer Plugin
- Property Listener Injector Plugin
- Annox
- JAXB Annotate Plugin
-
HyperJAXB3
- Build System Support
- Customization Guide
- Databases
- Development guide
- Extension guide
- FAQ
- IDE Support
- Java Persistence
- JAXB
- JDK Support
- Project Templates
-
Reference
- Adding vendor-specific annotations
- Features
- Integrating Hyperjaxb3 in builds
- Introduction
- Making schema-derived classes ready for JPA
- Adding required properties
- Applying workarounds for JAXB vs. JPA conflicts
- Enforcing top-level classes
- Generating equals and hashCode methods
- Generating ORM metadata
- Generating persistence unit descriptor
- JPA 2 Support
- Making classes serializable
- Testing generated mappings
- Reference - single page
- Related Projects
- Sample projects
- Solutions
- Target Scenarios
- Test Projects
- Tutorials
- Best Practices
- FAQ
- Sample Projects
- Support
- License
- Distribution