You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bram de Kruijff <br...@gx.nl> on 2006/07/04 17:55:15 UTC

snapshots in local repository after install?

Hi all,

on my continuum (linux) server I'm running out off diskspace fast
because each build (mvn clean install) produces an actual snapshot (eg
george-9.0.0-20060531.111546-5.jar) in the local repository.

This is not what happens on my (windows) workstation. Here each build
(mvn clean install) produces the same '-SNAPSHOT' extension so that it
overwrites the previous and doesn't waste any space.

Both machines build on the same code, both use maven 2.0.4 / continuum
1.0.3 / JDK1.5.0_x / Tomcat 5.5.17 So what is the difference, how can I
configure my ci not to produce real snapshots in my local repository?

regards,
Bram

--
Bram de Kruijff
<GX> creative online development B.V.
 
t: 024 - 3888 261
f: 024 - 3888 621
e: bramk@gx.nl
 
Wijchenseweg 111
6538 SW Nijmegen
http://www.gx.nl/ 

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


RE: snapshots in local repository after install?

Posted by Bram de Kruijff <br...@gx.nl>.
> Not sure why it would be different for your two environments, 
> but you need to specify unique version to false to avoid the 
> timestamp being appended, e.g.:
> 
>   <distributionManagement>
>     <repository>
>       ...
>       <uniqueVersion>false</uniqueVersion>
>       ...
>     </repository>
>   </distributionManagement>

That looks like what I want to do, but how to set this for the
localRepository as defined in my settings.xml?

> Looks like you might have different pom files since one is 
> version 9.0.0 and the other is -SNAPSHOT.

No, same pom. The version is 9.0.0-SNAPSHOT but in the latter case SNAPSHOT
is substituded with a real timestamp in the localRepository.

regards,
Bram


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


Re: snapshots in local repository after install?

Posted by ngodfredsen <ng...@gmail.com>.
Not sure why it would be different for your two environments, but you need to
specify unique version to false to avoid the timestamp being appended, e.g.:

  <distributionManagement>
    <repository>
      ...
      <uniqueVersion>false</uniqueVersion>
      ...
    </repository>
  </distributionManagement>

Looks like you might have different pom files since one is version 9.0.0 and
the other is -SNAPSHOT.
-- 
View this message in context: http://www.nabble.com/snapshots-in-local-repository-after-install--tf1890555.html#a5172969
Sent from the Maven - Users forum at Nabble.com.


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