我希望使用maven-scm-plugin从git存储库(又名克隆)下载文件到项目目录。
我搞错了
Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.12.2:export (myjsp) on project myproject-tomcat-web: Execution myjsp of goal org.apache.maven.plugins:maven-scm-plugin:1.12.2:export failed.: NullPointerException在pom.xml中,我使用以下构造
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.12.2</version>
<executions>
<execution>
<id>myjsp</id>
<phase>generate-resources</phase>
<goals>
<goal>export</goal>
</goals>
<configuration>
<connectionUrl>scm:git:https://git.myserver.com/myurl.git</connectionUrl>
<exportDirectory>target/web-resources/WEB-INF/resource</exportDirectory>
</configuration>
</execution>
</executions>
</plugin>同时,所有内容通常都从SVN存储库加载(当将url设置为connectionUrl时)。
有什么问题吗?
发布于 2022-02-10 08:05:54
解决后,应该设置checkoutDirectory而不是exportDirectory
https://stackoverflow.com/questions/71060571
复制相似问题