我有一个自定义程序包和自定义安装程序工具。该工具内部使用Ivy进行依赖项管理并上传到Nexus。问题是我无法发布,并且教程仅与Ant有关。如何单独使用Ivy进行发布?
我的工作文件夹中有三个文件
然后我跑
$ java -jar ivy.jar -settings ivysettings.xml -publish nexus -publishpattern "[artifact]-[type].[ext]" -makepom pom.xml
<ivy-module version="2.0">
<info organisation="com.company" module="package" revision="1.0"/>
<publications>
<artifact ext="zip" type="bundle"/>
</publications>
</ivy-module>
<ivysettings>
<settings defaultResolver="workbench"/>
<resolvers>
<ibiblio name="nexus" m2compatible="true" usepoms="true" root="https://mycompany.com/nexus/content/repositories/snapshots"/>
</resolvers>
</ivysettings>
publish
步骤永远不会开始。
:: loading settings :: file = ivysettings.xml
:: resolving dependencies :: com.company#package;1.0
confs: [default]
:: resolution report :: resolve 34ms :: artifacts dl 0ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 0 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------
为什么它甚至从未尝试发布?