从maven central下载javax.media.jai_core:1.1.3时出错.
错误是:
download failed: javax.media#jai_core;1.1.3!jai_core.jar
Run Code Online (Sandbox Code Playgroud)
使用play编译器.
我最近jcenter()从项目级构建 Gradle 中删除了存储库。
从那时起,Koin(版本:2.2.2)开始给我以下编译时错误:
Could not find org.koin:koin-core:2.2.2
我想在我的Maven项目中使用Processing libs,但我找不到任何依赖项的工件.我在哪里可以得到它?
这对我在 Java 8 下构建来说效果很好。现在在 Java 17.01 下,当我执行 mvn 部署时,我得到了这个。
mvn install 工作正常。我尝试了 3.6.3 和 3.8.4 并将(我认为)我的所有插件更新到最新版本。
有任何想法吗?
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) on project persism: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:de
ploy failed: An API incompatibility was encountered while executing org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy: java.lang.ExceptionInInitializerError: null
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @149f5761
[ERROR] -> [Help 1] …Run Code Online (Sandbox Code Playgroud) 背景:我们公司有几个Play!应用程序,它们的测试在我们的内部CI中运行.每个Play应用程序都通过http检索各种公共存储库的依赖关系.这不是理想的(它绕过我们的内部Nexus存储库)但可以忍受.现在我们正在添加额外的CI容量,并且不希望允许新计算机能够访问防火墙外部.
在示例Play应用程序中,以下配置project/Build.scala不足以阻止构建进入repo.typesafe.com和repo1.maven.org:
sbtResolver := "Typesafe (proxy)" at "http://repo-1/nexus/content/repositories/typesafe-releases/"
resolvers := Seq(
"Maven Central (proxy)" at "http://repo-1/nexus/content/repositories/central/",
"Typesafe (proxy)" at "http://repo-1/nexus/content/repositories/typesafe-releases/",
// some more internal Nexus repositories
)
externalResolvers := Seq.empty
Run Code Online (Sandbox Code Playgroud)
(repo-1是我们的内部Nexus主机,代理Maven Central,Typesafe和其他存储库)
当我无论是从中央Maven的(如番石榴)或从类型安全的存储库(如播放邮件插件)中删除一些依赖,并运行play compile,我从仍被从检索到的依赖性输出看到的repo.typesafe.com和repo1.maven.org:
[info] downloading http://repo.typesafe.com/typesafe/releases/com/typesafe/play-plugins-mailer_2.9.1/2.0.2/play-plugins-mailer_2.9.1-2.0.2.jar ...
[info] [SUCCESSFUL ] com.typesafe#play-plugins-mailer_2.9.1;2.0.2!play-plugins-mailer_2.9.1.jar (981ms)
[info] downloading http://repo1.maven.org/maven2/com/google/guava/guava/12.0/guava-12.0.jar ...
[info] [SUCCESSFUL ] com.google.guava#guava;12.0!guava.jar (1422ms)
Run Code Online (Sandbox Code Playgroud)
为了解决这个问题,我们还提供了一些稍微旧版本的东西:Scala 2.9.1,Play 2.0.1,sbt 0.11.3.
如何强制Play应用程序专门从内部存储库中检索依赖项?
我为客户创建了一个Android库,它存储在私有存储库中(可以是 Github 或 Bitbucket,没关系)。现在这个库应该发布到mavenCentral以供其他程序员将来使用。还有两个重要的要求:
我怎样才能做到这一点?我找到了很多 mavenCentral 的教程,但它们都只针对公共仓库。
在我的国家与Gradle合作时,从maven central下载jar是一项非常及时的工作.
我想将mavenCentral改为maven-nexus:
这意味着每当我使用mavenCentral时它总是指向oschina
------编辑------
我有很多mavenCentral项目,所以我不想改变每个文件.
现在在新的脚本中我使用maven {url ...}任何简单的方法?
任何人都可以发出声音吗?
谢谢!
已经几个小时了,我一直在尝试在 Maven Central 上发布/发布签名的工件。
最终发布后,我没有通过“签名验证”测试。经过一番研究,我发现即使我的档案有签名,我的出版物也没有签名。
所以在添加这一行后:sign publishing.publications.release
签署出版物我在执行以下任务时收到此错误publishReleasePublicationToMavenCentralRepository::
无法执行签名任务 ':xxx:signReleasePublication',因为它没有配置签名者
Gradle 包装器:7.1.1。
build.gradle(库级别):
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'signing'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
google()
jcenter()
maven { url "https://jitpack.io" }
}
android {
compileSdkVersion 30
buildToolsVersion "29.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 9
versionName "1.1.4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 …Run Code Online (Sandbox Code Playgroud) 我正在查看中央maven存储库并查看a net.java.dev.jna和com.sun.jnagroupId for JNA.JNA的github,使用com.sun.jna路径作为源代码中的目录,表明4.1已作为注释的一部分被推入存储库,但我看到的net.java.dev.jna是4.1和com.sun.jna3.0.
显然,我想使用JNA,但感到困惑.这个套餐发生了什么事?
我正在尝试将我的 Java 库发布到 Maven Central。其中一部分涉及使用signinggradle 插件对工件进行签名。我需要在不使用密钥环文件作为文档的情况下对其进行签名,因为我无法提供对密钥环文件的 CI 安全访问。
但是,当我这样做时,我的构建失败了:
FAILURE: Build failed with an exception.
* What went wrong:
Could not evaluate onlyIf predicate for task ':signArchives'.
> Could not read PGP secret key
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?我认为这与我的GPG_SIGNING_KEY. 我使用了响应中的完整私钥gpg --list-secret-keys --keyid-format LONG。这不正确吗?
我的 build.gradle
apply plugin: 'java'
apply plugin: 'signing'
apply plugin: 'maven'
apply from: 'publish.gradle'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
testCompile 'junit:junit:4.11'
} …Run Code Online (Sandbox Code Playgroud)