Having trouble creating new packager.xml

5 views
Skip to first unread message

Andre-John Mas

unread,
Mar 21, 2011, 5:58:17 PM3/21/11
to ivyroundup
Hi,

I am trying to create a new entry for JUG (java uuid generator), but I
am running into issues (this is my first attempted contribution). I
have created the following folder path in the subversion checkout:

src/modules/com.fasterxml/jug/3.1.0/

and then configured an ivy.xml and packager.xml file. Once done I run
'ant repo', which seems to do its work.

Once finished I configure a test project so that it depends on the
newly declared project and then configure my ivysettings.xml to point
to my local version of the repository. When I do that I get errors
such as follows:

[FAILED ] com.fasterxml#jug;3.1.0!javadoc.jar(javadoc): /Users/
ajmas/.ivy2/packager/build/com.fasterxml/jug/3.1.0/packager.xml is not
a valid XML document. (22ms)

The contents of the packager.xml is as follows:

<packager-module rev="$Id$">

<property name="name" value="${ivy.packager.module}"/>
<property name="revision" value="${ivy.packager.revision}"/>
<property name="archive" value="${name}-${revision}"/>
<property name="name" value="${ivy.packager.module}"/>

<m2resource artifactId="java-uuid-generator">
<artifact tofile="artifacts/jars/${name}.jar"
sha1="596e1176c68eeb5ed103d6ffb5647655fd72cab3"/>
<artifact classifier="sources" tofile="artifacts/sources/$
{name}.zip" sha1="166a2db97a32dd96952c5591713ea4ed6bca30e0"/>
<artifact classifier="javadoc" tofile="artifacts/javadoc/$
{name}.zip" sha1="166a2db97a32dd96952c5591713ea4ed6bca30e0"/>
</m2resource>

</packager-module>

and of the ivy.xml file:

<ivy-module rev="$Id$">

<info publication="20100715012500">
<license name="Apache License, Version 2.0" url="http://
www.apache.org/licenses/LICENSE-2.0"/>
<license name="GNU Lesser General Public License" url="http://
www.gnu.org/licenses/licenses.html#LGPL"/>
<ivyauthor name="$Id: ivy.xml 1116 2010-03-11 01:10:11Z
spatialguru.net $" url="http://code.google.com/p/ivyroundup/source/
browse/trunk/src/modules/com.fasterxml/jug/3.2.0/"/>
<repository pattern="http://ivyroundup.googlecode.com/svn/
trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml"
ivys="true" url="http://ivyroundup.googlecode.com/" name="ivyroundup"/
>
<description homepage="http://wiki.fasterxml.com/JugHome">
<p>
- removed for now -
</p>
</description>
</info>

<publications>
<artifact/>
<artifact name="javadoc" type="javadoc" ext="jar"/>
<artifact type="source" ext="jar"/>
</publications>

<dependencies>
<dependency org="org.apache.log4j" name="log4j" rev="1.2.+"
conf="default-&gt;default"/>
</dependencies>

</ivy-module>


Any help would be appreciated.

Andre

Mark Thomas

unread,
Mar 22, 2011, 9:44:22 AM3/22/11
to ivyro...@googlegroups.com, Andre-John Mas
please try again.  i just committed a fix

Regards,

Mark Thomas
spatialguru.net@gmail.com
205.529.9013

"Commit to the Lord whatever you do,
    and your plans will succeed." - Proverbs 16:3



--
You received this message because you are subscribed to the Google Groups "ivyroundup" group.
To post to this group, send email to ivyro...@googlegroups.com.
To unsubscribe from this group, send email to ivyroundup+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ivyroundup?hl=en.


Andre-John Mas

unread,
Mar 22, 2011, 11:17:02 AM3/22/11
to Mark Thomas, ivyro...@googlegroups.com
Turns out there were some configuration issues in the packager.xml file. I have since got it working and submitted a patch to get JUG into Ivy Roundup. 

Thanks

André-John
  

Mark Thomas

unread,
Mar 22, 2011, 11:25:23 AM3/22/11
to Andre-John Mas, ivyro...@googlegroups.com
i know; i already fixed the packager.xml issue.

Regards,

Mark Thomas
spatialguru.net@gmail.com
205.529.9013

"Commit to the Lord whatever you do,
    and your plans will succeed." - Proverbs 16:3


Andre-John Mas

unread,
Mar 22, 2011, 10:55:48 PM3/22/11
to ivyroundup
Thank you.

I am not sure if it is a problem with the configuration, but when I
use IvyDE in Eclipse I don't seem to see there being any indication
that it is seeing the javadoc or the source. For example when I double
click on one of the class files in the jug-3.1.0.jar library I just
see the "class file editor" being used, rather than having the source
displayed. Jtidy, which I used for comparison, on the other displays
the source just fine.

I do see that the artifacts are downloaded if I check the log:

downloading file:/Users/ajmas/.ivy2/packager/build/com.fasterxml.uuid/
jug/3.1.0/artifacts/javadocs/javadoc.zip ...
[SUCCESSFUL ] com.fasterxml.uuid#jug;3.1.0!javadoc.zip(javadoc)
(1556ms)
downloading file:/Users/ajmas/.ivy2/packager/build/com.fasterxml.uuid/
jug/3.1.0/artifacts/sources/source.zip ...
[SUCCESSFUL ] com.fasterxml.uuid#jug;3.1.0!source.zip(source) (1ms)
downloading file:/Users/ajmas/.ivy2/packager/build/com.fasterxml.uuid/
jug/3.1.0/artifacts/jars/jug.jar ...
[SUCCESSFUL ] com.fasterxml.uuid#jug;3.1.0!jug.jar (2ms)

I realise the issue could be IvyDE side, but I want to be sure. Maybe
I am running fowl of a naming convention?

Any ideas?

Andre

On Mar 22, 11:25 am, Mark Thomas <spatialguru....@gmail.com> wrote:
> i know; i already fixed the packager.xml issue.
>
> Regards,
>
> Mark Thomas
> spatialguru....@gmail.com
> 205.529.9013
>
<snip>

Andre-John Mas

unread,
Mar 22, 2011, 11:09:06 PM3/22/11
to ivyroundup
I did some more research and it turns out that IvyDE makes certain
assumptions on the name of the files, ie source, binaries and javadoc
should be sharing the same name prefix:

http://groups.google.com/group/ivyroundup/browse_thread/thread/3b9985910b3b87b4/7da90c64da8b003a?#7da90c64da8b003a

I will submit a patch.

regards

Andre

Martin Weber

unread,
Mar 23, 2011, 6:37:25 AM3/23/11
to ivyro...@googlegroups.com

-------- Original-Nachricht --------
> Datum: Tue, 22 Mar 2011 19:55:48 -0700 (PDT)
> Von: Andre-John Mas <andrej...@gmail.com>
> An: ivyroundup <ivyro...@googlegroups.com>
> Betreff: [ivyroundup] Re: Having trouble creating new packager.xml

> Thank you.
>
> I am not sure if it is a problem with the configuration, but when I
> use IvyDE in Eclipse I don't seem to see there being any indication
> that it is seeing the javadoc or the source. For example when I double

At least Apache IvyDE 2.2.0.201102142052-hudson-172 properly
shows javadoc and sources when I check the 'Auto map jar artifacts with...' boxes on the IvyDE classpath preferences page.
But it seem to come with a broken ivy.jar.
Here the update site <https://hudson.apache.org/hudson/job/IvyDE-updatesite/lastStableBuild/artifact/trunk/build>

Earlier versions did not show javadoc always at my site.

Regards,
Martin

Mark Thomas

unread,
Mar 23, 2011, 12:04:58 PM3/23/11
to ivyro...@googlegroups.com, Martin Weber
yes, this is a known issue with IvyDE

Regards,

Mark Thomas
spatialguru.net@gmail.com
205.529.9013

"Commit to the Lord whatever you do,
    and your plans will succeed." - Proverbs 16:3


Andre-John Mas

unread,
Mar 25, 2011, 7:05:30 PM3/25/11
to ivyroundup

On Mar 23, 6:37 am, "Martin Weber" <martin.we...@gmx.info> wrote:
> -------- Original-Nachricht --------
>
> > Datum: Tue, 22 Mar 2011 19:55:48 -0700 (PDT)
> > Von: Andre-John Mas <andrejohn....@gmail.com>
> > An: ivyroundup <ivyro...@googlegroups.com>
> > Betreff: [ivyroundup] Re: Having trouble creating new packager.xml
> > Thank you.
>
> > I am not sure if it is a problem with the configuration, but when I
> > use IvyDE in Eclipse I don't seem to see there being any indication
> > that it is seeing the javadoc or the source. For example when I double
>
> At least Apache IvyDE   2.2.0.201102142052-hudson-172 properly
> shows javadoc and sources when I check the 'Auto map jar artifacts with...' boxes on the IvyDE classpath preferences page.
> But it seem to come with a broken ivy.jar.
> Here the update site <https://hudson.apache.org/hudson/job/IvyDE-updatesite/lastStableBuild...>
>

Thank you for that. It made a world of difference. It would be nice to
see this version make it to the downloads page.
I'll go and see what's blocking this at the IvyDE site.

Regards

Andre

Reply all
Reply to author
Forward
0 new messages