PlayN showcase(java)没有';t运行-无错误或警告

PlayN showcase(java)没有';t运行-无错误或警告,playn,Playn,我昨天能够运行这个示例,但是在尝试让playn与Eclipse一起工作之后,它就不再工作了。它通常作为HTML5(mvn-Phtml集成测试)运行 以下是我下载和运行playn samples/showcase的完整输出: $ ls -la total 0 drwxr-xr-x 2 sean staff 68 14 Jan 21:46 . drwxr-xr-x 16 sean staff 544 14 Jan 21:46 .. $ git clone https://code.g

我昨天能够运行这个示例,但是在尝试让playn与Eclipse一起工作之后,它就不再工作了。它通常作为HTML5(mvn-Phtml集成测试)运行

以下是我下载和运行playn samples/showcase的完整输出:

$ ls -la
total 0
drwxr-xr-x   2 sean  staff   68 14 Jan 21:46 .
drwxr-xr-x  16 sean  staff  544 14 Jan 21:46 ..
$ git clone https://code.google.com/p/playn-samples
Cloning into 'playn-samples'...
remote: Counting objects: 4291, done.
remote: Finding sources: 100% (4291/4291), done.
remote: Total 4291 (delta 1766)
Receiving objects: 100% (4291/4291), 58.48 MiB | 4.26 MiB/s, done.
Resolving deltas: 100% (1766/1766), done.
$ cd playn-samples/showcase
$ mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] PlayN Showcase Metaproject
[INFO] PlayN Showcase Core
[INFO] PlayN Showcase Android
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PlayN Showcase Metaproject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ playn-showcase ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PlayN Showcase Core 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ playn-showcase-core ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ playn-showcase-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 53 resources
[INFO] skip non existing resourceDirectory /Users/sean/dev/playn/playn-samples/showcase/core/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ playn-showcase-core ---
[INFO] Compiling 28 source files to /Users/sean/dev/playn/playn-samples/showcase/core/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ playn-showcase-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/sean/dev/playn/playn-samples/showcase/core/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ playn-showcase-core ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ playn-showcase-core ---
[INFO] No tests to run.
[INFO] Surefire report directory: /Users/sean/dev/playn/playn-samples/showcase/core/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PlayN Showcase Android 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ playn-showcase-android ---
[INFO] 
[INFO] --- android-maven-plugin:3.1.1:generate-sources (default-generate-sources) @ playn-showcase-android ---
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] /Developer-3.2.5/androidsdk/platform-tools/aapt [package, -m, -J, /Users/sean/dev/playn/playn-samples/showcase/android/target/generated-sources/r, -M, /Users/sean/dev/playn/playn-samples/showcase/android/AndroidManifest.xml, -S, /Users/sean/dev/playn/playn-samples/showcase/android/res, --auto-add-overlay, -I, /Developer-3.2.5/androidsdk/platforms/android-11/android.jar]
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ playn-showcase-android ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/sean/dev/playn/playn-samples/showcase/android/src/main/resources
[INFO] skip non existing resourceDirectory /Users/sean/dev/playn/playn-samples/showcase/android/target/generated-sources/extracted-dependencies/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ playn-showcase-android ---
[INFO] Compiling 2 source files to /Users/sean/dev/playn/playn-samples/showcase/android/target/classes
[INFO] 
[INFO] --- android-maven-plugin:3.1.1:proguard (default-proguard) @ playn-showcase-android ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ playn-showcase-android ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/sean/dev/playn/playn-samples/showcase/android/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3:testCompile (default-testCompile) @ playn-showcase-android ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.13:test (default-test) @ playn-showcase-android ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] PlayN Showcase Metaproject ........................ SUCCESS [0.289s]
[INFO] PlayN Showcase Core ............................... SUCCESS [1.784s]
[INFO] PlayN Showcase Android ............................ SUCCESS [1.125s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.034s
[INFO] Finished at: Mon Jan 14 21:48:18 EST 2013
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------

playn网站很愚蠢

mvn测试
只运行测试套件。相反,您应该运行
mvn install
,您将看到如下内容:

...
[INFO] Waiting for initial device list from the Android Debug Bridge
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully uninstalled playn.showcase.android from <DEVICENAME>
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully installed /home/wires/workdir/wordquiz-playn/playn-samples/showcase/android/target/playn-showcase-android-1.0-SNAPSHOT.apk to <DEVICENAME>
...
。。。
[信息]正在等待来自Android调试桥的初始设备列表
[信息]找到1台与Android调试桥连接的设备
[信息]未设置android.device参数,使用所有连接的设备
[信息]已从中成功卸载playn.showcase.android
[信息]找到1台与Android调试桥连接的设备
[信息]未设置android.device参数,使用所有连接的设备
[信息]已成功安装/home/wires/workdir/wordquick-playn/playn-samples/showcase/android/target/playn-showcase-android-1.0-SNAPSHOT.apk至
...
然后,您可以在手机上找到该应用程序,它被称为“Showcase”,并有一个圆形的绿色笑脸图标


您也可以从命令行启动应用程序,只需
cd-android
mvn-android:run
。请注意,这只运行您以前安装的应用程序,而不安装它。

playn站点很愚蠢

mvn测试
只运行测试套件。相反,您应该运行
mvn install
,您将看到如下内容:

...
[INFO] Waiting for initial device list from the Android Debug Bridge
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully uninstalled playn.showcase.android from <DEVICENAME>
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully installed /home/wires/workdir/wordquiz-playn/playn-samples/showcase/android/target/playn-showcase-android-1.0-SNAPSHOT.apk to <DEVICENAME>
...
。。。
[信息]正在等待来自Android调试桥的初始设备列表
[信息]找到1台与Android调试桥连接的设备
[信息]未设置android.device参数,使用所有连接的设备
[信息]已从中成功卸载playn.showcase.android
[信息]找到1台与Android调试桥连接的设备
[信息]未设置android.device参数,使用所有连接的设备
[信息]已成功安装/home/wires/workdir/wordquick-playn/playn-samples/showcase/android/target/playn-showcase-android-1.0-SNAPSHOT.apk至
...
然后,您可以在手机上找到该应用程序,它被称为“Showcase”,并有一个圆形的绿色笑脸图标


您也可以从命令行启动应用程序,只需
cd-android
mvn-android:run
。请注意,这只运行您以前安装的应用程序,而不安装它。

使用
-p
开关指定平台。在您的案例(Java)中,请说:

mvn测试-Pjava

如果要尝试
HTML
端口,请说:


mvn-Phtml集成测试

使用
-p
开关指定平台。在您的案例(Java)中,请说:

mvn测试-Pjava

如果要尝试
HTML
端口,请说:


mvn-Phtml集成测试

我正在本地运行Java版本。所有关于运行Java版本的引用都说要使用
mvn测试
。有趣的是,他们还说你必须使用
mvn-pandroidinstall
来运行Android版本。(很抱歉,我无法更新你的答案。我还没有足够的代表)我还发现
mvn test
只运行测试-我使用
mvn-Pjava集成测试来运行Java版本。我正在尝试在本地运行Java版本。所有关于运行Java版本的引用都说要使用
mvn测试
。有趣的是,他们还说你必须使用
mvn-pandroidinstall
来运行Android版本。(很抱歉,我无法对你的答案进行投票。我还没有足够的代表)我还发现
mvn test
只运行测试-我使用
mvn-Pjava集成测试来运行Java版本。