RE: [m2]create an entry into internal repository
How to deploy local jar to internal repository: 1) Install local: mvn install:install-file -Dfile=alice-commons-1.2.jar ^ -DgroupId=alice-commons ^ -DartifactId=alice-commons ^ -Dversion=1.2 ^ -Dpackaging=jar This create the structure .m2/repository/alice-commons/alice-commons/1.2 2) ftp all the structure to the docroot of the inernal repository But just now I tried to compile my project and I had this warning: Downloading: http:// localhost:8089/pub/maven/alice-commons/alice-commons/1.2/alice-commons-1.2.p om [WARNING] Unable to get resource from repository RossoAlice Repo (http://localhost:8089/pub/maven) < my repo :-) Downloading: http://repo1.maven.org/maven2/alice-commons/alice-commons/1.2/alice-commons- 1.2.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) < ok ... but without the .pom the compilation failed because the compiler is not able to found the jar (is it right?). ... in the step 1 above the installtion in the local repository create a maven-metadata-local.xml. who use it? Is there a way to create the .pom file like the maven-metadata-local.xml file? Tnx, Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2]create an entry into internal repository
Hi Jason, Jason van Zyl wrote on Thursday, October 27, 2005 6:15 PM: > On Thu, 2005-10-27 at 18:02 +0200, Jörg Schaible wrote: >> Hi Jason, >> >> Jason van Zyl wrote on Thursday, October 27, 2005 5:57 PM: [snip] > http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html >>> >>> At the bottom of that guide is an install method. I'll move this bit >>> to a more general place. >> >> How do I deploy them? Using an internal repo for the company, they >> should be installed only once ... > > I would assume that where you install the artifact is the > directory structure that is expose to your users as a remote > repository via http. > > So you would be on the machine if you were running an > install. If you're not on the machine and the artifact you > need to get to the remote repository does not have a maven > build then right now you're out of luck. We don't have a tool > yet that handles this though we're working on it. This is unfortunately the case and the machine keeping the repo does not even have a maven installation. > If you have a maven build then you just deploy as per usual. > If not then you have to get the artifact to the remote repository by > hand. OK. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2]create an entry into internal repository
On Thu, 2005-10-27 at 18:02 +0200, Jörg Schaible wrote: > Hi Jason, > > Jason van Zyl wrote on Thursday, October 27, 2005 5:57 PM: > > > On Thu, 2005-10-27 at 10:23 +0200, luca rasconi wrote: > >> im using m2 (subject modified :-) ). > >> well, > >> i've myjarfile-1.0.jar and i've a > > http://myhost/myreposytory i would > >> use as my internal repository. i understand that every artifact > >> should have a proper structure of directory and file, something like > >> this: myjarfile/myjarfile/1.0/ with the file myjarfile.pom and the > >> myjarfile-1.0.jar. > >> > >> So im asking if there's a way, starting from a jar file, to produce > >> such a proper structure of directory anf file. > > > > http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html > > > > At the bottom of that guide is an install method. I'll move > > this bit to a more general place. > > How do I deploy them? Using an internal repo for the company, they should be > installed only once ... I would assume that where you install the artifact is the directory structure that is expose to your users as a remote repository via http. So you would be on the machine if you were running an install. If you're not on the machine and the artifact you need to get to the remote repository does not have a maven build then right now you're out of luck. We don't have a tool yet that handles this though we're working on it. If you have a maven build then you just deploy as per usual. If not then you have to get the artifact to the remote repository by hand. > - Jörg > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2]create an entry into internal repository
From http://maven.apache.org/guides/introduction/introduction-to-repositories.htm l Deploying to the Internal Repository One of the most important reasons to have one or more internal repositories is to be able to publish your own private releases to share. To publish to the repository, you will need to have access via one of SCP, SFTP, FTP, or the filesystem. For example, to set up an SCP transfer. ~~ show the scp example. ... so if 2+2=4 then to deploy I need to install to my local repository and then transfering to the internal repository via ftp or something else. -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: giovedì 27 ottobre 2005 18.02 To: Maven Users List Subject: RE: [m2]create an entry into internal repository Hi Jason, Jason van Zyl wrote on Thursday, October 27, 2005 5:57 PM: > On Thu, 2005-10-27 at 10:23 +0200, luca rasconi wrote: >> im using m2 (subject modified :-) ). >> well, >> i've myjarfile-1.0.jar and i've a > http://myhost/myreposytory i would >> use as my internal repository. i understand that every artifact >> should have a proper structure of directory and file, something like >> this: myjarfile/myjarfile/1.0/ with the file myjarfile.pom and the >> myjarfile-1.0.jar. >> >> So im asking if there's a way, starting from a jar file, to produce >> such a proper structure of directory anf file. > > http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html > > At the bottom of that guide is an install method. I'll move > this bit to a more general place. How do I deploy them? Using an internal repo for the company, they should be installed only once ... - Jörg - 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]
RE: [m2]create an entry into internal repository
Hi Jason, Jason van Zyl wrote on Thursday, October 27, 2005 5:57 PM: > On Thu, 2005-10-27 at 10:23 +0200, luca rasconi wrote: >> im using m2 (subject modified :-) ). >> well, >> i've myjarfile-1.0.jar and i've a > http://myhost/myreposytory i would >> use as my internal repository. i understand that every artifact >> should have a proper structure of directory and file, something like >> this: myjarfile/myjarfile/1.0/ with the file myjarfile.pom and the >> myjarfile-1.0.jar. >> >> So im asking if there's a way, starting from a jar file, to produce >> such a proper structure of directory anf file. > > http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html > > At the bottom of that guide is an install method. I'll move > this bit to a more general place. How do I deploy them? Using an internal repo for the company, they should be installed only once ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2]create an entry into internal repository
On Thu, 2005-10-27 at 10:23 +0200, luca rasconi wrote: > im using m2 (subject modified :-) ). > well, > i've myjarfile-1.0.jar and i've a http://myhost/myreposytory i would use as > my internal repository. i understand that every artifact should have a > proper structure of directory and file, something like this: > myjarfile/myjarfile/1.0/ with the file myjarfile.pom and the > myjarfile-1.0.jar. > > So im asking if there's a way, starting from a jar file, to produce such a > proper structure of directory anf file. http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html At the bottom of that guide is an install method. I'll move this bit to a more general place. > tnx, > Luca > > > > On 10/27/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote: > > > > It depends. > > With m2 there's the maven repository plugin. > > With m1 you can create a bundle and use the repository:upload-bundle goal > > or you can do it manually (ftp, ...) > > > > Arnaud > > > > > > > -Message d'origine- > > > De : Luca Gmail [mailto:[EMAIL PROTECTED] > > > Envoyé : mercredi 26 octobre 2005 10:09 > > > À : users@maven.apache.org > > > Objet : create an entry into internal repository > > > > > > Hi all, > > > > > > I've some jar file and should upload to internal repository. > > > > > > Should I create the"bundle" manually? > > > > > > > > > > > > Tnx, > > > > > > Luca > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2]create an entry into internal repository
i created, manually, this tree inside the docroot of my internal repository. commons-collections `-- commons-collections `-- 2.1 |-- commons-collections-2.1.jar |-- commons-collections-2.1.jar.md5 `-- commons-collections-2.1.pom in such a way if i use a browser to get the url http://192.168.25.217:8089/pub/maven/commons-collections/commons-collections/2.1/commons-collections-2.1.pomall work. my project has a dependency to, guess what, commons-collections-2.1. but when mvn compile this id the output: Downloading: http://192.168.25.217:8089/pub/maven/commons-collections/commons-collections/2.1/commons-collections-2.1.pom 186b downloaded [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for commons-collections/commons-collections/2.1/commons-collections-2.1.pom - IGNORING [WARNING] POM for: 'commons-collections:commons-collections:pom:2.1' does not appear to be valid. Its will be ignored for artifact resolution. why? i know it's a warning but i don't like. tnx, Luca On 10/27/05, luca rasconi <[EMAIL PROTECTED]> wrote: > > im using m2 (subject modified :-) ). > well, > i've myjarfile-1.0.jar and i've a http://myhost/myreposytory i would use > as my internal repository. i understand that every artifact should have a > proper structure of directory and file, something like this: > myjarfile/myjarfile/1.0/ with the file myjarfile.pom and the > myjarfile-1.0.jar. > > So im asking if there's a way, starting from a jar file, to produce such a > proper structure of directory anf file. > > tnx, > Luca > > > > On 10/27/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote: > > > > It depends. > > With m2 there's the maven repository plugin. > > With m1 you can create a bundle and use the repository:upload-bundle > > goal or you can do it manually (ftp, ...) > > > > Arnaud > > > > > > > -Message d'origine- > > > De : Luca Gmail [mailto:[EMAIL PROTECTED] > > > Envoyé : mercredi 26 octobre 2005 10:09 > > > À : users@maven.apache.org > > > Objet : create an entry into internal repository > > > > > > Hi all, > > > > > > I've some jar file and should upload to internal repository. > > > > > > Should I create the"bundle" manually? > > > > > > > > > > > > Tnx, > > > > > > Luca > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
Re: [m2]create an entry into internal repository
im using m2 (subject modified :-) ). well, i've myjarfile-1.0.jar and i've a http://myhost/myreposytory i would use as my internal repository. i understand that every artifact should have a proper structure of directory and file, something like this: myjarfile/myjarfile/1.0/ with the file myjarfile.pom and the myjarfile-1.0.jar. So im asking if there's a way, starting from a jar file, to produce such a proper structure of directory anf file. tnx, Luca On 10/27/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote: > > It depends. > With m2 there's the maven repository plugin. > With m1 you can create a bundle and use the repository:upload-bundle goal > or you can do it manually (ftp, ...) > > Arnaud > > > > -Message d'origine- > > De : Luca Gmail [mailto:[EMAIL PROTECTED] > > Envoyé : mercredi 26 octobre 2005 10:09 > > À : users@maven.apache.org > > Objet : create an entry into internal repository > > > > Hi all, > > > > I've some jar file and should upload to internal repository. > > > > Should I create the"bundle" manually? > > > > > > > > Tnx, > > > > Luca > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >