groovy - 在哪里可以获得 gmaven 插件中预定义变量的完整列表?

标签 groovy maven gmaven-plugin

在何处获取在 gmaven-plugin 下执行的 Groovy 脚本中可用变量的完整列表在马文?除此之外,也许有人知道在哪里可以找到 Gmaven 文档?

我了解项目设置。我想还有一些其他的..

最佳答案

页面http://docs.codehaus.org/display/GMAVEN/Executing+Groovy+Code列表:

Default Variables
By default a few variables are bound into the scripts environment:

project  The maven project, with auto-resolving properties
pom  Alias for project
session  The executing MavenSession
settings     The executing Settings
log  A SLF4J Logger instance
ant  An AntBuilder instance for easy access to Ant tasks
fail()   A helper to throw MojoExecutionException

关于groovy - 在哪里可以获得 gmaven 插件中预定义变量的完整列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5212772/

相关文章:

java - 如何从 Groovy 的 CliBuilder 获取正在运行的命令(或 jar、脚本)的名称?

eclipse - 如何添加新的 JVM 语言,例如Scala、Clojure、Fantom、Groovy 到 Eclipse IDE?

java - 使用嵌入式 Cassandra 进行突变测试时出现 NoSuchMethodError

Jenkins GMavenPlus 插件无法在 groovy 脚本中导入本地类

maven - 使用 gmaven 在 maven 中设置属性

java - 在 Jenkinsfile 中使用 Publish Over SSH 时出现 NotSerializedException

java - 展开所有实例的抽象 Java 类

maven - 依赖 javax.mail :mail:1. 4 未找到

java - 在 Eclipse 中设置 EJB 构建类路径

groovy - 使用 gmaven 插件获取 org.codehaus.groovy.control.MultipleCompilationErrorsException