You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ar...@za.safmarine.com on 2004/02/03 17:24:49 UTC

/ /OREF:CPT95AB9 Project>Dependecies Newbie question




Hi,

Is the following snippet a valid dependency?

    <dependency>
      <groupId>sailing-schedules</groupId>
      <jar>SailingSchedulesUtils</jar>
    </dependency>

For this dependency, I will not be providing an artifact version.
So I wish to define the jar file name that resides in
$MAVEN_REP/sailing-schedules/jars/ named SailingSchedulesUtils.jar
as apose to something like this:

   <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.8</version>
    </dependency>

Regards,
--Alen



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


Re: / /OREF:CPT95AB9 Project>Dependecies Newbie question

Posted by Konstantin Priblouda <kp...@yahoo.com>.
> In Maven, every artifact in the repository has a
> version. Trying to
> circumvert that will give you more headache that it
> is worth.
> Certain artifact are have their versions removed
> when they are copied
> out of the repository, but this is really an
> uncommon case.
> OTOH project dependencies always specify a version.
> Your options where
> are: just give your artifact an arbitrary version
> tag (1.0 seems a nice
> choice), or use the special tag SNAPSHOT.

You still can use jar override feature to include jar
from some obscure location or even withouot version
number ( like something coming from sun :)

regards, 

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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


Re: / /OREF:CPT95AB9 Project>Dependecies Newbie question

Posted by Rafal Krzewski <Ra...@caltha.pl>.
aribic@za.safmarine.com wrote:

> Is the following snippet a valid dependency?
> 
>     <dependency>
>       <groupId>sailing-schedules</groupId>
>       <jar>SailingSchedulesUtils</jar>
>     </dependency>
> 
> For this dependency, I will not be providing an artifact version.
> So I wish to define the jar file name that resides in
> $MAVEN_REP/sailing-schedules/jars/ named SailingSchedulesUtils.jar
> as apose to something like this:

In Maven, every artifact in the repository has a version. Trying to
circumvert that will give you more headache that it is worth.
Certain artifact are have their versions removed when they are copied
out of the repository, but this is really an uncommon case.
OTOH project dependencies always specify a version. Your options where
are: just give your artifact an arbitrary version tag (1.0 seems a nice
choice), or use the special tag SNAPSHOT.

R.


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