|
15 | 15 |
|
16 | 16 | <build>
|
17 | 17 | <plugins>
|
| 18 | + <plugin> |
| 19 | + <groupId>org.apache.maven.plugins</groupId> |
| 20 | + <artifactId>maven-dependency-plugin</artifactId> |
| 21 | + <version>3.6.1</version> |
| 22 | + <executions> |
| 23 | + <execution> |
| 24 | + <id>get-original-artifacts</id> |
| 25 | + <phase>generate-resources</phase> |
| 26 | + <goals> |
| 27 | + <goal>copy</goal> |
| 28 | + </goals> |
| 29 | + <configuration> |
| 30 | + <artifactItems> |
| 31 | + <!-- Get the original sources JAR --> |
| 32 | + <artifactItem> |
| 33 | + <groupId>io.swagger.core.v3</groupId> |
| 34 | + <artifactId>swagger-maven-plugin</artifactId> |
| 35 | + <version>${project.version}</version> |
| 36 | + <classifier>sources</classifier> |
| 37 | + <type>jar</type> |
| 38 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 39 | + <destFileName>${project.artifactId}-${project.version}-sources.jar</destFileName> |
| 40 | + </artifactItem> |
| 41 | + <!-- Get the original javadoc JAR --> |
| 42 | + <artifactItem> |
| 43 | + <groupId>io.swagger.core.v3</groupId> |
| 44 | + <artifactId>swagger-maven-plugin</artifactId> |
| 45 | + <version>${project.version}</version> |
| 46 | + <classifier>javadoc</classifier> |
| 47 | + <type>jar</type> |
| 48 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 49 | + <destFileName>${project.artifactId}-${project.version}-javadoc.jar</destFileName> |
| 50 | + </artifactItem> |
| 51 | + </artifactItems> |
| 52 | + </configuration> |
| 53 | + </execution> |
| 54 | + </executions> |
| 55 | + </plugin> |
18 | 56 | <plugin>
|
19 | 57 | <groupId>com.coderplus.maven.plugins</groupId>
|
20 | 58 | <artifactId>copy-rename-maven-plugin</artifactId>
|
|
102 | 140 | </execution>
|
103 | 141 | </executions>
|
104 | 142 | </plugin>
|
| 143 | + <plugin> |
| 144 | + <groupId>org.codehaus.mojo</groupId> |
| 145 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 146 | + <version>3.4.0</version> |
| 147 | + <executions> |
| 148 | + <execution> |
| 149 | + <id>attach-artifacts</id> |
| 150 | + <phase>package</phase> |
| 151 | + <goals> |
| 152 | + <goal>attach-artifact</goal> |
| 153 | + </goals> |
| 154 | + <configuration> |
| 155 | + <artifacts> |
| 156 | + <artifact> |
| 157 | + <file>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</file> |
| 158 | + <type>jar</type> |
| 159 | + <classifier>sources</classifier> |
| 160 | + </artifact> |
| 161 | + <artifact> |
| 162 | + <file>${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar</file> |
| 163 | + <type>jar</type> |
| 164 | + <classifier>javadoc</classifier> |
| 165 | + </artifact> |
| 166 | + </artifacts> |
| 167 | + </configuration> |
| 168 | + </execution> |
| 169 | + </executions> |
| 170 | + </plugin> |
105 | 171 | </plugins>
|
106 | 172 | </build>
|
107 | 173 |
|
|
0 commit comments