By the way, a bit unrelated to the issue at hand - currently the Ivy version being used is 2.4.0-rc1 [1]. Using 2.4.0 instead might be a good idea since it’s been stable for more than a couple of years now.
[1] https://github.com/apache/ant-antlibs-common/blob/master/build.properties#L20 -Jaikiran On 31-May-2017, at 12:14 PM, J Pai <jai.forums2...@gmail.com> wrote: I had a brief look at this project’s repo and triggered these tasks locally. Of course, I won’t be able to test the whole upload process, but I was able to see what’s wrong. Essentially, the build targets are all fine and they are generating the necessary files, including the pom file. It’s just that the expected names and locations of these files to publish have a mismatch. There are 2 “projects” that need this fix. The “common” project and the “compress” project. Here are the changes that were required for me to get past it: ivy.xml of the compress project needs this change: diff --git a/ivy.xml b/ivy.xml index eb034ac..6c5e823 100644 --- a/ivy.xml +++ b/ivy.xml @@ -18,7 +18,7 @@ --> <ivy-module version="2.0"> - <info organisation="Apache Ant" + <info organisation="org.apache.ant" module="${artifact.name}" revision="${artifact.version}" publication="${artifact.publication.datetime}”> and then the upload.xml and the build.xml of the common project needs these changes: diff --git a/build.xml b/build.xml index f9785a1..745fd89 100644 --- a/build.xml +++ b/build.xml @@ -453,7 +453,7 @@ <target name="prepare-upload" depends="bin-dist"> <property name="upload.dir" - value="${build.javarepository}/org/apache/ant/${artifact.name}/${artifact.version}"/> + value="${build.javarepository}/org.apache.ant/${artifact.name}/${artifact.version}"/> <mkdir dir="${upload.dir}"/> <copy file="${jarname}" todir="${upload.dir}"/> <copy file="${target.pom}" todir="${upload.dir}"/> diff --git a/upload.xml b/upload.xml index 32a3a56..d4910e6 100644 --- a/upload.xml +++ b/upload.xml @@ -35,7 +35,7 @@ <ivy:retrieve settingsRef="upload"/> <ivy:deliver settingsRef="upload"/> <ivy:publish publishivy="false" - artifactspattern="${build.javarepository}/[organisation]/[module]/[artifact]/[revision]/[artifact]-[revision](-[classifier]).[ext]" + artifactspattern="${build.javarepository}/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" resolver="nexus" settingsRef="upload"/> </target> When I say get past, I mean be able to correctly find these files to publish via the build process. As noted I can’t test the complete upload process. -Jaikiran On 31-May-2017, at 12:06 AM, Stefan Bodewig <bode...@apache.org> wrote: Hi all its kind of obvious we haven't cut any releases of Antlibs for a long time. About three years ago the build process has been changed to use Ivy to retrieve dependencies and ever since then the release process has been broken. I've fixed it well enough to be able to cut a release candidate for the Compress Antlib but uploading artifacts has failed for me - I switched to a manual bundle upload to get things done. Below is what happens (before running this "ant prepare-upload" has been executed successfully), any help by anybody more familiar with Ivy is appreciated a lot. Cheers Stefan $ ls build/java-repository/org/apache/ant/ant-compress/1.5/ ant-compress-1.5-ivy.xml ant-compress-1.5-javadoc.jar.asc ant-compress-1.5-ivy.xml.asc ant-compress-1.5.pom ant-compress-1.5.jar ant-compress-1.5.pom.asc ant-compress-1.5.jar.asc ant-compress-1.5-sources.jar ant-compress-1.5-javadoc.jar ant-compress-1.5-sources.jar.asc $ ant upload -Dupload.user=bodewig -Dupload.password=... Buildfile: /devel/ASF/ant-antlibs-compress/build.xml setup-properties: setup: download-ivy: [echo] installing ivy... [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.4.0-rc1/ivy-2.4.0-rc1.jar [get] To: /devel/ASF/ant-antlibs-compress/ivy/ivy.jar [get] Not modified - so not downloaded install-ivy: -no-resolve: resolve: [ivy:resolve] :: Apache Ivy 2.4.0-rc1 - 20140315220245 :: http://ant.apache.org/ivy/ :: [ivy:resolve] :: loading settings :: url = jar:file:/devel/ASF/ant-antlibs-compress/ivy/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml [ivy:resolve] :: resolving dependencies :: Apache Ant#ant-compress;1.5 [ivy:resolve] confs: [default, test] [ivy:resolve] found org.apache.commons#commons-compress;1.14 in public [ivy:resolve] found org.tukaani#xz;1.6 in public [ivy:resolve] found org.brotli#dec;0.1.2 in public [ivy:resolve] found junit#junit;4.11 in public [ivy:resolve] found org.hamcrest#hamcrest-core;1.3 in public [ivy:resolve] :: resolution report :: resolve 155ms :: artifacts dl 8ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 3 | 0 | 0 | 0 || 3 | 0 | | test | 2 | 0 | 0 | 0 || 2 | 0 | --------------------------------------------------------------------- [ivy:retrieve] :: retrieving :: Apache Ant#ant-compress [sync] [ivy:retrieve] confs: [default] [ivy:retrieve] 0 artifacts copied, 3 already retrieved (0kB/4ms) [ivy:retrieve] :: retrieving :: Apache Ant#ant-compress [sync] [ivy:retrieve] confs: [test] [ivy:retrieve] 0 artifacts copied, 2 already retrieved (0kB/3ms) compile: check-for-NOTICE: antlib: checksum-target-jar: m2-init: m2-copy-pom: m2-make-pom: m2-pom: ivy-init: copy-ivy.xml: make-ivy.xml: ivy.xml: javadoc_check: javadoc: bin-dist: check-contributors: style-contributors: check-changes: style-changes: create-readable-documents: prepare-upload: check-sigs: perform-nexus-upload: [ivy:configure] :: loading settings :: file = /devel/ASF/ant-antlibs-compress/common/ivysettings-nexus.xml [ivy:resolve] :: resolving dependencies :: Apache Ant#ant-compress;1.5 [ivy:resolve] confs: [default, test] [ivy:resolve] found org.apache.commons#commons-compress;1.14 in public [ivy:resolve] found org.tukaani#xz;1.6 in public [ivy:resolve] found org.brotli#dec;0.1.2 in public [ivy:resolve] found junit#junit;4.11 in public [ivy:resolve] found org.hamcrest#hamcrest-core;1.3 in public [ivy:resolve] :: resolution report :: resolve 72ms :: artifacts dl 5ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 3 | 0 | 0 | 0 || 3 | 0 | | test | 2 | 0 | 0 | 0 || 2 | 0 | --------------------------------------------------------------------- [ivy:resolve] [ivy:resolve] :: problems summary :: [ivy:resolve] :::: ERRORS [ivy:resolve] unknown resolver main [ivy:resolve] unknown resolver main [ivy:resolve] unknown resolver main [ivy:resolve] unknown resolver main [ivy:resolve] unknown resolver main [ivy:resolve] [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS [ivy:retrieve] :: retrieving :: Apache Ant#ant-compress [ivy:retrieve] confs: [default, test] [ivy:retrieve] 0 artifacts copied, 5 already retrieved (0kB/5ms) [ivy:deliver] :: delivering :: Apache Ant#ant-compress;1.5 :: 1.5 :: integration :: Tue May 30 20:32:01 CEST 2017 [ivy:deliver] delivering ivy file to /devel/ASF/ant-antlibs-compress/distrib/ivys/ivy-1.5.xml [ivy:publish] :: publishing :: Apache Ant#ant-compress BUILD FAILED /devel/ASF/ant-antlibs-compress/common/upload.xml:40: impossible to publish artifacts for Apache Ant#ant-compress;1.5: java.io.IOException: missing artifact Apache Ant#ant-compress;1.5!ant-compress.pom at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:225) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:172) at org.apache.ivy.Ivy.publish(Ivy.java:621) at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311) at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:857) at org.apache.tools.ant.Main.startAnt(Main.java:236) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113) Total time: 1 second --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org