Maven包装器在本地安装插件
我第一次使用Maven Wrapper,我试图在本地运行命令“/mvnw-B openl:test”,但我一直得到一个错误,当前项目和插件组中没有找到前缀为“openl”的插件。我查看了.m2目录,确实看到了openl maven插件,所以我不确定它为什么不工作。在将依赖项添加到pom.xml文件后,我安装了运行“./mvnw clean install”的插件Maven包装器在本地安装插件,maven,Maven,我第一次使用Maven Wrapper,我试图在本地运行命令“/mvnw-B openl:test”,但我一直得到一个错误,当前项目和插件组中没有找到前缀为“openl”的插件。我查看了.m2目录,确实看到了openl maven插件,所以我不确定它为什么不工作。在将依赖项添加到pom.xml文件后,我安装了运行“./mvnw clean install”的插件 <dependency> <groupId>org.openl.rules</groupId&g
<dependency>
<groupId>org.openl.rules</groupId>
<artifactId>openl-maven-plugin</artifactId>
<version>5.21.9</version>
<scope>test</scope>
</dependency>
org.openl.rules
openl maven插件
5.21.9
测验
我错过什么了吗 如果你想在maven中使用插件,你需要在pom.xml的“plugin”部分声明它。在您的情况下,它将如下所示:
<build>
[...]
<plugins>
[...]
<plugin>
<groupId>org.openl.rules</groupId>
<artifactId>openl-maven-plugin</artifactId>
<version>5.21.9</version>
<extensions>true</extensions>
</plugin>
</plugins>
[...]
</build>
[...]
[...]
org.openl.rules
openl maven插件
5.21.9
符合事实的
[...]