@ConfigurationProperties aspectj-maven-plugin conflict

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>
         <!--<aspectLibraries/>-->
     </configuration>
     <executions>
         <execution>
             <goals>
                <goal>compile</goal>
                <goal>test-compile</goal>
             </goals>
         </execution>
     </executions>
</plugin>

What solution?

+4
source share
2

: https://github.com/spring-projects/spring-boot/issues/4847

. <sources/> aspectj-maven-, # 4825

<proc>none</proc> maven-compiler-plugin

.

+2

, Filer.getResource etc/ajc https://bugs.eclipse.org/bugs/show_bug.cgi?id=530665 Filer.createResource .

META-INF/ spring -configuration-metadata.json ajc. , Maven.

0

Source: https://habr.com/ru/post/1621778/


All Articles