Maven 3警告:构建失败

Maven 3警告:构建失败,maven,maven-3,Maven,Maven 3,我正在尝试从以下位置使用HiveUDFs:。我下载了UDF,打开了Cygwin终端,将目录(cd)更改为带有pom.xml的文件夹,然后运行mvn。它给出了错误,我通过按照中第一个答案中的说明编辑pom.xml来解决 我仍然得到以下错误,无法解决他们,尽管谷歌 $ mvn -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were

我正在尝试从以下位置使用HiveUDFs:。我下载了UDF,打开了Cygwin终端,将目录(
cd
)更改为带有
pom.xml
的文件夹,然后运行
mvn
。它给出了错误,我通过按照中第一个答案中的说明编辑
pom.xml
来解决

我仍然得到以下错误,无法解决他们,尽管谷歌

$ mvn -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for net.petrabarus.:HiveUDFs:jar:1.0-SN                          APSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 18,                           column 33
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.081 s
[INFO] Finished at: 2017-03-23T15:47:49-07:00
[INFO] Final Memory: 7M/180M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the form                          at <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle                           phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile                          , process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, te                          st-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-inte                          gration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [He                          lp 1]
org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specified for this build. You must specify                           a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<                          plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, g                          enerate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, genera                          te-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-                          integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, p                          re-site, site, post-site, site-deploy.
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:94)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]
[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/NoGoalSpecifiedException
[错误]尚未为此生成指定任何目标

调用
mvn
命令时,您必须为Maven指定一个目标,或者在
pom.xml
中添加一个
defaultGoal

<project>
  ...
  <build>
    <defaultGoal>install</defaultGoal>
    ...
  </build>
  ...
</project>

...
安装
...
...
提及

[错误]尚未为此生成指定任何目标

调用
mvn
命令时,您必须为Maven指定一个目标,或者在
pom.xml
中添加一个
defaultGoal

<project>
  ...
  <build>
    <defaultGoal>install</defaultGoal>
    ...
  </build>
  ...
</project>

...
安装
...
...
请参阅

使用

mvn install
使用

mvn install