aguacate web-swagger-bom
With aguacate you get a better taste
Status: Beta
Brought to you by:
mc_new
| File | Date | Author | Commit |
|---|---|---|---|
| .gitignore | 2020-04-29 |
|
[17ff8f] [initial version] |
| README-ES.md | 2020-05-02 |
|
[887742] [documentation] README |
| README.md | 2020-05-02 |
|
[daf94e] [documentation] README |
| pom.xml | 2023-03-24 |
|
[fd8f85] [dependency] update maven dependencies |
[EN] [ES]
It is recommended to use maven overlay, to create a war project to include the dependencies and configuration files required by the project.
In the dependencyManagement section, add the net.sf.aguacate.swagger.aguacate-swagger-bom artifact, importing it as pom, specifying the required version (see here available versions).
<dependencyManagement>
<dependencies>
<dependency>
<groupId>net.sf.aguacate.swagger</groupId>
<artifactId>aguacate-swagger-bom</artifactId>
<version>0.0.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
The maven-war-plugin configuration is added. Indicate in the overlay section the artifact net.sf.aguacate.swagger.aguacate-swagger.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<overlays>
<overlay>
<groupId>net.sf.aguacate.swagger</groupId>
<artifactId>aguacate-swagger</artifactId>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
</build>
In the dependencies section, add the dependency net.sf.aguacate.swagger.aguacate-swagger, with scope runtime and typewar, without version.
<dependencies>
<dependency>
<groupId>net.sf.aguacate.swagger</groupId>
<artifactId>aguacate-swagger</artifactId>
<type>war</type>
<scope>runtime</scope>
</dependency>
</dependencies>
An example of this configuration is in the file pom.xml (sourceforge.net) of the project aguacate-demo.