-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend behaviour for Maven classifiers and types #53
Extend behaviour for Maven classifiers and types #53
Conversation
Add test case with fixed version of plugin to demonstrate bug. Add test case with new version of plugin and expected success.
Travis build is a bit outdated and slightly dead :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks great! Nice handling of test artifacts. I'd like to see Travis happy with it before submit. Will look into that this week.
Awesome. |
Hi, All. Travis CI seems to be not happy for some other reasons still. Is there any update? |
I guess because CI script tries to setup JDK6 and fails, since it's not supported anymore. |
Hi @gemelen, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
@@ -0,0 +1,2 @@ | |||
> parent/compile | |||
> parent/Test/compile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test failed during the auto publishing, so I had to disable it - https://travis-ci.org/github/sbt/sbt-pom-reader/jobs/719975106
[info] [info] Compiling 1 Java source to /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/common/module1/target/scala-2.12/test-classes ...
[info] [info] Done compiling.
[info] [info] Compiling 1 Scala source and 1 Java source to /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/core/target/scala-2.12/test-classes ...
[info] [error] /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/core/src/test/java/net/gemelen/example/core/JavaCoreTest.java:3:1: cannot find symbol
[info] [error] symbol: class MarkerTest
[info] [error] location: package net.gemelen.example.annotation
[info] [error] import net.gemelen.example.annotation.MarkerTest;
[info] [error] /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/core/src/test/java/net/gemelen/example/core/JavaCoreTest.java:7:1: cannot find symbol
[info] [error] symbol: class MarkerTest
[info] [error] location: class net.gemelen.example.core.JavaCoreTest
[info] [error] @MarkerTest
[info] [error] (core / Test / compileIncremental) javac returned non-zero exit code
[info] [error] Total time: 1 s, completed Aug 21, 2020 4:22:27 PM
[error] x reactor-pom / can-handle-classifiers-and-types
Proposed changeset adds new behaviour in corner cases related to test artifacts for dependent modules.
Mostly it covers
test-jar
case more extensively than in previous attempts and translates such occurrences into Ivy's "test->test" configuration of module.Also, tests are provided to illustrate a bug and a successful solution (to some degree).
Minimalist test Maven project is based on Maven-side of Apache Spark build file.
Seems to cover #38 #37 and reiterates an idea from PR #14
Please review and comment, it'd be very nice to add this to plugin and replace Spark's fork with upstream (which is my current goal).