[libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

Hi, At the CloudStack project we are switching to Maven for building and resolving external dependencies. In the central Maven repository [0] the latest version of libvirt-java is however 0.4.7 Could 0.4.8 be uploaded to this repository? Thank you, Wido [0]: http://search.maven.org/#search|ga|1|org.libvirt

On Thu, Sep 06, 2012 at 10:18:22AM +0200, Wido den Hollander wrote:
Hi,
At the CloudStack project we are switching to Maven for building and resolving external dependencies.
In the central Maven repository [0] the latest version of libvirt-java is however 0.4.7
Could 0.4.8 be uploaded to this repository?
Thank you,
Wido
it's maven which should fetch data from libvirt.org and i though I had updated everything as needed: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/ http://libvirt.org/maven2/org/libvirt/libvirt/maven-metadata-local.xml if you can get an idea why it is not fetching then I will fix, but I have tried to set everything up, and didn't got feedback that it was broken or anything, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/06/2012 10:38 AM, Daniel Veillard wrote:
On Thu, Sep 06, 2012 at 10:18:22AM +0200, Wido den Hollander wrote:
Hi,
At the CloudStack project we are switching to Maven for building and resolving external dependencies.
In the central Maven repository [0] the latest version of libvirt-java is however 0.4.7
Could 0.4.8 be uploaded to this repository?
Thank you,
Wido
it's maven which should fetch data from libvirt.org and i though I had updated everything as needed:
http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/ http://libvirt.org/maven2/org/libvirt/libvirt/maven-metadata-local.xml
if you can get an idea why it is not fetching then I will fix, but I have tried to set everything up, and didn't got feedback that it was broken or anything,
I added libvirt.org as a manual repository and while fetching the dependencies I saw: [INFO] snapshot org.apache.cloudstack:xapi:5.6.100-1-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom 1K downloaded (libvirt-0.4.8.pom) [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom - IGNORING [INFO] snapshot org.apache.cloudstack:cloud-server:4.0.0-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar 69K downloaded (libvirt-0.4.8.jar) [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar - IGNORING A tcpdump shows me it is looking for: * libvirt-0.4.8.pom.md5 * libvirt-0.4.8.pom.sha1 * libvirt-0.4.8.jar.md5 * libvirt-0.4.8.pom.sha1 These files are not available. (404) Could it be that the central Maven repository requires the checksum to work? Wido
Daniel

On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote:
On 09/06/2012 10:38 AM, Daniel Veillard wrote: I added libvirt.org as a manual repository and while fetching the dependencies I saw:
[INFO] snapshot org.apache.cloudstack:xapi:5.6.100-1-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom 1K downloaded (libvirt-0.4.8.pom) [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom - IGNORING [INFO] snapshot org.apache.cloudstack:cloud-server:4.0.0-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar 69K downloaded (libvirt-0.4.8.jar) [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar - IGNORING
haha, thanks !!!
A tcpdump shows me it is looking for: * libvirt-0.4.8.pom.md5 * libvirt-0.4.8.pom.sha1 * libvirt-0.4.8.jar.md5 * libvirt-0.4.8.pom.sha1
These files are not available. (404)
Could it be that the central Maven repository requires the checksum to work?
I'm surprized because in 0.4.7 there is no such checksums, http://libvirt.org/maven2/org/libvirt/libvirt/0.4.7/ I added them to 0.4.8, could you retry ? thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/06/2012 05:04 PM, Daniel Veillard wrote:
On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote:
On 09/06/2012 10:38 AM, Daniel Veillard wrote: I added libvirt.org as a manual repository and while fetching the dependencies I saw:
[INFO] snapshot org.apache.cloudstack:xapi:5.6.100-1-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom 1K downloaded (libvirt-0.4.8.pom) [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom - IGNORING [INFO] snapshot org.apache.cloudstack:cloud-server:4.0.0-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar 69K downloaded (libvirt-0.4.8.jar) [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar - IGNORING
haha, thanks !!!
A tcpdump shows me it is looking for: * libvirt-0.4.8.pom.md5 * libvirt-0.4.8.pom.sha1 * libvirt-0.4.8.jar.md5 * libvirt-0.4.8.pom.sha1
These files are not available. (404)
Could it be that the central Maven repository requires the checksum to work?
I'm surprized because in 0.4.7 there is no such checksums,
Searching on the web I found that since Maven 2.1 the checksum checking is more strict, but I'm not 100% sure about that.
I added them to 0.4.8, could you retry ?
Yes, it works! Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom 1K downloaded (libvirt-0.4.8.pom) [INFO] snapshot org.apache.cloudstack:cloud-server:4.0.0-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar 69K downloaded (libvirt-0.4.8.jar) Wido
thanks !
Daniel

On Thu, Sep 06, 2012 at 05:08:21PM +0200, Wido den Hollander wrote:
On 09/06/2012 05:04 PM, Daniel Veillard wrote:
On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote:
A tcpdump shows me it is looking for: * libvirt-0.4.8.pom.md5 * libvirt-0.4.8.pom.sha1 * libvirt-0.4.8.jar.md5 * libvirt-0.4.8.pom.sha1
These files are not available. (404)
Could it be that the central Maven repository requires the checksum to work?
I'm surprized because in 0.4.7 there is no such checksums,
Searching on the web I found that since Maven 2.1 the checksum checking is more strict, but I'm not 100% sure about that.
I added them to 0.4.8, could you retry ?
Yes, it works!
Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.pom 1K downloaded (libvirt-0.4.8.pom) [INFO] snapshot org.apache.cloudstack:cloud-server:4.0.0-SNAPSHOT: checking for updates from libvirt-org Downloading: http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/libvirt-0.4.8.jar 69K downloaded (libvirt-0.4.8.jar)
Ah, cool, now i hope the main raven repository is gonna refetch the data. I think they do that daily, I just hope they will refetch if in case of error if the timestamp didn't change. In any case i will have to do a libvirt-java release soon, then we can push the next version to the main repo, thanks again ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote:
On 09/06/2012 10:38 AM, Daniel Veillard wrote:
it's maven which should fetch data from libvirt.org and i though I had updated everything as needed:
http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/ http://libvirt.org/maven2/org/libvirt/libvirt/maven-metadata-local.xml
if you can get an idea why it is not fetching then I will fix, but I have tried to set everything up, and didn't got feedback that it was broken or anything, [...] Could it be that the central Maven repository requires the checksum to work?
Wido, any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8 Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/10/2012 02:29 PM, Daniel Veillard wrote:
On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote:
On 09/06/2012 10:38 AM, Daniel Veillard wrote:
it's maven which should fetch data from libvirt.org and i though I had updated everything as needed:
http://libvirt.org/maven2/org/libvirt/libvirt/0.4.8/ http://libvirt.org/maven2/org/libvirt/libvirt/maven-metadata-local.xml
if you can get an idea why it is not fetching then I will fix, but I have tried to set everything up, and didn't got feedback that it was broken or anything, [...] Could it be that the central Maven repository requires the checksum to work?
Wido,
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching? I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that? Wido

On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-)
A couple of changes for creating and handling snapshots for CloudStack, like re-defining snapshots which can't be done right now. Come to think of it, a 0.4.9 release under MIT would however be preferable for CloudStack 4.0. My changes can go into 0.4.10 if and when they get accepted. Wido

On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-)
A couple of changes for creating and handling snapshots for CloudStack, like re-defining snapshots which can't be done right now.
Come to think of it, a 0.4.9 release under MIT would however be preferable for CloudStack 4.0.
Okay, you get it, it's out, can you check maven is working, I had to do everything "by hand" as any attempt to fix the maven rules in build.xml, use the scp, download jar which it tries to do all fail for various reasons. So manual edit of XMLs, of directories, checksup of files ... if it works first time it's a miracle. So if you have knowledge of how a maven target rule should now be done (yes i fetched maven-ant-tasks package for my system) ------------------------------------------- maven: [copy] Copying 1 file to /home/veillard/libvirt-java/target BUILD FAILED /home/veillard/libvirt-java/build.xml:119: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:pom Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. No types or tasks have been defined in this namespace yet This appears to be an antlib declaration. Action: Check that the implementing library exists in one of: -/usr/share/ant/lib -/home/veillard/.ant/lib -a directory added on the command line with the -lib argument ------------------------------------------- -> ls /usr/share/ant/lib ant-bootstrap.jar ant-jsch.jar ant-junit.jar ant.jar ant-junit4.jar ant-launcher.jar -> rpm -ql maven-ant-tasks /usr/share/doc/maven-ant-tasks-2.1.1 /usr/share/doc/maven-ant-tasks-2.1.1/DEPENDENCIES /usr/share/doc/maven-ant-tasks-2.1.1/LICENSE /usr/share/doc/maven-ant-tasks-2.1.1/NOTICE /usr/share/doc/maven-ant-tasks-2.1.1/README.txt /usr/share/java/maven-ant-tasks.jar /usr/share/maven-fragments/maven-ant-tasks /usr/share/maven-poms/JPP-maven-ant-tasks.pom -> I recognize my ignorance of this system, i would just love something which works (using the scp exe allows me to pull/push from libvirt.org without question asked, ant-jsch failed any way i tried to authenticate) so I don't pull that many hairs each time i need to assemble a release :-) thanks in advance ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-)
A couple of changes for creating and handling snapshots for CloudStack, like re-defining snapshots which can't be done right now.
Come to think of it, a 0.4.9 release under MIT would however be preferable for CloudStack 4.0.
Okay, you get it, it's out, can you check maven is working, I had to do everything "by hand" as any attempt to fix the maven rules in build.xml, use the scp, download jar which it tries to do all fail for various reasons. So manual edit of XMLs, of directories, checksup of files ... if it works first time it's a miracle. So if you have knowledge of how a maven target rule should now be done (yes i fetched maven-ant-tasks package for my system)
Thanks! It seems however that this libvirt-java release was build with Java 1.7 and that doesn't work under Java 1.6 which is being used in RHEL 6 and Ubuntu 12.04: Caused by: java.lang.UnsupportedClassVersionError: org/libvirt/LibvirtException : Unsupported major.minor version 51.0 Could you rebuild with Java 1.6? Also, the central Maven repo didn't pick up the change. It's still stuck at 0.4.7
------------------------------------------- maven: [copy] Copying 1 file to /home/veillard/libvirt-java/target
BUILD FAILED /home/veillard/libvirt-java/build.xml:119: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:pom Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration. Action: Check that the implementing library exists in one of: -/usr/share/ant/lib -/home/veillard/.ant/lib -a directory added on the command line with the -lib argument -------------------------------------------
-> ls /usr/share/ant/lib ant-bootstrap.jar ant-jsch.jar ant-junit.jar ant.jar ant-junit4.jar ant-launcher.jar -> rpm -ql maven-ant-tasks /usr/share/doc/maven-ant-tasks-2.1.1 /usr/share/doc/maven-ant-tasks-2.1.1/DEPENDENCIES /usr/share/doc/maven-ant-tasks-2.1.1/LICENSE /usr/share/doc/maven-ant-tasks-2.1.1/NOTICE /usr/share/doc/maven-ant-tasks-2.1.1/README.txt /usr/share/java/maven-ant-tasks.jar /usr/share/maven-fragments/maven-ant-tasks /usr/share/maven-poms/JPP-maven-ant-tasks.pom ->
I recognize my ignorance of this system, i would just love something which works (using the scp exe allows me to pull/push from libvirt.org without question asked, ant-jsch failed any way i tried to authenticate) so I don't pull that many hairs each time i need to assemble a release :-)
I gave it a try on my system and it works when I use this URL for the maven-ant-tasks JAR: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a... Obviously I couldn't try the scp to libvirt.org, but I noticed however that "scp.username" has already been set in build.properties while the build.xml also tries to query for it: [input] skipping input as property scp.username has already been set. While I had the "scp" part commented out I uncommented it and gave it a try to a local machine, I ran into the same issue. A bit of searching brought me to this on my Ubuntu machine: $ cd /usr/share/ant/lib $ ln -s ../../java/jsch.jar I pushed a fix for both build.xml and build.properties to https://github.com/wido/libvirt-java/tree/maven You might want to pull it. Wido
thanks in advance !
Daniel

On Fri, Sep 14, 2012 at 04:01:55PM +0200, Wido den Hollander wrote:
On 09/13/2012 02:19 PM, Daniel Veillard wrote: [...]
Come to think of it, a 0.4.9 release under MIT would however be preferable for CloudStack 4.0.
Okay, you get it, it's out, can you check maven is working, I had to do everything "by hand" as any attempt to fix the maven rules in build.xml, use the scp, download jar which it tries to do all fail for various reasons. So manual edit of XMLs, of directories, checksup of files ... if it works first time it's a miracle. So if you have knowledge of how a maven target rule should now be done (yes i fetched maven-ant-tasks package for my system)
Thanks! It seems however that this libvirt-java release was build with Java 1.7 and that doesn't work under Java 1.6 which is being used in RHEL 6 and Ubuntu 12.04:
Caused by: java.lang.UnsupportedClassVersionError: org/libvirt/LibvirtException : Unsupported major.minor version 51.0
Could you rebuild with Java 1.6?
yes but would that be a new release. Also the problem is that I build on Fedora 17, On RHEL-6 I have a bare minimal environment where I won't get anything for maven, and ant setup is rather minimal (after checking though i can probably get those from epel)
Also, the central Maven repo didn't pick up the change. It's still stuck at 0.4.7
Okay let's see in separate mail [...]
I gave it a try on my system and it works when I use this URL for the maven-ant-tasks JAR: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a...
Obviously I couldn't try the scp to libvirt.org, but I noticed
Well maybe that something we could fix, a co-maintainer would be welcome !
however that "scp.username" has already been set in build.properties while the build.xml also tries to query for it:
[input] skipping input as property scp.username has already been set.
While I had the "scp" part commented out I uncommented it and gave it a try to a local machine, I ran into the same issue. A bit of searching brought me to this on my Ubuntu machine:
$ cd /usr/share/ant/lib $ ln -s ../../java/jsch.jar
I pushed a fix for both build.xml and build.properties to https://github.com/wido/libvirt-java/tree/maven
You might want to pull it.
Okay, applied and pushed with end of line blanks fixups :-) Let's continue this on top of your second mail ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-)
Ok, I've been reading some docs and found: * http://maven.apache.org/guides/mini/guide-central-repository-upload.html * https://docs.sonatype.org/display/Repository/Central+Sync+Requirements When you check the list on the second link it seems that the POM file for libvirt-java is missing the <developers> section which is mandatory now. I'm not sure about these two lines though: * If the project packaging is jar, and the jar file contains java classes, there must be a -javadoc.jar for main artifact. * If the project packaging is jar, and the jar file contains java classes, there must be a -sources.jar for main artifact. I checked the maven-ant-tasks repo and saw they are providing these files: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/ For now we can simply put a README file in both those JAR files pointing to libvirt.org? You can manually create both these JAR files and see if the central repo fetches them then? Wido

On Fri, Sep 14, 2012 at 04:18:21PM +0200, Wido den Hollander wrote:
On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-)
Ok, I've been reading some docs and found: * http://maven.apache.org/guides/mini/guide-central-repository-upload.html * https://docs.sonatype.org/display/Repository/Central+Sync+Requirements
When you check the list on the second link it seems that the POM file for libvirt-java is missing the <developers> section which is mandatory now.
I'm sure there is some kind of validation tools available somewhere or it's really a bad use of XML :-) http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a... doesn't seems to have any <developers> section though ...
I'm not sure about these two lines though: * If the project packaging is jar, and the jar file contains java classes, there must be a -javadoc.jar for main artifact. * If the project packaging is jar, and the jar file contains java classes, there must be a -sources.jar for main artifact.
Well "ant docs" creates and populate a target/javadoc/ so we ought to be able to package that as jar somehow And well the source are here too
I checked the maven-ant-tasks repo and saw they are providing these files: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/
For now we can simply put a README file in both those JAR files pointing to libvirt.org?
You can manually create both these JAR files and see if the central repo fetches them then?
Looking at the maven-ant-tasks-2.1.3-javadoc.jar example, it seems to directly contain the HTML files (cd target/javadoc && jar cvf ../libvirt-java-0.4.9-javadoc.jar .) seems to do the trick and jar cvf libvirt-java-0.4.9-sources.jar AUTHORS build.properties \ build.xml ChangeLog INSTALL libvirt-java.spec.in LICENCE NEWS \ pom.xml.in README.in README src/ test.sh to generate a sources one I will push those out and checksum those, let's see how it goes, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/14/2012 04:59 PM, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 04:18:21PM +0200, Wido den Hollander wrote:
On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote: > any idea how to tell the main maven site to refetch ? Even though we > added the checksums, http://search.maven.org still don't show 0.4.8 >
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-)
Ok, I've been reading some docs and found: * http://maven.apache.org/guides/mini/guide-central-repository-upload.html * https://docs.sonatype.org/display/Repository/Central+Sync+Requirements
When you check the list on the second link it seems that the POM file for libvirt-java is missing the <developers> section which is mandatory now.
I'm sure there is some kind of validation tools available somewhere or it's really a bad use of XML :-)
http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a... doesn't seems to have any <developers> section though ...
Hmm, indeed. That's odd. I'm not such a Maven guru, I've just been searching on the web to find any clue of what went wrong.
I'm not sure about these two lines though: * If the project packaging is jar, and the jar file contains java classes, there must be a -javadoc.jar for main artifact. * If the project packaging is jar, and the jar file contains java classes, there must be a -sources.jar for main artifact.
Well "ant docs" creates and populate a target/javadoc/ so we ought to be able to package that as jar somehow And well the source are here too
I checked the maven-ant-tasks repo and saw they are providing these files: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/
For now we can simply put a README file in both those JAR files pointing to libvirt.org?
You can manually create both these JAR files and see if the central repo fetches them then?
Looking at the maven-ant-tasks-2.1.3-javadoc.jar example, it seems to directly contain the HTML files (cd target/javadoc && jar cvf ../libvirt-java-0.4.9-javadoc.jar .) seems to do the trick and jar cvf libvirt-java-0.4.9-sources.jar AUTHORS build.properties \ build.xml ChangeLog INSTALL libvirt-java.spec.in LICENCE NEWS \ pom.xml.in README.in README src/ test.sh to generate a sources one
I will push those out and checksum those, let's see how it goes,
I just wrote a patch for the build.xml, see: https://github.com/wido/libvirt-java/commit/bb0dbb09b0991503ab8e1948ce985192... $ ant maven That should also generate a sources and javadoc artifact now. Wido
Daniel

On Fri, Sep 14, 2012 at 05:36:10PM +0200, Wido den Hollander wrote:
On 09/14/2012 04:59 PM, Daniel Veillard wrote: [...]
http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a... doesn't seems to have any <developers> section though ...
Hmm, indeed. That's odd. I'm not such a Maven guru, I've just been searching on the web to find any clue of what went wrong.
Would be nice if maven itself reported about it. What happens now if you try to use the command line maven tools, does that work ? (i updated the jar to a build on RHEL6 with javac 1.5) [...]
Looking at the maven-ant-tasks-2.1.3-javadoc.jar example, it seems to directly contain the HTML files (cd target/javadoc && jar cvf ../libvirt-java-0.4.9-javadoc.jar .) seems to do the trick and jar cvf libvirt-java-0.4.9-sources.jar AUTHORS build.properties \ build.xml ChangeLog INSTALL libvirt-java.spec.in LICENCE NEWS \ pom.xml.in README.in README src/ test.sh to generate a sources one
I will push those out and checksum those, let's see how it goes,
I just wrote a patch for the build.xml, see: https://github.com/wido/libvirt-java/commit/bb0dbb09b0991503ab8e1948ce985192...
Hum, I see you drop anything outside the pure src/main/java/ code, weird to be the build xml would be part of the sources but apparently they do it that way too
$ ant maven
That should also generate a sources and javadoc artifact now.
Seems to take nearly forever downloading the maven2 files from libvirt.org,but so far it's proceeding ... will it do gpg signing ? Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 14-09-12 18:09, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 05:36:10PM +0200, Wido den Hollander wrote:
On 09/14/2012 04:59 PM, Daniel Veillard wrote: [...]
http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a... doesn't seems to have any <developers> section though ...
Hmm, indeed. That's odd. I'm not such a Maven guru, I've just been searching on the web to find any clue of what went wrong.
Would be nice if maven itself reported about it. What happens now if you try to use the command line maven tools, does that work ? (i updated the jar to a build on RHEL6 with javac 1.5)
Thanks, that works just fine!
[...]
Looking at the maven-ant-tasks-2.1.3-javadoc.jar example, it seems to directly contain the HTML files (cd target/javadoc && jar cvf ../libvirt-java-0.4.9-javadoc.jar .) seems to do the trick and jar cvf libvirt-java-0.4.9-sources.jar AUTHORS build.properties \ build.xml ChangeLog INSTALL libvirt-java.spec.in LICENCE NEWS \ pom.xml.in README.in README src/ test.sh to generate a sources one
I will push those out and checksum those, let's see how it goes,
I just wrote a patch for the build.xml, see: https://github.com/wido/libvirt-java/commit/bb0dbb09b0991503ab8e1948ce985192...
Hum, I see you drop anything outside the pure src/main/java/ code, weird to be the build xml would be part of the sources but apparently they do it that way too
I peeked how other projects are doing this, they only ship the source, no build information. However, maven central didn't fetch 0.4.9 yet. No clue why it ain't fetching.. Wido
$ ant maven
That should also generate a sources and javadoc artifact now.
Seems to take nearly forever downloading the maven2 files from libvirt.org,but so far it's proceeding ... will it do gpg signing ?
Daniel

On Mon, Sep 17, 2012 at 10:35:02AM +0200, Wido den Hollander wrote:
On 14-09-12 18:09, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 05:36:10PM +0200, Wido den Hollander wrote:
On 09/14/2012 04:59 PM, Daniel Veillard wrote: [...]
http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a... doesn't seems to have any <developers> section though ...
Hmm, indeed. That's odd. I'm not such a Maven guru, I've just been searching on the web to find any clue of what went wrong.
Would be nice if maven itself reported about it. What happens now if you try to use the command line maven tools, does that work ? (i updated the jar to a build on RHEL6 with javac 1.5)
Thanks, that works just fine!
okay, good !
[...]
I just wrote a patch for the build.xml, see: https://github.com/wido/libvirt-java/commit/bb0dbb09b0991503ab8e1948ce985192...
Hum, I see you drop anything outside the pure src/main/java/ code, weird to be the build xml would be part of the sources but apparently they do it that way too
I peeked how other projects are doing this, they only ship the source, no build information.
okay... fine
However, maven central didn't fetch 0.4.9 yet. No clue why it ain't fetching..
I wonder where we could get the needed informations ... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 17-09-12 14:20, Daniel Veillard wrote:
On Mon, Sep 17, 2012 at 10:35:02AM +0200, Wido den Hollander wrote:
On 14-09-12 18:09, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 05:36:10PM +0200, Wido den Hollander wrote:
On 09/14/2012 04:59 PM, Daniel Veillard wrote: [...]
http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-a... doesn't seems to have any <developers> section though ...
Hmm, indeed. That's odd. I'm not such a Maven guru, I've just been searching on the web to find any clue of what went wrong.
Would be nice if maven itself reported about it. What happens now if you try to use the command line maven tools, does that work ? (i updated the jar to a build on RHEL6 with javac 1.5)
Thanks, that works just fine!
okay, good !
[...]
I just wrote a patch for the build.xml, see: https://github.com/wido/libvirt-java/commit/bb0dbb09b0991503ab8e1948ce985192...
Hum, I see you drop anything outside the pure src/main/java/ code, weird to be the build xml would be part of the sources but apparently they do it that way too
I peeked how other projects are doing this, they only ship the source, no build information.
okay... fine
However, maven central didn't fetch 0.4.9 yet. No clue why it ain't fetching..
I wonder where we could get the needed informations ...
I've been searching and found: http://maven.apache.org/guides/mini/guide-central-repository-upload.html "Publishing your artifacts to the Central Repository" That seems to suggest that since January 2010 they no longer sync from any location and you should use Sonatype OSS for that. This seems to be the online way: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+U... Wido
Daniel

On Mon, Sep 17, 2012 at 02:32:03PM +0200, Wido den Hollander wrote:
On 17-09-12 14:20, Daniel Veillard wrote:
On Mon, Sep 17, 2012 at 10:35:02AM +0200, Wido den Hollander wrote: [...]
However, maven central didn't fetch 0.4.9 yet. No clue why it ain't fetching..
I wonder where we could get the needed informations ...
I've been searching and found: http://maven.apache.org/guides/mini/guide-central-repository-upload.html
"Publishing your artifacts to the Central Repository"
That seems to suggest that since January 2010 they no longer sync from any location and you should use Sonatype OSS for that.
This seems to be the online way: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+U...
Holy crap ... what a monstruosity. And the reason: "Additionally, there is no good mechanism currently for validating the incoming data via the rsync, and this leads to bad metadata that affects everyone. " Put the damn metadata *in the package* and gpg sign it. Either you trust the key or not is the question, but the problem was solved by rpm more than a decade ago IMHO ! Not sure Maven is really the way to go that's seems seriously broken. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On 09/17/2012 02:50 PM, Daniel Veillard wrote:
On Mon, Sep 17, 2012 at 02:32:03PM +0200, Wido den Hollander wrote:
On 17-09-12 14:20, Daniel Veillard wrote:
On Mon, Sep 17, 2012 at 10:35:02AM +0200, Wido den Hollander wrote: [...]
However, maven central didn't fetch 0.4.9 yet. No clue why it ain't fetching..
I wonder where we could get the needed informations ...
I've been searching and found: http://maven.apache.org/guides/mini/guide-central-repository-upload.html
"Publishing your artifacts to the Central Repository"
That seems to suggest that since January 2010 they no longer sync from any location and you should use Sonatype OSS for that.
This seems to be the online way: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+U...
Holy crap ... what a monstruosity. And the reason:
"Additionally, there is no good mechanism currently for validating the incoming data via the rsync, and this leads to bad metadata that affects everyone. "
Put the damn metadata *in the package* and gpg sign it. Either you trust the key or not is the question, but the problem was solved by rpm more than a decade ago IMHO !
Not sure Maven is really the way to go that's seems seriously broken.
You could always leave it and not use the central repo. Under the Java bindings you could make a section pointing to the Maven repo and a pom.xml: https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commitd... If you're fine with that I'll submit a patch for libvirt.org Wido
Daniel

On Mon, Sep 17, 2012 at 04:19:46PM +0200, Wido den Hollander wrote:
You could always leave it and not use the central repo. Under the Java bindings you could make a section pointing to the Maven repo and a pom.xml: https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commitd...
If you're fine with that I'll submit a patch for libvirt.org
I think I will continue to release on libvirt.org, so yes please send. Maybe it still prossible to aggregate the builds on the main repository though that service, in that case i will try it, but not right now :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

Getting a artifact into Maven central has a lot of restrictions as where the artifact should be hosted. This seemed like a big hassle which we don't want to go through now. Document a way for users to use libvirt.org as a repository so they can fetch the Java bindings with maven. Signed-off-by: Wido den Hollander <wido@widodh.nl> --- docs/java.html.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/java.html.in b/docs/java.html.in index d3e3ebc..41f2630 100644 --- a/docs/java.html.in +++ b/docs/java.html.in @@ -157,5 +157,15 @@ from the C API, the only points to notice are:</p> various <span style="color: #E50073; background-color: #FFFFFF">methods</span> associated to the Domain class.</li> </ul> +<h2>Maven</h2> + <p>Up until version 0.4.7 the Java bindings were available from the central maven repository.</p> + <p>If you want to use 0.4.8 or higher, please add the following repository to your pom.xml</p> + <pre><repositories> + <repository> + <id>libvirt-org</id> + <url>http://libvirt.org/maven2</url> + </repository> +</repositories></pre> + </body> </html> -- 1.7.9.5

On 09/27/2012 02:48 PM, Wido den Hollander wrote:
Getting a artifact into Maven central has a lot of restrictions as where the artifact should be hosted.
This seemed like a big hassle which we don't want to go through now.
Document a way for users to use libvirt.org as a repository so they can fetch the Java bindings with maven.
Signed-off-by: Wido den Hollander <wido@widodh.nl> --- docs/java.html.in | 10 ++++++++++ 1 file changed, 10 insertions(+)
ACK and pushed. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On Fri, Sep 14, 2012 at 04:18:21PM +0200, Wido den Hollander wrote:
On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to tell the main maven site to refetch ? Even though we added the checksums, http://search.maven.org still don't show 0.4.8
No, not a clue. It could be that it reads maven-metadata-local.xml and sees that lastUpdated hasn't changed, so no need for any futher searching?
I have a couple of things for 0.4.9 I want to fix, so when that comes out, lastUpdated changes and hopefully maven will see that?
yeah ... So what kind of changes do you have in mind ? To be honnest I would like to make a release soon :-)
Ok, I've been reading some docs and found: * http://maven.apache.org/guides/mini/guide-central-repository-upload.html * https://docs.sonatype.org/display/Repository/Central+Sync+Requirements
------------- All project artifacts are signed using GPG, and the public key is distributed to hkp://pool.sks-keyservers.net/ ------------- so I did the sheebang needed to generate the .asc (by hand) on the server after uploading a libvirt-0.4.9.jar generated by "ant build" on RHEL6, and then regenerated the md5 and sha1 sums for all those files as present at http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/ maybe that will work better, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/
participants (3)
-
Daniel Veillard
-
Eric Blake
-
Wido den Hollander