Using maven properties in JavaDoc
问题 Is it possible to expand the maven properties' scope on javadocs using Maven Javadoc Plugin? E.g. /** * My Awesome Class * @version ${project.version} **/ 回答1: I think you try like this. This is two step process: First is to load the pom property into static field Second to use the static field to set the javadoc property Create a app.properties in src/main/resources with content like this application.version=${project.version} then enable maven filtering like this <build> <resources>