Malvern从Github需要哪些文件?

时间:2017-04-18 04:54:52

标签: java github

我正在尝试安装运行翻译所需的Google Java文件库。

我已经完成了身份验证部分的确定。然后,指令跳过运行Malvern。

缺少的是: 我需要从Github为Malvern下载哪些文件? 如何从Github下载这些文件?和 我在哪里把它们放在我的机器上?

我正在运行Netbeans。

一旦这些问题得到解答,我希望能够运行该样本。我尝试下载整个项目,但最终有超过1000个文件夹和700多个文件。我怀疑我只需要下载一些文件,但我不知道哪个或哪里。

我希望任何了解Malvern和Github的人都应该能够回答这些问题。如果它不是很明显,我不知道Github或Maven。

Google Translate API instructions

[编辑]我从Github下载了整个项目,然后从项目根目录运行了命令“mvn clean compile assembly:single”,导致构建失败。 Google说明中缺少该步骤。下载项目并应用命令会产生一个包含8MB文件的文件夹,这对于插入一个简单的API似乎太过分了。

我打开调试以生成下面的删节Malven输出。似乎已跳过所有Google API特定文件。

    Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T07:39:06+12:00)
Maven home: D:\Program Files\apache-maven-3.5.0\bin\..
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: D:\Program Files\Java\jdk1.8.0_121\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
...

[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[WARNING] The project com.google.cloud:doc-samples:pom:1.0.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project com.google.cloud:appengine-doc-samples:pom:1.0.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project com.example.appengine:appengine-channel:war:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project com.example.gaefirebaseeventproxy:gaefirebaseeventproxy:war:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project com.example.appengine:appengine-firebase-tictactoe:war:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project com.example.appengine:appengine-guestbook-objectify:war:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project com.example.appengine:appengine-multitenancy:war:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project com.example.flexible:flexible-analytics:war:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] doc-samples
[INFO] appengine-doc-samples
[INFO] appengine-analytics
[INFO] appengine-appidentity
[INFO] appengine-channel
[INFO] appengine-cloudsql
[INFO] appengine-datastore
[INFO] appengine-datastore-indexes
[INFO] appengine-datastore-indexes-exploding
[INFO] appengine-datastore-indexes-perfect
[INFO] echo
[INFO] gaefirebaseeventproxy
[INFO] appengine-firebase-tictactoe
[INFO] appengine-guestbook-objectify
[INFO] appengine-helloworld
[INFO] appengine-helloworld-newplugins
[INFO] appengine-images
[INFO] appengine-logs
[INFO] appengine-mailgun
[INFO] appengine-mailjet
[INFO] appengine-memcache
[INFO] appengine-multitenancy
[INFO] appengine-oauth2
[INFO] appengine-requests
[INFO] appengine-search
[INFO] appengine-sendgrid
[INFO] appengine-remote-client
[INFO] appengine-remote-server
[INFO] appengine-staticfiles
[INFO] taskqueue-push
[INFO] appengine-twilio
[INFO] appengine-URLFetch
[INFO] appengine-users
[INFO] flexible-analytics
[INFO] async-rest
[INFO] flexible-cloudsql
[INFO] flexible-cloudstorage
[INFO] managed-vms-cron
[INFO] flexible-datastore
[INFO] flexible-disk
[INFO] extendingruntime
[INFO] flexible-helloworld
[INFO] mailgun
[INFO] mailjet
[INFO] memcache
[INFO] managed-vms-sendgrid
[INFO] spark
[INFO] staticfiles
[INFO] twilio
[INFO] bigquery-google-cloud-samples
[INFO] bigquery-rest-samples
[INFO] compute-cmdline
[INFO] compute-error-reporting
[INFO] compute-mailjet
[INFO] compute-sendgrid
[INFO] Google Cloud Datastore Snippets
[INFO] datastore-google-cloud-samples
[INFO] kms-samples
[INFO] language-entities
[INFO] language-google-cloud-samples

....

[DEBUG]   (f) remoteRepositories = [      id: central
      url: https://repo.maven.apache.org/maven2
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) runOnlyAtExecutionRoot = false
[DEBUG]   (s) siteDirectory = D:\temp\java-docs-samples-master\target\site
[DEBUG]   (f) skipAssembly = false
[DEBUG]   (s) tarLongFileMode = warn
[DEBUG]   (s) tempRoot = D:\temp\java-docs-samples-master\target\archive-tmp
[DEBUG]   (s) workDirectory = D:\temp\java-docs-samples-master\target\assembly\work
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] doc-samples ........................................ FAILURE [  1.539 s]
[INFO] appengine-doc-samples .............................. SKIPPED
[INFO] appengine-analytics ................................ SKIPPED
[INFO] appengine-appidentity .............................. SKIPPED
[INFO] appengine-channel .................................. SKIPPED
[INFO] appengine-cloudsql ................................. SKIPPED
[INFO] appengine-datastore ................................ SKIPPED
[INFO] appengine-datastore-indexes ........................ SKIPPED
[INFO] appengine-datastore-indexes-exploding .............. SKIPPED
[INFO] appengine-datastore-indexes-perfect ................ SKIPPED
[INFO] echo ............................................... SKIPPED
[INFO] gaefirebaseeventproxy .............................. SKIPPED
[INFO] appengine-firebase-tictactoe ....................... SKIPPED
[INFO] appengine-guestbook-objectify ...................... SKIPPED
[INFO] appengine-helloworld ............................... SKIPPED
[INFO] appengine-helloworld-newplugins .................... SKIPPED
[INFO] appengine-images ................................... SKIPPED
[INFO] appengine-logs ..................................... SKIPPED
[INFO] appengine-mailgun .................................. SKIPPED
[INFO] appengine-mailjet .................................. SKIPPED
[INFO] appengine-memcache ................................. SKIPPED
[INFO] appengine-multitenancy ............................. SKIPPED
[INFO] appengine-oauth2 ................................... SKIPPED
[INFO] appengine-requests ................................. SKIPPED
[INFO] appengine-search ................................... SKIPPED
[INFO] appengine-sendgrid ................................. SKIPPED
[INFO] appengine-remote-client ............................ SKIPPED
[INFO] appengine-remote-server ............................ SKIPPED
[INFO] appengine-staticfiles .............................. SKIPPED
[INFO] taskqueue-push ..................................... SKIPPED
[INFO] appengine-twilio ................................... SKIPPED
[INFO] appengine-URLFetch ................................. SKIPPED
[INFO] appengine-users .................................... SKIPPED
[INFO] flexible-analytics ................................. SKIPPED
[INFO] async-rest ......................................... SKIPPED
[INFO] flexible-cloudsql .................................. SKIPPED
[INFO] flexible-cloudstorage .............................. SKIPPED
[INFO] managed-vms-cron ................................... SKIPPED
[INFO] flexible-datastore ................................. SKIPPED
[INFO] flexible-disk ...................................... SKIPPED
[INFO] extendingruntime ................................... SKIPPED
[INFO] flexible-helloworld ................................ SKIPPED
[INFO] mailgun ............................................ SKIPPED
[INFO] mailjet ............................................ SKIPPED
[INFO] memcache ........................................... SKIPPED
[INFO] managed-vms-sendgrid ............................... SKIPPED
[INFO] spark .............................................. SKIPPED
[INFO] staticfiles ........................................ SKIPPED
[INFO] twilio ............................................. SKIPPED
[INFO] bigquery-google-cloud-samples ...................... SKIPPED
[INFO] bigquery-rest-samples .............................. SKIPPED
[INFO] compute-cmdline .................................... SKIPPED
[INFO] compute-error-reporting ............................ SKIPPED
[INFO] compute-mailjet .................................... SKIPPED
[INFO] compute-sendgrid ................................... SKIPPED
[INFO] Google Cloud Datastore Snippets .................... SKIPPED
[INFO] datastore-google-cloud-samples ..................... SKIPPED
[INFO] kms-samples ........................................ SKIPPED
[INFO] language-entities .................................. SKIPPED
[INFO] language-google-cloud-samples ...................... SKIPPED
[INFO] cloud-logging-samples .............................. SKIPPED
[INFO] logging-google-cloud-samples ....................... SKIPPED
[INFO] monitoring-google-cloud-samples .................... SKIPPED
[INFO] cloud-monitoring-samples ........................... SKIPPED
[INFO] cloud-monitoring-v3-samples ........................ SKIPPED
[INFO] pubsub-google-cloud-samples ........................ SKIPPED
[INFO] spanner-google-cloud-samples ....................... SKIPPED
[INFO] speech-google-cloud-samples ........................ SKIPPED
[INFO] storage-google-cloud-samples ....................... SKIPPED
[INFO] storage-json-api ................................... SKIPPED
[INFO] transfersample ..................................... SKIPPED
[INFO] storage-xml-cmdline-sample ......................... SKIPPED
[INFO] Example for Google Cloud Storage using OAuth 2.0 Service Accounts on Google App Engine SKIPPED
[INFO] taskqueue-defer-sample ............................. SKIPPED
[INFO] translate .......................................... SKIPPED
[INFO] translate-google-cloud-samples ..................... SKIPPED
[INFO] unittests-appengine-local-testing-samples .......... SKIPPED
[INFO] vision-google-cloud-samples ........................ SKIPPED
[INFO] vision-face-detection .............................. SKIPPED
[INFO] vision-label ....................................... SKIPPED
[INFO] vision-landmark-detection .......................... SKIPPED
[INFO] vision-text ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.548 s
[INFO] Finished at: 2017-04-19T09:45:13+12:00
[INFO] Final Memory: 20M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project doc-samples: Error reading assemblies: No assembly descriptors found. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project doc-samples: Error reading assemblies: No assembly descriptors found.
    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:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
    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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error reading assemblies: No assembly descriptors found.
    at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:356)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 20 more
Caused by: org.apache.maven.plugin.assembly.io.AssemblyReadException: No assembly descriptors found.
    at org.apache.maven.plugin.assembly.io.DefaultAssemblyReader.readAssemblies(DefaultAssemblyReader.java:206)
    at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:352)
    ... 22 more
[ERROR] 
[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

0 个答案:

没有答案