maven-central

Why am I getting “Received fatal alert: protocol_version” or “peer not authenticated” from Maven Central?

浪尽此生 提交于 2019-12-17 03:50:44
问题 I'm getting the below errors when connecting to Maven Central / https://repo1.maven.org after June 18th 2018. Received fatal alert: protocol_version or Received fatal alert: peer not authenticated 回答1: Solution 1: configure Java 7 It is need to enable TLS 1.2 protocol with Java property in the command line mvn -Dhttps.protocols=TLSv1.2 install install is just an example of a goal The same error for ant can be solved by this way java -Dhttps.protocols=TLSv1.2 -cp %ANT_HOME%/lib/ant-launcher

Why am I getting “Received fatal alert: protocol_version” or “peer not authenticated” from Maven Central?

爱⌒轻易说出口 提交于 2019-12-17 03:50:34
问题 I'm getting the below errors when connecting to Maven Central / https://repo1.maven.org after June 18th 2018. Received fatal alert: protocol_version or Received fatal alert: peer not authenticated 回答1: Solution 1: configure Java 7 It is need to enable TLS 1.2 protocol with Java property in the command line mvn -Dhttps.protocols=TLSv1.2 install install is just an example of a goal The same error for ant can be solved by this way java -Dhttps.protocols=TLSv1.2 -cp %ANT_HOME%/lib/ant-launcher

Installation and deployment of maven test-jar

拟墨画扇 提交于 2019-12-11 18:53:26
问题 I've discovered the wonderful test-jar facility in Maven: https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html But it may so happen that one project needs to use the test-jar of another project. From https://stackoverflow.com/a/6469256/421049 and experimentation, it would seem that using mvn install does not install the test-jar to the local ~/.m2/repository . So how does one project on my machine use the test jars of another project not in the same aggregate POM?

Why won't Groovy/Grape resolve artifacts from Maven Central?

笑着哭i 提交于 2019-12-10 17:56:17
问题 With a fresh download of Groovy 2.1.9, I create: // Test.Groovy @Grab('commons-io:commons-io:1.2') import org.apache.commons.io.CopyUtils println "Resolved!" Then I try running $ ./groovy-2.1.9/bin/groovy Test.groovy which fails with General error during conversion: Error grabbing Grapes -- [download failed: commons-io#commons-io;1.2!commons-io.jar] The artifact is listed in maven central, downloadable here For what it's worth, various local files are created in: ~/.groovy/grapes/commons-io

Gradle could not resolve otto library

牧云@^-^@ 提交于 2019-12-10 10:36:08
问题 I try to embed Otto library, which exists at the Maven Central. buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.6.3' } } apply plugin: 'android' dependencies { compile 'com.google.android.gms:play-services:4.0.30' compile 'com.android.support:support-v13:19.0.0' compile 'com.squareup:otto:1.3.4' } But I get the exception: A problem occurred configuring root project 'sample-project'. > Failed to notify project evaluation listener. >

WARNING 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing

允我心安 提交于 2019-12-08 11:48:02
问题 I successfully deployed my Maven artifact to the Central Repository. However, I saw this warning when I ran mvn release:perform : [INFO] Invoking perform goals in directory /Users/miguelvelez/Documents/Programming/Java/Projects/messages/target/checkout [INFO] Executing goals 'deploy'... [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance. [INFO] [WARNING] [INFO] [WARNING] Some problems were encountered while building the

A visual graph of all dependencies modelled by Maven Central

此生再无相见时 提交于 2019-12-07 11:14:35
问题 A previous question on Stack Overflow has shown that it is possible to plot a graph of all modules within a Maven managed project. I'm wondering if anyone has done and published an authoritative visual representation of all dependencies managed by Maven Central? 回答1: there exists a tool which could help achieving your goal, it is called Pom Explorer . You can find the website here : github.com/ltearno/pom-explorer It is a tool to work on a graph of maven projects. As a teaser i can say that

Gradle could not resolve otto library

会有一股神秘感。 提交于 2019-12-06 02:12:39
I try to embed Otto library, which exists at the Maven Central . buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.6.3' } } apply plugin: 'android' dependencies { compile 'com.google.android.gms:play-services:4.0.30' compile 'com.android.support:support-v13:19.0.0' compile 'com.squareup:otto:1.3.4' } But I get the exception: A problem occurred configuring root project 'sample-project'. > Failed to notify project evaluation listener. > Could not resolve all dependencies for configuration ':_DebugCompile'. > Could not find com.squareup:otto

Android AAR package for native library

北慕城南 提交于 2019-12-03 12:02:43
问题 I'm looking for a way to package a native library into an AAR package, so it would be possible to use it via dependencies declaration in gradle script. By native library I mean set of .cpp files or compiled static library and a set of header files. So, I mean that the app itself will call the library from native code, not from Java. In other words, the library needed to compile app's native code. So that it will be possible to easily manage dependencies of native code. Is it even possible? So

Android AAR package for native library

旧城冷巷雨未停 提交于 2019-12-03 01:29:20
I'm looking for a way to package a native library into an AAR package, so it would be possible to use it via dependencies declaration in gradle script. By native library I mean set of .cpp files or compiled static library and a set of header files. So, I mean that the app itself will call the library from native code, not from Java. In other words, the library needed to compile app's native code. So that it will be possible to easily manage dependencies of native code. Is it even possible? So far I could only find a lot of questions/examples of how to make an AAR of JNI native library with .so