maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amit kumar" <amit.kumar97...@gmail.com>
Subject Re: SNAPSHOT
Date Tue, 26 Feb 2008 07:20:20 GMT
This is happening for jboss-sar packaging. And I see these two versions only
at the time of "adding entry" while building jar.

[DEBUG] adding entry lib/dependency-1.0.0-20080226.053600-13.jar
[DEBUG] adding entry lib/dependency-1.0.0-SNAPSHOT.jar

On Tue, Feb 26, 2008 at 12:45 PM, amit kumar <amit.kumar97400@gmail.com>
wrote:

> Hi,
> >
>
>
> > Now this is a new problem, I am seeing the dependency getting packaged
> > as dependency-1.0.0-SNAPSHOT.jar as well as
> > dependency-1.0.0-TIMESTAMP.jar
> > I am using copy-dependency to copy the dependencies to a lib folder. How
> > to overcome this?
> >
> > This is my configuration:
> >
> >  <configuration>
> >  <outputDirectory>${project.build.directory}/${project.artifactId}-${
> > project.version}/lib</outputDirectory>
> >                   <overWriteReleases>false</overWriteReleases>
> >                   <overWriteSnapshots>false</overWriteSnapshots>
> >                   <overWriteIfNewer>true</overWriteIfNewer>
> >                   <excludeTransitive>true</excludeTransitive>
> > <configuration>
> >
> > I tried  turning <overWriteSnapshots>true</overWriteSnapshots> also
but
> > not working. Any help?
> >
> > Regards,
> > Amit
> >
>
> >
> > On Mon, Feb 18, 2008 at 7:48 PM, Sebastien Brunot <sbrunot@ilog.fr>
> > wrote:
> >
> > >
> > > This is indeed a buggy feature: the retrieved snpashot dependency, in
> > > the case of a war module for example, is sometime included as
> > > mydependency-1.0-SNAPSHOT.jar, and sometimes as
> > > mydependency-1.0-TIMESTAMP.jar. If a mvn clean is not done, a
> > > dependency
> > > can also be included twice as mydependency-1.0-TIMESTAMP1.jar and
> > > mydependency-1.0-TIMESTAMP2.jar.
> > >
> > > My two cents,
> > >
> > > Sebastien
> > >
> > > -----Original Message-----
> > > From: amit kumar [mailto:amit.kumar97400@gmail.com]
> > > Sent: Monday, February 18, 2008 09:52
> > > To: Maven Users List
> > > Subject: Re: SNAPSHOT
> > >
> > > It seems to work for me. Whenever a new SNAPSHOT version(
> > > 1.0.0-SNAPSHOT)
> > > is deployed to the reposiroty maven stores it with timestamp witn in
> > > the
> > > 1.0.0-SNAPSHOT folder. As I can see the artifact-1.0.0-SNAPSHOT.jar
> > > keeps on getting updated corresponding to the latest deployed jar.
> > > So in the repository the 1.0.0-SNAPSHOT folder has all the so far
> > > deployed jar files along with the timestamp and a
> > > artifact-1.0.0-SNAPSHOT.jar, which gets retrieved.
> > >
> > >
> > > Regards,
> > > Amit
> > >
> > >
> > > On 2/18/08, Wendy Smoak <wsmoak@gmail.com> wrote:
> > > >
> > > > On Feb 17, 2008 10:14 PM, Ryan H. <waycool88@gmail.com> wrote:
> > > >
> > > > > If my maven2 repository persists each artifact with time stamp as
> > > > > part of their filename, is SNAPSHOT version still going to work?
> > > >
> > > > Yes.  It uses the metadata file in the repository to decide which
> > > > timestamped file to retrieve.
> > > >
> > > > (Are you using just 'SNAPSHOT' as a version?  Usually it's
> > > > 1.0-SNAPSHOT or similar.)
> > > >
> > > > --
> > > > Wendy
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message