When I use @ConfigurationPropertiesmaven in the asjj-maven-plugin during compilation, I get the following error messages:
[INFO] Display AJC verbose messages for message types: [error, warning, failure] [WARNING] Processing the value of the @ConfigurationProperty metadata field is not supported:
[ERROR] Internal compiler error: java.lang.IllegalStateException: Failed to write metadata to org.springframework.boot.configurationprocessor.ConfigurationMetadataAnnotationProcessor.writeMetaData (ConfigurationMetadataAnnotationProcessor.javahaps67)
Here are my pom settings:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.8</version>
<configuration>
<forceAjcCompile>true</forceAjcCompile>
<source>${java.version}</source>
<target>${java.version}</target>
<Xlint>ignore</Xlint>
<complianceLevel>${java.version </complianceLevel>
<showWeaveInfo>true</showWeaveInfo>
<encoding>${project.build.sourceEncoding}</encoding>
<verbose>true</verbose>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
What solution?
source
share