Maven says it can't find MasterToSlaveFileCallable

33 views
Skip to first unread message

Adam Chevalier

unread,
Nov 28, 2016, 7:58:47 PM11/28/16
to Jenkins Developers
I'm working on getting this plugin ready for hosting and I've had some problems after updating the parent pom version to 2.6

The first two rounds of compilation errors were resolved by updating some dependencies, but then I had to replace a use of FileCallable<T> in the plugin. I determined that MasterToSlaveFileCallable was the best fit for the intent. However, maven is telling me it can't find that class. This doesn't make sense to me, since it's in the core Jenkins package, which I have listed as a dependency.

Thanks!

Jesse Glick

unread,
Nov 29, 2016, 9:29:35 AM11/29/16
to Jenkins Dev
On Mon, Nov 28, 2016 at 7:58 PM, Adam Chevalier
<chevali...@gmail.com> wrote:
> I determined that MasterToSlaveFileCallable was the best fit for the
> intent. However, maven is telling me it can't find that class. This doesn't
> make sense to me, since it's in the core Jenkins package, which I have
> listed as a dependency.

Uh,

diff --git a/src/main/java/testrail/testrail/JunitResults/JUnitResults.java
b/src/main/java/testrail/testrail/JunitResults/JUnitResults.java
index c35cd65..5ee59ea 100644
--- a/src/main/java/testrail/testrail/JunitResults/JUnitResults.java
+++ b/src/main/java/testrail/testrail/JunitResults/JUnitResults.java
@@ -31,6 +31,7 @@ import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
+import jenkins.MasterToSlaveFileCallable;

/**
* Created by Drew on 3/24/2014.

works.

BTW a bunch of stuff in your POM is extraneous and should be deleted,
but especially the explicit dep on `jenkins-test-harness`.

Adam Chevalier

unread,
Nov 29, 2016, 9:02:58 PM11/29/16
to jenkin...@googlegroups.com
I've never had to directly import a class like that before, weird.

Thanks for your help, especially the extra bit about the pom.
I suspected that was the case, but I'm really new to Jenkins
plugin development, and i'm pretty rusty on Java. So it's 
difficult for me to tell what is actually being used.



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/iYQSZ08t5pk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1QXvagRCraWffTzeQmnfe7zdkjeE_sXyFSpMS%2Byuu67A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages