maven - 如何解决找不到 vertx-maven-plugin 的问题?
问题描述
我有以下 pom.xml ,但我面临插件“vertx-maven-plugin”的问题,它说没有找到vertx-maven-plugin,请帮忙。
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.jponge.javamag-rxjava-vertx</groupId>
<artifactId>vertx-samples</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- vert.x properties -->
<vertx.version>3.5.0</vertx.version>
<vertx.verticle>samples.MainVerticle</vertx.verticle>
<!-- Maven plugins -->
<vertx-maven-plugin.version>1.0.13</vertx-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-dependencies</artifactId>
<version>${vertx.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-web</artifactId>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-web-client</artifactId>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-rx-java2</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>vertx-maven-plugin</artifactId>
<version>${vertx-maven-plugin.version}</version>
<executions>
<execution>
<id>vmp</id>
<goals>
<goal>initialize</goal>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<redeploy>true</redeploy>
</configuration>
</plugin>
</plugins>
</build>
</project>
解决方案
您使用的是非常旧版本的插件。这应该可以完成这项工作。有关更多信息,请参阅https://reactiverse.io/vertx-maven-plugin/上的文档
<plugin>
<groupId>io.reactiverse</groupId>
<artifactId>vertx-maven-plugin</artifactId>
<version>1.0.18</version>
<executions>
<execution>
<id>vmp</id>
<goals>
<goal>initialize</goal>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<redeploy>true</redeploy>
</configuration>
</plugin>
推荐阅读
- javascript - 试图在反应中将父状态传递给子组件
- python - Pandas CSV 到 Django 响应
- git - 在提交时强制提交有额外的父母
- spring - spring批处理服务层中的nullpointer异常未注入
- azure-devops - 警告 CS0618:“ResourceManager.ResourceSets”已过时:“改为调用 InternalGetResourceSet”
- git - 需要为 yarn add jest 提供密码
- dashboard - 动态设置 SingeStat 仪表控件的最大值
- git - 通过git部署时如何忽略文件夹内容而不删除
- mysql - Mysql - 从子句将变量传递给子查询
- windows - 有没有办法获取所有已安装程序的安装路径?