我试图在构建war文件后运行一个简单的beanshell脚本来打印'Hello World'。我从这个做参考。但是,我不断收到“没有选择执行的项目”。运行 mvn clean install 后。我不确定错误是否来自文件目录,或者我无法在构建 war 文件后仅打印“Hello World”。
+- project folder/
+- buildTargetWarFileFolder/
+- python/
+- folder/
| +-helloWolrd.bsh
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<debug>true</debug>
<projectsDirectory>project folder</projectsDirectory>
<postBuildHookScript>python/folder/helloWorld.bsh</postBuildHookScript>
</configuration>
<executions>
<execution>
<id>print Hello World</id>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>