小编moh*_*h17的帖子

maven编译错误 - 无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile

我正在尝试运行mvn clean compile test自动化测试并获取 Maven 编译错误消息。

我在这里发布错误消息和我的 pom 文件。

我使用的是cucumber框架,java版本是1.8.0_144。

PS:我可以通过 IDE 手动运行测试,没有任何错误。

有人可以指导我为什么会发生这种情况吗?

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.913 s
[INFO] Finished at: 2018-06-04T09:13:25+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project CucumberFramework: Compilation failure -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project CucumberFramework: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) …
Run Code Online (Sandbox Code Playgroud)

java selenium maven

5
推荐指数
1
解决办法
5万
查看次数

将 hs.chooser 中的文本粘贴到hammerspoon 中

我正在尝试创建一个快捷方式,通过使用 来存储一组文本模板hs.chooser。并且,用户可以通过单击 的下拉菜单来粘贴此内容hs.chooser

我使用下面的代码显示我的模板但不粘贴文本。

有人能指出我做错了什么吗?

hs.hotkey.bind({"Q"}, "W", function()
local current = hs.application.frontmostApplication()

local chooser = hs.chooser.new(function(choice)
    if not choice then focusLastFocused(); return end
    hs.pasteboard.setContents(choice["chars"])
    focusLastFocused()
    hs.eventtap.keyStrokes(hs.pasteboard.getContents())
end)

chooser:queryChangedCallback(function(string)
    local choices = {
        {
            ["text"] = "Testing",
            ["subText"] = "Testing my text"
        }
    }
    chooser:choices(choices)
end)

chooser:searchSubText(true)

chooser:show()
   end)
Run Code Online (Sandbox Code Playgroud)

lua hammerspoon

3
推荐指数
1
解决办法
1143
查看次数

标签 统计

hammerspoon ×1

java ×1

lua ×1

maven ×1

selenium ×1