Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Maven 3 models (from Maven 3) are marked as Serializable, but only Model can be serialised. Example:
Caused by: java.io.NotSerializableException: org.apache.maven.model.ModelBase$$Lambda/0x00007fd7ac284278 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1200) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1585) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1542) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358) at io.takari.incrementalbuild.spi.DefaultBuildContextState.writeMap(DefaultBuildContextState.java:126) at io.takari.incrementalbuild.spi.DefaultBuildContextState.storeTo(DefaultBuildContextState.java:109) at io.takari.incrementalbuild.spi.AbstractBuildContext.commit(AbstractBuildContext.java:525) at io.takari.incrementalbuild.maven.internal.MavenBuildContextFinalizer.afterMojoExecutionSuccess(MavenBuildContextFinalizer.java:83) at org.apache.maven.execution.scope.internal.MojoExecutionScope.afterMojoExecutionSuccess(MojoExecutionScope.java:129) at org.apache.maven.plugin.CompoundMojoExecutionListener.afterMojoExecutionSuccess(CompoundMojoExecutionListener.java:42)