You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Joe Futrelle <fu...@ncsa.uiuc.edu> on 2005/08/03 22:14:46 UTC

[m2] depend on version-less jars?

My project depends on Globus jars, many of which have no version  
information. For the moment I've taken the Globus COG4 project's m1  
repository and converted it to an m2 repository using bogus version  
numbers for all the version-less jars. Is there a better way, now  
that the <jar> tag for dependencies has been removed in m2?

Apologies if the answer is staring me in the face.

--
Joe Futrelle
Digital Library Technologies, NCSA
http://www.ncsa.uiuc.edu/People/futrelle


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] depend on version-less jars?

Posted by Brett Porter <br...@gmail.com>.
Hi Joe,

http://maven.apache.org/faq.html#unversioned-jars

Basically, unless the JAR will never change, it doesn't make sense to
have it unversioned in the repository. I've never seen a product that
only ever had one release :)

I'd be giving these version 4.0 by the sounds of it.

- Brett

On 8/4/05, Joe Futrelle <fu...@ncsa.uiuc.edu> wrote:
> My project depends on Globus jars, many of which have no version
> information. For the moment I've taken the Globus COG4 project's m1
> repository and converted it to an m2 repository using bogus version
> numbers for all the version-less jars. Is there a better way, now
> that the <jar> tag for dependencies has been removed in m2?
> 
> Apologies if the answer is staring me in the face.
> 
> --
> Joe Futrelle
> Digital Library Technologies, NCSA
> http://www.ncsa.uiuc.edu/People/futrelle
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] depend on version-less jars?

Posted by Brill Pappin <br...@pappin.ca>.
This is unfortunately a common issue.
Two cases I usually have:
- library is not created versioned
- I have to customize something and need to keep a local copy.

What I usually to in order is: try and find the version I'm using, and
add it to the JAR. Create a bogus version (can be any text). append the
project name to the existing version number if there is one, and I have
a local modification.

It's completely flexible so I don't think you need to worry to much...
best thing to do is create a private repository where you can dump all
this stuff, maybe use a version of 0.0.CHECKME or something to make it
easy to identify libs that will need later review.

- Brill Pappin

Joe Futrelle wrote:
> My project depends on Globus jars, many of which have no version 
> information. For the moment I've taken the Globus COG4 project's m1 
> repository and converted it to an m2 repository using bogus version 
> numbers for all the version-less jars. Is there a better way, now  that
> the <jar> tag for dependencies has been removed in m2?
> 
> Apologies if the answer is staring me in the face.
> 
> -- 
> Joe Futrelle
> Digital Library Technologies, NCSA
> http://www.ncsa.uiuc.edu/People/futrelle
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org