Closed robertpanzer closed 5 years ago
FYI @robertpanzer try to get a fix released this week
Even with 1.1.6 it still seems to write additional content into the generated pom.xml. On Travis I get a pom that starts like this:
Picked up _JAVA_OPTIONS: -Xmx2048m -Xms512m
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>rubygems</groupId>
...
@mkristian Do you already have an idea what could have gone wrong? Or is there something that I could look at?
@robertpanzer I always think during the weekend I will find time for these things but I do not. so first a big sorry for being so slow in responding. things are probably not so bad, under the hood an ant task is used and error stream can be controlled to some extend: https://github.com/torquebox/jruby-maven-plugins/blob/master/ruby-tools/src/main/java/de/saumya/mojo/ruby/script/AntLauncher.java
testing is a different thing - the first report of yours I was able to reproduce locally not sure about the travis error you see.
No worries, I know this feeling all too well! :D If the jruby-maven-plugin would be working again, there would indeed be no point in using gradle for this task. This issue just prevents us from testing AsciidoctorJ against the upstream version of Asciidoctor.
If there's any way how I could help out, just let me know.
@robertpanzer what would I need to do to trigger the travis build ? a PR from master using a snapshot for the maven-plugin ?
If you create a PR against AsciidoctorJ it should run test upstream test against Java 11, and only with Java 11. The version of the jruby-maven-plugin is configured in https://github.com/asciidoctor/asciidoctorj/blob/master/asciidoctor-gem-installer.pom. Travis will first build against the last released version. When that build has passed, it will run the script https://github.com/asciidoctor/asciidoctorj/blob/master/test-asciidoctor-upstream.sh that tries to test against the latest dev version of asciidoctor, i.e. 2.0.0-dev. The test itself is expected to fail due to some incompatible changes, but currently it doesn't accept the pom generated by the ruby-maven-plugin due to the additional content.
So to test it yourself on Travis, just create a PR for AsciidoctorJ and check the Java11 build on Travis.
@robertpanzer this looks like it went further and created a working pom: https://travis-ci.org/asciidoctor/asciidoctorj/jobs/498048587 if this is the case I will clean up the patch and release the plugin and finalize the PR
Thanks! That's fantastic. The build failed now, but these are exactly the errors that we want to catch in with the upstream build. It would be great if you could make a new release and finalize the PR.
Thanks a lot again!
there's some snapshots being pushed, if it was done on a dirty branch we could try looking into it as well
done
To reproduce create an empty directory and add this file
pom.xml
:Then create this file
test.sh
:When running this on Java 11 (and I guess this started from Java 9), the pom.xml that is installed into the local maven cache starts with the Java warning for illegal access:
The Warnings at the beginning of the file make it unusable.