Open perNyfelt opened 3 years ago
Nice write up!
However, I am a bit embarrassed by how difficult and complex this is in practice.
I've updated the command line tool to handle native sources via gradle, and fixed the mavenize command so it puts the pom file in the write place: https://github.com/bedatadriven/renjin/commit/f66ea2e3d49205c1c9f27a37039a15ea6126c3c0
Can you help me test the command line tool + maven plugin? Then we can simplify this description considerably!
I have done some testing. Cannot get it to quite work:
Renjin setup:
Test project:
mvn test
to check.FIX: Add a pluginRepositories section:
<pluginRepositories>
<pluginRepository>
<id>bedatadriven-public</id>
<url>https://nexus.bedatadriven.com/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
mvn test
[INFO] Scanning for projects... [INFO] [INFO] ----------------------< org.renjin.cran:jsonlite >---------------------- [INFO] Building jsonlite 1.7.2 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jsonlite --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/per/project/jsonlite-1.7.2/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jsonlite --- [INFO] No sources to compile [INFO] [INFO] --- renjin-maven-plugin:3.5-dev:gnur-compile (build-package) @ jsonlite --- EXECUTING: -print-file-name=plugin [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.716 s [INFO] Finished at: 2021-07-31T16:37:26+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.renjin:renjin-maven-plugin:3.5-dev:gnur-compile (build-package) on project jsonlite: Failed to unpack GCC Bridge Plugin: Cannot run program "gcc-4.7" (in directory "/tmp/1627742246699-0"): error=2, No such file or directory -> [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
ls /tmp/1627742246699-0 plugin.c
So to summarize:
(resolves #24)