Problems Releaseing Antlibs

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problems Releaseing Antlibs

Stefan Bodewig
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Gintautas Grigelionis
Hi,

ivy:makepom doesn't do its job?

> missing artifact Apache Ant#ant-compress;1.5!ant-compress.pom

Gintas

2017-05-30 20:36 GMT+02:00 Stefan Bodewig <[hidden email]>:

> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Jaikiran Pai
In reply to this post by Stefan Bodewig
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 <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Jaikiran Pai
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 <[hidden email]> 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 <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Stefan Bodewig
In reply to this post by Jaikiran Pai
On 2017-05-31, J Pai 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.

Great!

> 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:

Many thanks. I'll fix common first (and update Ivy as I go, then fix
Compress and do a test deploy that I can easily drop again. The same fix
required for Compress is probably needed for all other antlibs as well,
I'll take care of that.

The Antlibs are hibernating and so the build infrastructure hasn't been
kept up-to-date.

Thanks a lot

       Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Stefan Bodewig
On 2017-05-31, Stefan Bodewig wrote:

> I'll fix common first (and update Ivy as I go, then fix Compress and
> do a test deploy that I can easily drop again.

/devel/ASF/ant-antlibs-compress/common/upload.xml:40: impossible to publish artifacts for org.apache.ant#ant-compress;1.5.1: java.io.IOException: PUT operation to URL https://repository.apache.org/service/local/staging/deploy/maven2/org.apache.ant/ant-compress/ant-compress/1.5.1/ant-compress-1.5.1.pom failed with status code 400: Bad Request

I'm afraid Nexus doesn't like the organization. I just had a look at
Ant's own ivy.xml[1]. It uses organisation="org/apache" (slashes rather
than dots). I'll play with some variations later.

Stefan

[1] https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob;f=release/ivy.xml

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Gintautas Grigelionis
Use different pattern [orgPath] rather than [organisation]

Gintas

http://ant.apache.org/ivy/history/latest-milestone/concept.html

2017-05-31 11:36 GMT+02:00 Stefan Bodewig <[hidden email]>:

> On 2017-05-31, Stefan Bodewig wrote:
>
> > I'll fix common first (and update Ivy as I go, then fix Compress and
> > do a test deploy that I can easily drop again.
>
> /devel/ASF/ant-antlibs-compress/common/upload.xml:40: impossible to
> publish artifacts for org.apache.ant#ant-compress;1.5.1:
> java.io.IOException: PUT operation to URL https://repository.apache.org/
> service/local/staging/deploy/maven2/org.apache.ant/ant-
> compress/ant-compress/1.5.1/ant-compress-1.5.1.pom failed with status
> code 400: Bad Request
>
> I'm afraid Nexus doesn't like the organization. I just had a look at
> Ant's own ivy.xml[1]. It uses organisation="org/apache" (slashes rather
> than dots). I'll play with some variations later.
>
> Stefan
>
> [1] https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob;f=
> release/ivy.xml
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Jaikiran Pai
These are the changes (which incorporates Gintas suggestion) that might help get us past the upload issue.

Change to ivy.xml of compress project:

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}”>



Change to common project (against the latest commit in upstream):

diff --git a/build.xml b/build.xml
index 745fd89..f9785a1 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 d4910e6..a0165dc 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]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
+                 artifactspattern="${build.javarepository}/[orgPath]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
                  resolver="nexus"
                  settingsRef="upload"/>
   </target>


Let us know if this doesn’t help.

-Jaikiran

On 31-May-2017, at 4:41 PM, Gintautas Grigelionis <[hidden email]> wrote:

Use different pattern [orgPath] rather than [organisation]

Gintas

http://ant.apache.org/ivy/history/latest-milestone/concept.html

2017-05-31 11:36 GMT+02:00 Stefan Bodewig <[hidden email]>:

> On 2017-05-31, Stefan Bodewig wrote:
>
>> I'll fix common first (and update Ivy as I go, then fix Compress and
>> do a test deploy that I can easily drop again.
>
> /devel/ASF/ant-antlibs-compress/common/upload.xml:40: impossible to
> publish artifacts for org.apache.ant#ant-compress;1.5.1:
> java.io.IOException: PUT operation to URL https://repository.apache.org/
> service/local/staging/deploy/maven2/org.apache.ant/ant-
> compress/ant-compress/1.5.1/ant-compress-1.5.1.pom failed with status
> code 400: Bad Request
>
> I'm afraid Nexus doesn't like the organization. I just had a look at
> Ant's own ivy.xml[1]. It uses organisation="org/apache" (slashes rather
> than dots). I'll play with some variations later.
>
> Stefan
>
> [1] https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob;f=
> release/ivy.xml
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Stefan Bodewig
On 2017-05-31, J Pai wrote:

> These are the changes (which incorporates Gintas suggestion) that
> might help get us past the upload issue.

I've only modified ivysettings-nexus.xml obtained from common (locally,
not pushed, yet) and that seems to have done the trick. I didn't have to
change prepare-upload or upload.xml back from dots to slashes.

Thanks

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Jaikiran Pai
Just had a look at that ivysettings-nexus.xml file. You are right, changing that file should fix it.

-Jaikiran
On 31-May-2017, at 5:43 PM, Stefan Bodewig <[hidden email]> wrote:

On 2017-05-31, J Pai wrote:

> These are the changes (which incorporates Gintas suggestion) that
> might help get us past the upload issue.

I've only modified ivysettings-nexus.xml obtained from common (locally,
not pushed, yet) and that seems to have done the trick. I didn't have to
change prepare-upload or upload.xml back from dots to slashes.

Thanks

       Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems Releaseing Antlibs

Stefan Bodewig
On 2017-05-31, J Pai wrote:

> Just had a look at that ivysettings-nexus.xml file. You are right,
> changing that file should fix it.

almost. I think we are abusing the module or organization idea of ivy a
little as the antlibs' artifacts all live inside the org.apache.ant
groupId (in mvn speak) which is our organization. So if I add
[module]/[artifact] I end up with
org/apache/ant/ant-compress/ant-compress on Nexus. I've just dropped the
[module] from ivysettings-nexus.xml and thinks looked as they were
supposed to when uploaded.

Thanks again to you and Gintautas

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...