- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序使用 JDI 调试器类,这些类位于 tools.jar
中。我希望使用 Maven
将应用程序打包为独立的(即创建 foo-with-dependencies.jar
)。
但是,tools.jar
不在 Maven Central 上。
热门solution Stack Overflow 上无效,因为 <scope>system</scope>
防止tools.jar
放入foo-with-dependencies.jar
.
Maven 中心缺少 tools.jar 是否有任何许可原因?可以上传tools.jar
上Maven Central
?
最佳答案
Only releases can be uploaded to the central repository, that means files that won't change and that only depend on other files already released and available in the repository.
There are some requirements for the minimal information in the POMs that are in the central repository. The updated list of requirements can be found here.
嗯,你的案例位于 guide central repository upload 之上。不。这不符合基本要求。
如果您是所有者或许可证允许您这样做,您可以将 tools.jar
上传到 Maven Central。
根据Maven Apache您可以通过以下方式将 tools.jar
添加到 pom.xml
中:
<profiles>
<profile>
<id>default-tools.jar</id>
<activation>
<property>
<name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.4.2</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
这仍然意味着 tools.jar
在 Maven Central 中不可用,而且看起来永远不会在那里。
关于java - 我可以将tools.jar上传到Maven Central吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39868620/
由于 JCenter 将于 2021 年 5 月 1 日关闭。发布闭源库还有哪些其他选择?。我在网上搜索过,但无法获得任何可靠的最新信息。 我的公司可以通过哪些选项通过 Maven Central 提
我尝试使用gradle将一些 Artifact 上传到Maven Central(well actually to the sonatyp repository)。 我按照this nice arti
我想发布我的 OSS 库,以便在 jcenter 和 maven-central 存储库中可用。我有 2 个与此主题相关的问题: 我应该自己发布到两个存储库,还是它们之间有一些自动同步,所以只发布到其
我目前正在为我的团队开发多个项目管理应用程序,并将它们作为 JAR 分发,目前还可以。但我被要求制作一个中央应用程序来启动它们。 基本上是一个小应用程序,我已经制作的每个应用程序都有一个按钮,当您单击
我是 Java 8 java.time JSP tags 的维护者图书馆。我自己出版图书馆的经验很少。为了发布这个库,我做了一些研究并以 gradle 构建脚本 that you can check
更新:请参阅followup question 我有一个 Java 库,其构建过程完全用 Ant 编写。项目的沙箱(源目录,我在其中编辑代码)是 R:\jeffy\programming\sandb
,在Gradle仍然无法正常工作的情况下,将aar文件发布到Maven Central: 好的,让我们重复我为“使用Gradle将aar文件发布到Maven Central”(我主要遵循此guide)
随着OpenCL 2.0的引入,OpenCL似乎具有Grand Central Dispatch(GCD)的许多功能,例如CLang / Apple样式块和队列。看一下它们各自的功能集,我想知道Ope
我正在更新 javassist 库的版本,并注意到 maven 存储库站点上的最新版本 ( 3.22.0-CR1 ) 具有红色背景,但通过快速搜索,我无法找出原因。 谁能解释一下那个红色背景是什么意思
我正在使用 docker compose image 将 jbpm 与 postgresql 连接起来。 我通过更改安全域部分的登录模块,通过数据库用户完成了业务中心的身份验证。 数据库用户成功登录后
我正在寻找一些简单的异步变通方法,例如GCD,但在QT中,是否有任何这种方法或仅线程和工作器? 最佳答案 简而言之:Qt中有什么实现基于任务的并发? 该功能称为Qt Concurrent。我记得,只要
我写了一个名为LibA的aar库,它取决于我的aar库LibB和LibC。 LibB和LibC已经上传到maven中,但是我的LibA目前无法通过相同的Gradle任务进行构建,因为我必须等待大约20
我正在尝试创 build 备组,以最终使用该特定设备组创建一个作业,以向其中的所有设备发送重新启动命令。我使用 IoT Central API REST 来实现此目的,其 URL 如下所示(这就是其
在其他数据(特别是字符串)中,我从JSON中提取了一个URL,并将其保存在数组“jsonArray”中。我需要将该URL(用于与登录用户有关的图像)转换为可以在我的imageview“imagePro
我写了this project并且已经在我的其他库中使用它。 但是,我发现有些不对劲。也就是说,在该库的每个用户中,我创建一个实用程序类,其唯一作用是提供一个或多个 MessageBundle。这很糟
我作为开发人员被添加到 Maven 项目中,现在我需要发布一个版本。我已将 nexus-staging-maven-plugin 添加到 pom.xml 文件。 org.sonatype.plu
基本上,我想在运行依赖于上传图像的其他功能之前上传一些图像。我想我可能对 GCD 是什么/线程如何工作有误解。我希望功能 1 和 2 在上传图像后发生。它们执行起来都很快,但严重依赖上传图像才能完成。
我一直在看this question尝试解决我的问题 here . tl;dr 是我想使用 GCD 让我在执行某些任务时显示“等待”屏幕,然后在完成后隐藏屏幕。现在,我有 - (void) doStu
我有一个包含多个模块的项目。我大部分都使用 pom 打包,当然还有一些 jar 模块。现在,我需要在 Maven Central 上进行部署。我关注了this tutorial . 当我运行建议的 s
DIV "central"居中,ok!,好!但是:为什么内容不?请帮忙。 谢谢 Center Content html,body{background:#aa0000;color:#fae803;}
我是一名优秀的程序员,十分优秀!