我们在准备资源阶段使用maven-exec-plugin创建二进制文件,该文件后来打包到jar中。Exec启动脚本,读取excel表并创建sqlite。
现在脚本总是运行,即使我没有运行干净。如何配置插件,使其只在以下情况下运行:
发布于 2013-06-11 11:59:02
只有在不存在<profile>的情况下,才可以使用target/afile.log激活来运行插件:
<profiles>
<profile>
<id>run-exec</id>
<activation>
<file>
<missing>target/afile.log</missing>
</file>
</activation>
...
</profile>
</profiles>https://stackoverflow.com/questions/17040517
复制相似问题