Open zhiyuanouyang opened 6 years ago
Please look at the maven doc [1].
pluginManagement: is an element that is seen along side plugins.
Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one.
The configuration of the swagger-maven-plugin you made inside the pluginManagement won't have any effect, if there is no instance of smp defined inside a regular <build><plugins></plugin></build>
block. [2]
[1] http://maven.apache.org/pom.html#Plugin_Management [2] http://maven.apache.org/pom.html#Plugins
I am using the sample code herehttps://github.com/kongchen/swagger-maven-plugin with version number 3.1.1.
I did not make any changes except adding tag inside pom.xml to avoid some errors. Here is my pom.xml
`<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
`
After running "mvn compile", nothing is generated. Can anyone help?