在Gradle 2.1之前,我可以通过使用allProjects闭包将插件应用于所有项目(当然,通过prepreisly解析jar):
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1"
}
}
allprojects {
apply plugin: "com.jfrog.artifactory"
}
Run Code Online (Sandbox Code Playgroud)
使用新的发布机制,看起来plugins封闭不能在内部使用allprojects:
allprojects {
plugins {
id "com.jfrog.artifactory" version "3.0.1"
}
}
Run Code Online (Sandbox Code Playgroud)
失败了:
"无法在根项目中找到参数[build_xxxx_run_closure1_closure4 @ yyyyy]的方法插件()
使用plugins闭包的规则是什么?该插件仅适用于当前项目吗?如果是这样,如何在不重复plugins每个构建内部的闭包的情况下将其应用于所有项目?
是注册表的JFrog产品组合枢轴或者是某组的附加功能?无论哪种方式,该功能都很有趣,但是很高兴了解细节。
artifactory docker kubernetes docker-registry jfrog-container-registry
我开发了一个带有spring和vaadin的java web应用程序应用程序,在这个应用程序中,我使用了一些插件,如easyuploads和wizards-for-vaadin.然后我在我的pom.xml中添加了以下配置.
<dependency>
<groupId>org.vaadin.addon</groupId>
<artifactId>easyuploads</artifactId>
<version>7.0.1</version>
</dependency>
<dependency>
<groupId>org.vaadin.addons</groupId>
<artifactId>wizards-for-vaadin</artifactId>
<version>1.1.0</version>
</dependency>
<!-- Add-On Repository -->
<repositories>
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>
</repositories>
Run Code Online (Sandbox Code Playgroud)
现在我正在安装artifactory(第一次)像存储库管理工具,我想为vaadin-addons添加一个远程存储库.但这不起作用:

我该如何解决?这是正确的方法吗?
我想使用Spring Framework的动态语言支持.
在XML我只用了lang命名空间,但我想使用Java配置(即@Configuration类)只.
我可以想象我可以通过初始化org.springframework.scripting.configpackage,inc中的所有地狱来做到这一点.他们创造的所有BeanPostProcessors,Handlers,Parsers和FactoryBeans,但我真的不想去那里.
还有其他方法吗?如果没有,那么从Groovy脚本创建可重新加载的bean所需的最小配置是什么?
有人可以解释一下 JFrog Artifactory 中这 3 种类型的本地、远程和虚拟存储库是什么。,我没有从 JFrog Artifactory 文档中清楚地了解它。
https://www.jfrog.com/confluence/display/RTF/Configuring+Repositories
我有下一个配置:
lazy val mainProject = Project(
id = "project-helper",
base = file("."),
settings = Project.defaultSettings ++ Seq(
name := "my-first-project",
version := "0.1-SNAPSHOT",
scalaVersion := "2.10.2",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
publishMavenStyle := false,
pomExtra := pomXml,
publishArtifact in Test := false,
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases",
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % "2.10.3",
"org.scalamacros" % "quasiquotes_2.10.3" % "2.0.0-M3"
),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.0.0-M3" cross CrossVersion.full)
)
)
Run Code Online (Sandbox Code Playgroud)
我想把它发布成一个bintray.
我这样做publish但是我得到了错误:
java.lang.RuntimeException: Repository for publishing is not …Run Code Online (Sandbox Code Playgroud) 我有一个Groovy项目,我正在尝试使用Gradle构建它.首先,我想要一个package通过根据其依赖项编译JAR来创建JAR 的任务.然后我需要为该JAR生成Maven POM并将JAR/POM发布到内部Artifactory仓库.的build.gradle:
apply plugin: "groovy"
apply plugin: "maven-publish"
repositories {
maven {
name "artifactory01"
url "http://myartifactory/artifactory/libs-release"
}
}
dependencies {
compile "long list starts here"
}
// Should compile up myapp-<version>.jar
jar {
}
// Should publish myapp-<version>.jar and its (generated) POM to our in-house Maven/Artifactory repo.
publishing {
publications {
myPublication(MavenPublication) {
from components.java
artifact sourceJar {
classifier "source"
}
pom.withXml {
// ???
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = …Run Code Online (Sandbox Code Playgroud) 我正在尝试将我的库的新版本上传到Bintray,但是我收到了错误.
我做的一个更改是向我的Javadoc添加自定义属性.例如:
/**
* The method does something.
*
* @param myParameter This is my parameter
* @see #anotherMethod(int)
* @attr ref R.styleable#MyLibrary_anAttribute
*/
Run Code Online (Sandbox Code Playgroud)
我添加的自定义属性标记是@attr ref在生成Javadoc HTML时显示相关的XML属性(如在Android Developer文档中).我在IDE(Android Studio)中将其添加为自定义标记,但在上传到Bintray时会导致错误.此外,我正在使用novoda bintray插件 - 这是我的一部分build.gradle.
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
...
publish {
...
}
Run Code Online (Sandbox Code Playgroud)
所以当我在终端中运行以下命令时:
gradlew bintrayUpload -PbintrayUser=me -PbintrayKey=key -PdryRun=false
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
:mylibrary:compileDebugJavaWithJavac UP-TO-DATE
:mylibrary:mavenAndroidJavadocs
C:\Users\...\ALibraryFile.java:216: error: unknown tag: attr
* @attr ref R.styleable#MyLibrary_anAttribute
...
13 errors
:mylibrary:mavenAndroidJavadocs FAILED
FAILURE: Build failed with an exception.
* What …Run Code Online (Sandbox Code Playgroud) 我是Artifactory的新手.目前我正在开发一个项目来列出存储库中的所有工件.
Artifactory版本:4.1.3 Pro(关闭证书验证)
curl -u uname:password -X POST -k https://artifactory.xxxx.com/artifactory/api/search/aql -d "items.find({"repo":"war"}).include("name","repo","path","size").sort({"$desc":["size"]}).limit(10)"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /artifactory/api/search/aql was not found on this server.</p>
<hr>
<address>Apache/2.2.31 (Amazon) Server at artifactory.xxxx.com Port 443</address>
</body></html>
Run Code Online (Sandbox Code Playgroud)
这是一个错误(错误的请求).尝试列出以下repos war,war-dev,war-release,webapp,webapp-dev中的工件(从Artifactory数据库获取repos列表和http请求).
试图匿名列出使用REST调用的工件,但是没有登录 $ARTIFACTORY_HOME/logs/request_trace.log $ARTIFACTORY_HOME/logs/request.log
从artdb(Artifactory数据库)和artifactory url获取repos列表.列出的回购不同于一个.哪一个是正确的?
列出了这么多的回购
mysql> select distinct(repo) from nodes;
| war |
| war-dev |
| war-release |
https://artifactory.xxxx.com/artifactory/repo/
webapp/
webapp-dev/
Run Code Online (Sandbox Code Playgroud)
有人可以帮助找出repo中的工件列表.谢谢!
利弊!看起来像基本问题,但我找不到我要找的东西.
我有Equinox并希望在其中运行Spring(在Servlet中引导).我不能使用dm-server,也不能使用http-bridge,只是简单的独立Equinox.另一方面,使用plugin.xml http注册表servlet扩展不够好,因为我需要完全成熟的web.xml才能引导Spring.
我应该去哪里挖?
谢谢!巴鲁克.
我可以使用 .push 将 nuget 包推送到 Artifactory dotnet nuget push %WORKSPACE%\NuGetPackages\*.nupkg --source <url> --api-key <username>:<encrypted password>。但是,我想使用 API 密钥或访问令牌进行推送,但尝试这样做时我收到403 Forbidden 。有可能让这个工作吗?
专业人士,我需要在以下文档中将'B'标签转换为'X'标签:
<a>
<B marker="true">
<c>
<B marker="true">
<d>
<B marker="true">
</B>
<d>
</B>
</c>
</B>
</a>
Run Code Online (Sandbox Code Playgroud)
注意重复出现的'B',它可以出现在动态XML的任何深度.这是我做的:
<xsl:template match="//*[@marker='true']">
<X>
<xsl:copy-of select="./node()"/>
</X>
</xsl:template>
Run Code Online (Sandbox Code Playgroud)
它适用于最顶级的'B'标签,但忽略了所有嵌套标签.
我想我知道问题是什么 - 'copy-of'只是刷新最顶级'B'标签的内容,而不评估它.我可以做些什么来"复制"重新评估我的模板?
谢谢!巴鲁克.