在JSproject

时间:2018-04-03 15:29:25

标签: maven checkmark

我正在使用checkmarx maven插件在我的javascript基础项目(Angular 1.6)上执行checkmarx扫描。

当我在输出中运行命令mvn checkmarx:scan时,我有错误。

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.116 s
[INFO] Finished at: 2018-04-03T17:23:31+02:00
[INFO] Final Memory: 17M/217M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.checkmarx.maven:checkmarx-maven-plugin:8.5.0:scan (default-cli) on project gbis-wms-common-web-client: You must set at least one file.
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

有什么想法吗?提前谢谢

1 个答案:

答案 0 :(得分:0)

解决方案是添加sourceDirectory>我的pom.xlm的构建部分中的标记,它的工作原理。 见下文:

<MyScreenManager>:

    Screen1:
        name: 'screen1'
    Screen2:
        name: 'screen2'
    Screen3:
        name: 'screen3'

<Screen1>:

    GridLayout:

        rows: 2
        padding: 20
        spacing: 20

        Button:
            text: 'Go to Screen 2'
            on_press: root.manager.current = 'screen2'

        Button:
            text: 'Go to Screen 3'
            on_press: root.manager.current = 'screen3'

        Label:
            text: 'You are on ' + root.name

<Screen2>:

    GridLayout:

        rows: 2
        padding: 20
        spacing: 20

        Button:
            text: 'Go to Screen 1'
            on_press: root.manager.current = 'screen1'

        Button:
            text: 'Go to Screen 3'
            on_press: root.manager.current = 'screen3'

        Label:
            text: 'You are on ' + root.name

<Screen3>:

    GridLayout:

        rows: 2
        padding: 20
        spacing: 20

        Button:
            text: 'Go to Screen 1'
            on_press: root.manager.current = 'screen1'

        Button:
            text: 'Go to Screen 2'
            on_press: root.manager.current = 'screen2'

        Label:
            text: 'You are on ' + root.name