Skip to content

Maven Plugin's documentation still refers to module layout that was removed in 2.0 #14854

Closed
@pavlomorozov

Description

@pavlomorozov

I have a problem with Spring Boot 2.0.5 and Spring Boot Maven plugin. I found I should report bug here on:
https://docs.spring.io/spring-boot/docs/current/maven-plugin/issue-tracking.html

I cannot create the module jar file with:

<plugin>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-maven-plugin</artifactId>
	<configuration>
		<layout>MODULE</layout>
    	</configuration> 
</plugin>

Error says:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:repackage (default) on project module-test: Unable to parse configuration of mojo org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:repackage: Cannot convert 'MODULE' to Enum: No enum constant org.springframework.boot.maven.RepackageMojo.LayoutType.MODULE

Spring docs says MODULE should works https://docs.spring.io/spring-boot/docs/current/maven-plugin/usage.html

I was able to resolve by mention old version of spring-boot-maven-plugin 1.5.6

You can see sample application on https://github.com/pavelmorozov/spring-boot-maven-plugin-module/blob/master/pom.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions