  | |  Re: Dependency - If version is not specified, should it consider
'- ' or not? | Re: Dependency - If version is not specified, should it consider
'- ' or not? 2004-03-29 - By Kevin Hagel
Back Assume you have yourstuff-1.1.jar, a versioned library <dependency> <groupId>yourstuff</groupId> <artifactId>yoursetuff</groupId> <version>1.2</version> </dependency>
Now assume you have yourstuff.jar, a non-versioned library.
<dependency> <groupId>yourstuff</groupId> <artifactId>yoursetuff</groupId> <jar>yourstuff.jar</jar> </dependency>
Maczka Michal wrote:
> > >>-- --Original Message-- -- >>From: Veerasamy, Thirumalai (Cognizant) >>[mailto:VThiruma1@(protected)] >>Sent: Monday, March 29, 2004 2:36 PM >>To: Maven Users List >>Subject: Dependency - If version is not specified, should it consider >>'-' or not? >> >> >>Hi, >> >> I specify a dependency like given below. >> >> <dependency> >> <groupId>group</groupid> >> <artifactId>artifact</artifactId> >> </dependency> >> >> Though I didn't specify a version for that file it still expects as >>group/group-artifact-.jar. Is this the expected behaviour? >> >> > >Yes it is expected behaviour. > > > > >>Shouldn't it >>ignore '-' if version is not specified. >> >> >> > >No! all artifacts in the repository must be versioned. > >Michal > >-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ >To unsubscribe, e-mail: users-unsubscribe@(protected) >For additional commands, e-mail: users-help@(protected) > > > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |