Reputation: 339
I am running mvn clean install. Trying to excluded a folder from being included in the maven build. Entry in maven config:
<configuration>
<excludes>
<exclude>${project.basedir}/src/main/webapp/test</exclude>
</excludes>
</configuration>
Getting this exception - Unable to parse configuration of mojo org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage for parameter exclude: Cannot find default setter in class org.springframework.boot.maven.Exclude
How to resolve this? Any suggestions.
Upvotes: 1
Views: 3964
Reputation: 698
If someone came here, solution is put artifactId
and groupId
as in example.
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.2.4.RELEASE</version>
<configuration>
<excludes>
<exclude>
<groupId>com.foo</groupId>
<artifactId>bar</artifactId>
</exclude>
</excludes>
</configuration>
...
</plugin>
Upvotes: 1
Reputation: 2255
This error is coming form spring-boot-maven-plugin. First exclude that plugin and try again.
Upvotes: 0