英文:
JUnit extension export in maven plugin
问题
我在一个Maven插件项目中创建了一个JUnit扩展,我想在另一个项目中使用这个插件和JUnit扩展,但我不知道如何导出和导入Maven插件和JUnit扩展的依赖。
我尝试像这样在另一个项目中导入 plugin
:
<plugins>
...
<plugin>
<groupId>com.project</groupId>
<artifactId>project-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>my-goal</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
但这并没有起作用。
谢谢您的帮助。
英文:
I created a JUnit extension in a maven plugin project and I want to use this plugin and the JUnit extension in another project, but I have no idea how can I export and import dependencies of the maven plugin and the JUnit extension.
I tried to import the plugin
in other project like this
<plugins>
...
<plugin>
<groupId>com.project</groupId>
<artifactId>project-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>my-goal</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
But it is not working.
Thank you for the help
专注分享java语言的经验与见解,让所有开发者获益!
评论