Hi 
The jar created in the repository will have
myApp-SNAPSHOT.jar. The problem I'm having is just
trying to create a jar called myApp.jar
I tried maven.final.name=myApp
but that only works for the jar created under the
target directory.The one created in the repository has
a dash "-" appended to it , i.e myApp-.jar
instead of ju myApp.jar


jeff mutonho


--- Eric Pugh <[EMAIL PROTECTED]> wrote:

> Take a looksee at this:
>
http://maven.apache.org/reference/user-guide.html#Using_SNAPSHOT_Dependencie
> s
> 
> your lib.jar should have currentVersion SNAPSHOT. 
> And in app.war your
> version should be SNAPSHOT.  And it'll all work.. 
> Warning!  Snapshot means
> that everytime you run a goal agaisnt app.war, it'll
> attempt to download the
> latest SNAPSHOT version of your lib.jar.
> 
> ERic
> 
> > -----Original Message-----
> > From: Stijn de Witt
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 21, 2004 3:23 PM
> > To: Maven Users List
> > Subject: Re: turning off versioning
> >
> >
> >
> >
> > Eric Pugh wrote:
> >
> > >You could always add a postGoal to the jar target
> and rename
> > it..   But why
> > >would be my question?  I have found that non
> versioned jar files
> > can lead to
> > >lots of confusion on what you are putting into
> another application...  If
> > >the challenge is that you just want to always use
> the latest and greatest
> > >and don't care about versioning anything, then
> specify the version as
> > >SNAPSHOT.
> > >
> > >Eric
> > >
> > >
> > Sorry to interupt your thread here, but can you
> elaborate a bit, because
> > I couldn't get this to work.
> > In my lib.jar, do I set my currentVersion to
> SNAPSHOT?  Or just to
> > 1.2-dev or whatever?
> > In my app.war, do I set my dependency version to
> SNAPSHOT?
> >
> > I tried it with lib.jar, currentVersion=1.0-dev,
> app.war dependency =
> > lib.jar version="SNAPSHOT", but then maven tried
> to get it from a remote
> > repository, and failed saying it couldn't find
> > lib-SNAPSHOT.jar....lib-1.0-dev.jar was sitting in
> my local repository,
> > but Maven seemed to ignore it, instead looking for
> a file literally
> > named lib-SNAPSHOT.jar....
> >
> > What am I missing?
> > Thanks
> >
> >
>
---------------------------------------------------------------------
> > 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]
> 
> 



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to