You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by neeraj daffodil <ne...@gmail.com> on 2006/09/01 16:02:43 UTC

snapshot - maven 1.0.2

hi all
       i am using maven 1.0.2 and i want to use latest version of jar which
are defines in the project.xml , i mean to say that in our remote repository
there are 4 to 5 version of jar but i want to use the latest version
(i.efrom remote repository only latest version will download but i am
not able
to do this )
i know from searching that to do this process there is somthing like
SNAPSHOT but i am unable to define in my project.xml ,it might be like this
<dependency>
      <groupId>com.daffodil.dak.gwt</groupId>
      <artifactId>user</artifactId>
      <version>dakhar-1.2.jar</version>
      <jar>dakhar-1.2.jar</jar>
      <type>jar</type>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>
here i am using  dakhar-1.2.jar but in our repository we have dakhar-1.5.jarand
dakhar-1.2.jar but i want to download that dakhar-1.5.jar by maven 1.0.2 but
all the time it is downloaded the dakhar-1.2.jar jar file

can any one tell me where i am wrong and how should i can achieve this

Regards
Neeraj

Re: snapshot - maven 1.0.2

Posted by neeraj daffodil <ne...@gmail.com>.
hi *Jeff Jensen*
*        very very thanks ,i need what you exactly give me ,*
*Regards*
*Neeraj*


On 9/1/06, Jeff Jensen <je...@upstairstechnology.com> wrote:
>
> So I think you are asking how to always get the latest version.  If you
> are
> in development mode, then yes use SNAPSHOT for that:
>    <dependency>
>      <groupId>com.daffodil.dak.gwt</groupId>
>      <artifactId>dakhar</artifactId>
>      <version>1.5-SNAPSHOT</version>
>      <properties>
>        < war.bundle>true</war.bundle>
>      </properties>
>    </dependency>
>
>
> Please carefully read the "Using SNAPSHOT Dependencies" section on this
> page:
> http://maven.apache.org/maven-1.x/using/managing-dependencies.html
>
>
> -----Original Message-----
> From: neeraj daffodil [mailto:neeraj.daffodil@gmail.com]
> Sent: Friday, September 01, 2006 1:35 PM
> To: Maven Users List
> Subject: Re: snapshot - maven 1.0.2
>
> hi Jeff Jensen
>        thanks to replay ,yes you are write i have to use 1.5 in version
> but
> i need some think that i have not to mention the version no. and it will
> download the latestes jar file from the repository ,i am sure that to do
> this work we have to use snapshot in version but how i can use in my maven
> 1.0.2 i have no ideya ,if you understand my actuall problem then please
> replay
>
>
> Thanks in advances
> Regards
> Neeraj
>
>
>
> On 9/1/06, Jeff Jensen <je...@upstairstechnology.com> wrote:
> >
> > I'm a bit confused by your email description.  What happens when you
> > change the version number?  You didn't state how you are trying to get
> > version 1.5, and the dependency example you gave shows 1.2.
> >
> > Additionally, I suggest these changes to your example, based on what I
> > understand from your email:
> >    <dependency>
> >      <groupId>com.daffodil.dak.gwt</groupId>
> >      <artifactId>dakhar</artifactId>
> >      <version>1.5</version>
> >      <properties>
> >        <war.bundle>true</war.bundle>
> >      </properties>
> >    </dependency>
> >
> > (set the version to the one you want)
> >
> > Maven assembles the parts to determine the filename.  See the
> > dependency element doc (contains examples):
> >
> > http://maven.apache.org/maven-1.x/reference/project-descriptor.html#cl
> > ass_De
> > pendency
> >
> >
> > -----Original Message-----
> > From: neeraj daffodil [mailto:neeraj.daffodil@gmail.com]
> > Sent: Friday, September 01, 2006 9:03 AM
> > To: Maven Users List
> > Subject: snapshot - maven 1.0.2
> >
> > hi all
> >       i am using maven 1.0.2 and i want to use latest version of jar
> > which are defines in the project.xml , i mean to say that in our
> > remote repository there are 4 to 5 version of jar but i want to use
> > the latest version (i.efrom remote repository only latest version will
> > download but i am not able to do this ) i know from searching that to
> > do this process there is somthing like SNAPSHOT but i am unable to
> > define in my project.xml ,it might be like this <dependency>
> >      <groupId>com.daffodil.dak.gwt</groupId>
> >      <artifactId>user</artifactId>
> >      <version>dakhar-1.2.jar</version>
> >      <jar>dakhar-1.2.jar</jar>
> >      <type>jar</type>
> >      <properties>
> >        <war.bundle>true</war.bundle>
> >      </properties>
> >    </dependency>
> > here i am using  dakhar-1.2.jar but in our repository we have
> > dakhar-1.5.jarand dakhar-1.2.jar but i want to download that
> > dakhar-1.5.jar by maven 1.0.2 but all the time it is downloaded the
> > dakhar-1.2.jar jar file
> >
> > can any one tell me where i am wrong and how should i can achieve this
> >
> > Regards
> > Neeraj
> >
> >
> > ---------------------------------------------------------------------
> > 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: snapshot - maven 1.0.2

Posted by Jeff Jensen <je...@upstairstechnology.com>.
So I think you are asking how to always get the latest version.  If you are
in development mode, then yes use SNAPSHOT for that:
    <dependency>
      <groupId>com.daffodil.dak.gwt</groupId>
      <artifactId>dakhar</artifactId>
      <version>1.5-SNAPSHOT</version>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>


Please carefully read the "Using SNAPSHOT Dependencies" section on this
page:
http://maven.apache.org/maven-1.x/using/managing-dependencies.html


-----Original Message-----
From: neeraj daffodil [mailto:neeraj.daffodil@gmail.com] 
Sent: Friday, September 01, 2006 1:35 PM
To: Maven Users List
Subject: Re: snapshot - maven 1.0.2

hi Jeff Jensen
        thanks to replay ,yes you are write i have to use 1.5 in version but
i need some think that i have not to mention the version no. and it will
download the latestes jar file from the repository ,i am sure that to do
this work we have to use snapshot in version but how i can use in my maven
1.0.2 i have no ideya ,if you understand my actuall problem then please
replay


Thanks in advances
Regards
Neeraj



On 9/1/06, Jeff Jensen <je...@upstairstechnology.com> wrote:
>
> I'm a bit confused by your email description.  What happens when you 
> change the version number?  You didn't state how you are trying to get 
> version 1.5, and the dependency example you gave shows 1.2.
>
> Additionally, I suggest these changes to your example, based on what I 
> understand from your email:
>    <dependency>
>      <groupId>com.daffodil.dak.gwt</groupId>
>      <artifactId>dakhar</artifactId>
>      <version>1.5</version>
>      <properties>
>        <war.bundle>true</war.bundle>
>      </properties>
>    </dependency>
>
> (set the version to the one you want)
>
> Maven assembles the parts to determine the filename.  See the 
> dependency element doc (contains examples):
>
> http://maven.apache.org/maven-1.x/reference/project-descriptor.html#cl
> ass_De
> pendency
>
>
> -----Original Message-----
> From: neeraj daffodil [mailto:neeraj.daffodil@gmail.com]
> Sent: Friday, September 01, 2006 9:03 AM
> To: Maven Users List
> Subject: snapshot - maven 1.0.2
>
> hi all
>       i am using maven 1.0.2 and i want to use latest version of jar 
> which are defines in the project.xml , i mean to say that in our 
> remote repository there are 4 to 5 version of jar but i want to use 
> the latest version (i.efrom remote repository only latest version will 
> download but i am not able to do this ) i know from searching that to 
> do this process there is somthing like SNAPSHOT but i am unable to 
> define in my project.xml ,it might be like this <dependency>
>      <groupId>com.daffodil.dak.gwt</groupId>
>      <artifactId>user</artifactId>
>      <version>dakhar-1.2.jar</version>
>      <jar>dakhar-1.2.jar</jar>
>      <type>jar</type>
>      <properties>
>        <war.bundle>true</war.bundle>
>      </properties>
>    </dependency>
> here i am using  dakhar-1.2.jar but in our repository we have 
> dakhar-1.5.jarand dakhar-1.2.jar but i want to download that 
> dakhar-1.5.jar by maven 1.0.2 but all the time it is downloaded the 
> dakhar-1.2.jar jar file
>
> can any one tell me where i am wrong and how should i can achieve this
>
> Regards
> Neeraj
>
>
> ---------------------------------------------------------------------
> 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: snapshot - maven 1.0.2

Posted by neeraj daffodil <ne...@gmail.com>.
hi Jeff Jensen
        thanks to replay ,yes you are write i have to use 1.5 in version
but  i need some think that i have not to mention the version no. and it
will download the latestes jar file from the repository ,i am sure that to
do this work we have to use snapshot in version but how i can use in my
maven 1.0.2 i have no ideya ,if you understand my actuall problem then
please replay


Thanks in advances
Regards
Neeraj



On 9/1/06, Jeff Jensen <je...@upstairstechnology.com> wrote:
>
> I'm a bit confused by your email description.  What happens when you
> change
> the version number?  You didn't state how you are trying to get version
> 1.5,
> and the dependency example you gave shows 1.2.
>
> Additionally, I suggest these changes to your example, based on what I
> understand from your email:
>    <dependency>
>      <groupId>com.daffodil.dak.gwt</groupId>
>      <artifactId>dakhar</artifactId>
>      <version>1.5</version>
>      <properties>
>        <war.bundle>true</war.bundle>
>      </properties>
>    </dependency>
>
> (set the version to the one you want)
>
> Maven assembles the parts to determine the filename.  See the dependency
> element doc (contains examples):
>
> http://maven.apache.org/maven-1.x/reference/project-descriptor.html#class_De
> pendency
>
>
> -----Original Message-----
> From: neeraj daffodil [mailto:neeraj.daffodil@gmail.com]
> Sent: Friday, September 01, 2006 9:03 AM
> To: Maven Users List
> Subject: snapshot - maven 1.0.2
>
> hi all
>       i am using maven 1.0.2 and i want to use latest version of jar which
> are defines in the project.xml , i mean to say that in our remote
> repository
> there are 4 to 5 version of jar but i want to use the latest version
> (i.efrom remote repository only latest version will download but i am not
> able to do this ) i know from searching that to do this process there is
> somthing like SNAPSHOT but i am unable to define in my project.xml ,it
> might
> be like this <dependency>
>      <groupId>com.daffodil.dak.gwt</groupId>
>      <artifactId>user</artifactId>
>      <version>dakhar-1.2.jar</version>
>      <jar>dakhar-1.2.jar</jar>
>      <type>jar</type>
>      <properties>
>        <war.bundle>true</war.bundle>
>      </properties>
>    </dependency>
> here i am using  dakhar-1.2.jar but in our repository we have
> dakhar-1.5.jarand dakhar-1.2.jar but i want to download that
> dakhar-1.5.jar
> by maven 1.0.2 but all the time it is downloaded the dakhar-1.2.jar jar
> file
>
> can any one tell me where i am wrong and how should i can achieve this
>
> Regards
> Neeraj
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: snapshot - maven 1.0.2

Posted by Jeff Jensen <je...@upstairstechnology.com>.
I'm a bit confused by your email description.  What happens when you change
the version number?  You didn't state how you are trying to get version 1.5,
and the dependency example you gave shows 1.2.

Additionally, I suggest these changes to your example, based on what I
understand from your email:
    <dependency>
      <groupId>com.daffodil.dak.gwt</groupId>
      <artifactId>dakhar</artifactId>
      <version>1.5</version>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>

(set the version to the one you want)

Maven assembles the parts to determine the filename.  See the dependency
element doc (contains examples):
http://maven.apache.org/maven-1.x/reference/project-descriptor.html#class_De
pendency


-----Original Message-----
From: neeraj daffodil [mailto:neeraj.daffodil@gmail.com] 
Sent: Friday, September 01, 2006 9:03 AM
To: Maven Users List
Subject: snapshot - maven 1.0.2

hi all
       i am using maven 1.0.2 and i want to use latest version of jar which
are defines in the project.xml , i mean to say that in our remote repository
there are 4 to 5 version of jar but i want to use the latest version
(i.efrom remote repository only latest version will download but i am not
able to do this ) i know from searching that to do this process there is
somthing like SNAPSHOT but i am unable to define in my project.xml ,it might
be like this <dependency>
      <groupId>com.daffodil.dak.gwt</groupId>
      <artifactId>user</artifactId>
      <version>dakhar-1.2.jar</version>
      <jar>dakhar-1.2.jar</jar>
      <type>jar</type>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>
here i am using  dakhar-1.2.jar but in our repository we have
dakhar-1.5.jarand dakhar-1.2.jar but i want to download that dakhar-1.5.jar
by maven 1.0.2 but all the time it is downloaded the dakhar-1.2.jar jar file

can any one tell me where i am wrong and how should i can achieve this

Regards
Neeraj


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