You should use the deploy plugin to do it:
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
Hand based manipulations are forbidden on local and remote repositories !!!!

Jeff


On Jan 8, 2008 10:27 AM, Thomas Chang <[EMAIL PROTECTED]> wrote:

> I think maybe you haven't understood what my question means since I
> haven't cleared my question clearly. :-)
>
>  Surely I will not put the jar-files in my local repository. But sometimes
> I have to put the jar-files in the remote repository in the server machine.
> For example by using spring. The srpnig.jar has no version number. So I
> have to add the version number to it. In this case I have to create the
> dir-structure in the repository. And I don't like creating sub-dir for each
> version number. I just want to put them together under the same dir.
>
>
>
>  **********************************
>  There is a nice way to do it. Don't start putting your own files in
>  your local repository. Take a look at mvn install:install-file [1] or mvn
>  deploy:deploy-file [2] if you are working with a team.
>
> Hth,
>
> Nick Stolwijk
>
> [1]
>
> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
> [2]
>  http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
>
>
> -----Original Message-----
> From: Thomas Chang [mailto:[EMAIL PROTECTED]
> Sent: Tue 1/8/2008 9:37 AM
> To: users@maven.apache.org
> Subject: A question about <dependency/>
>
> Hi all,
>
>  Formerly I use the maven1 and in the "project.xml" I have the
>  <dependency/> as follow:
>
>  <dependency>
>  <groupId>jsf-facelets</groupId>
>  <artifactId>jsf-facelets</artifactId>
>  <version>1.1.12</version>
>  <type>jar</type>
>  </dependency>
>
>  And in the repository the dir-structure looks as follow:
>  /repo
>     /jsf-facelets
>        /jars
>           --jsf-facelets-1.1.12.jar
>
>  If I have another version of jsf-facelets.jar, I can simply put them
>  under the same dir.
>
>  Now by maven2 I have the same <dependency/> in POM.XML, but the
>  repository structure must be as follow:
>
>  /repo
>     /jsf-facelets
>        /jsf-facelets
>          /1.1.12
>              --jsf-facelets-1.1.12
>
>  If I have another version of jsf-facelets.jar. I have to create a new
>  sub-dir with the version number such as follow:
>
>
>  /repo
>     /jsf-facelets
>        /jsf-facelets
>          /1.1.12
>              --jsf-facelets-1.1.12
>          /1.1.13
>              --jsf-facelets-1.1.13
>
>  I find this is more complicated.
>
>  Is there anyway to do as by maven 1?
>
>  Regards
>
>  Thomas
>
>
>
>
> ---------------------------------
> Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

Reply via email to