Cannot get HelloMaven example running

Hi.
I am trying to use moe from Maven. I have found the Hello Maven example, but when I:

git clone https://github.com/multi-os-engine/moe-samples-java.git
cd moe-samples-java/HelloMaven
mvn clean install

it fails with followng message:

dependencies could not be resolved: Could not find artifact org.multi-os-engine:moe-maven:jar:1.3.1 in central (https://repo.maven.apache.org/maven2)

This error can be solved by adding plugin repository into the pom file:

--- a/ios/pom.xml
+++ b/ios/pom.xml
@@ -17,6 +17,13 @@
         <moe.version>1.3.1</moe.version>
     </properties>
 
+    <pluginRepositories>
+        <pluginRepository>
+            <id>jcentral</id>
+            <url>https://dl.bintray.com/multi-os-engine/maven</url>
+        </pluginRepository>
+    </pluginRepositories>
+

with that fix the example gets further, but still fails when I try cd ios; mvn moe:launch -X the error is not really printed, this is the last few lines from the output:

[INFO] Injars: -Pmoe.proguard.injars=/prj/moe-samples-java/HelloMaven/ios/target/classes:/prj.m2/repository/org/multi-os-engine/common/1.0.0-SNAPSHOT/common-1.0.0-SNAPSHOT.jar
[INFO] nullUsing already downloaded SDK: /prj/.moe/moe-sdk-1.3.6
[INFO] :moeMainProGuard UP-TO-DATE
[INFO] :moeMainRetrolambda UP-TO-DATE
[INFO] :moeGenerateUIObjCInterfaces FAILED
[INFO] 
[INFO] BUILD FAILED

Any advice welcomed.
-ds

Hi!

Please check your gradle moeGenerateUIObjectInterfaces task log file.
Log location is …/HelloMaven/ios/build/moe/main/ui-headers/GenerateUIHeaders.log

Best Regards,
Roland

If I execute:

$ find build/moe/ | grep log$ | xargs cat

I can see the failure. I have some problem with credentials - but why are the credentials needed at all? I only want to run in a simulator, I don’t have any real device attached…

Few suggestions from my experience:

  • can the sample pom.xml be enhanced to have the pluginRepository definition? (if that is the right way) Otherwise the maven approach doesn’t seem to work for me at all.
  • shouldn’t the Maven plugin print out the failed log file automatically? It is tedious to always seek for *.log files in build directory
  • shouldn’t the moe:launch command work without credentials if I have no iOS device attached?

Thanks for showing me where to find the log files and possibly considering some of my ideas.

-ds