-
Notifications
You must be signed in to change notification settings - Fork 443
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
Gradle build failed - can't access the Maven project object model (POM) artifacts #86
Comments
Tried the --offline option, after dropping the jars in various libraries. No luck. 00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] |
@ibm4mb Are you building kafka-monitor on a machine with network access to maven repository? It seems that gradle is not able to fetch the jar from maven repository. In order to understand whether this is kafka-monitor's issue or the network connection issue, can you try compile Apache Kafka using gradle? |
Thank you, so much for responding. I was able execute the Gradle build on on my windows personal computer that has network access. But wanted to execute an offline Gradle build on a Red Hat Enterprise Linux 7.x Virtual Machine that has no access to external network, and so I wrestled with offline Gradle build after downloading the JARs that the build process was complaining. When you have a couple of minutes, if you can kindly direct me to key instructions for offline Gradle build of the kafka-monitor that'd be fantastic. Thanks in advance. |
@ibm4mb Sure thing. I am happy to help :) We have tested kafka-monitor compilation and it should work with Thus it seems that you are observing these errors because you tried to build kafka-monitor as an offline Gradle build on a virtual machine. We haven't tested kafka-monitor in such an environment so I am not sure whether it is expected to work. But it seems to me that it should work in the same way as any other gradle-based project such as Apache Kafka. Therefore, I am wondering if you are able to build Apache Kafka or any other open source gradle-based project as offline Gradle build on that virtual machine. Can you try that? |
@lindong28, yes you're right. The problem is with executing a successful offline Gradle build, on a VM, because the build process tries to access the JARs locally (not sure which directory). So the process stops when it can't find the dependencies. First time around, the online Gradle build stopped when my machine couldn't access the 3rd party JARs such as the Maven repositories on the internet. Ideally it would be nice to have instructions to do an offline build for using a Kafka cluster within the intranet. Thank you |
I wonder if the URLs are hard-coded in the java programs that access
exec /opt/jdk1.8.0_131/bin/java -Dorg.gradle.appname=gradlew -classpath /opt/linkedin/kafka-monitor-master/gradle/wrapper/gradle-wrapper.jar org.gradle.wrapper.GradleWrapperMain jar
:compileJava FAILED
FAILURE: Build failed with an exception.
Could not resolve all dependencies for configuration ':compileClasspath'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
The text was updated successfully, but these errors were encountered: