You are right, it should be in another namespace which you can choose freely.
Maarten ----- Original Message ---- From: Karolis Petrauskas <[email protected]> To: Ant Developers List <[email protected]> Sent: Tue, June 15, 2010 9:17:54 PM Subject: Re: -source.jar and -javadoc.jar in ivy.xml Hello. I cant find any documentation regarding the attribute "classifier". Is it "extra" or new standard attribute? If it is an extra attribute, why is it not in the namespace http://ant.apache.org/ivy/extra? Sincerely, Karolis On Tue, Jun 15, 2010 at 1:14 PM, Maarten Coene <[email protected]> wrote: > I didn't test it, but you could try something like this: > > - change your patterns in the settings and publish task to: > "[organisation]/[module]/[artifact]/[revision]/[artifact]-[revision](-[classifier]).[ext]" > - add classifier attribute on the artifacts element: > > <artifact name="${artifact.name}" type="source" ext="jar" > classifier="sources" /> > <artifact name="${artifact.name}" type="javadoc" ext="jar" > classifier="javadoc" /> > > Don't declare this classifier attribute for the main artifact > > Maarten > > > > ----- Original Message ---- > From: Stefan Bodewig <[email protected]> > To: [email protected] > Sent: Tue, June 15, 2010 11:56:30 AM > Subject: -source.jar and -javadoc.jar in ivy.xml > > Hi, > > I've added the creation of -sources.jar and -javadoc.jar to the common > build file used by all Antlibs so these jars can get uploaded to the mvn > repo when we perform a release. > > Unfortunately it is not clear to me how to declare them as artifacts as > child of publications that Ivy is supposed to upload. Something like > this? > > <artifact name="${artifact.name}" type="source" ext="-sources.jar"/> > > I'm afraid this won't resolve to the correct name for the artifact. > Would I need to provide an explicit url? What is the recommended way? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
