Re: Maven Repositories settings best practice
I found this http://blog.sonatype.com/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/#.VIpCmTHF_AQ sorry about the noise -D On Thu, Dec 11, 2014 at 3:42 PM, Dan Tran dant...@gmail.com wrote: I do believe using maven mirror under setting.xml is best practice rather define them in pom.xml. However I am not able to locate some blogs I used to read before. Do you have any reference to this best practice? Very much appreciated -D
Re: Maven Repositories settings best practice
On 12 December 2014 at 11:53, Dan Tran dant...@gmail.com wrote: I found this http://blog.sonatype.com/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/#.VIpCmTHF_AQ sorry about the noise If you can't find it in the official docs, then feel free to hack up some enhancements.
Re: Maven Repositories settings best practice
Where is in the official doc, this should land? Thanks -D On Thu, Dec 11, 2014 at 6:52 PM, Barrie Treloar baerr...@gmail.com wrote: On 12 December 2014 at 11:53, Dan Tran dant...@gmail.com wrote: I found this http://blog.sonatype.com/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/#.VIpCmTHF_AQ sorry about the noise If you can't find it in the official docs, then feel free to hack up some enhancements.
Re: Maven Repositories settings best practice
On 12 December 2014 at 15:10, Dan Tran dant...@gmail.com wrote: Where is in the official doc, this should land? That's an awfully good question. There is another thread about re-organising the documentation. The User Centre (http://maven.apache.org/users/index.html) docs are pretty thin, but I would expect this advice to land in there. Or perhaps the Run Maven Configuring Maven ( http://maven.apache.org/guides/mini/guide-configuring-maven.html) has a section on Mirrors that links to http://maven.apache.org/guides/mini/guide-mirror-settings.html. The first sentence says Repositories are declared inside a project, which means that if you have your own custom repositories, those sharing your project easily get the right settings out of the box. which runs against the current advice. Unfortunately those mini-guides dont have a hierarchy available on the left hand navigation page and hacking the URL to drop of the last path just gives a blank page.
Re: maven repositories(how to
First of all, if you have a company repository you should probably talk to the people managing it about this. They should be able to provide support. Also, you relying on other repos than the internal one might not work in the big picture as other people consuming your artifacts will have to do that as well (although central should be one of the common ones). Secondly, your company internal repo should be a repo manager which should proxy Maven central (repo1) in a correct setup IMO. So you shouldn't need to add it. Again, talk to the people managing your repo. Lastly, Maven central is already declared as a repo in the super-POM (with the id 'central'). So it should be possible to accomplish by removing the second mirror element and changing the mirrorOf string of the first element to *,!central (quotes not included). This relies on this id not to change in the super-POM so it's not future proof though. This can be solved by re-declaration Maven central as a repo in settings.xml. But, once again, please talk to your internal repository staff first. /Anders On Wed, Dec 21, 2011 at 05:12, chandrasheker chandrasheke...@gmail.com wrote: Hi , I am using maven 3.0.3.how to configure maven official repository and my company remote repository. It is always connect to repo1 central repository.plz help me. mirror idrepository/id mirrorOf*,!repo1/mirrorOf nameConsRepo/name urlhttp://mycompany.com/repository/url /mirror mirror idrepo1/id mirrorOfexternal:*/mirrorOf namemaven2/name urlhttp://repo1.maven.org/maven2/url /mirror Plz help me Thanks Regards, shekarchandra -- View this message in context: http://maven.40175.n5.nabble.com/maven-repositories-how-to-tp5090872p5090872.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven repositories without the jars
It means that this artifact used to be under the coordinates xerces:cerces, but is now using the coordinates xerces:xercesImpl. When the developers moved it, the created a so-called relocation pom in the old space, to simplify for the users. The build still works right? But you get this warning. You should update your pom(s) to use the new coordinates instead of the old ones. If it's in one of your dependencies, it's not very much you can do but to report this to the devs of the artifact with that dependency. /Anders On Thu, Jan 20, 2011 at 10:09, Jonathan Vila Lopez jonathan.v...@gmail.comwrote: Hello. When I try to compile my software I get this errors : [WARNING] The artifact xerces:xerces:jar:2.4.0 has been relocated to xerces:xercesImpl:jar:2.4.0 Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar Downloading: http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar Downloading: http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar Downloading: http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar When I browse those urls I see that indeed the jar file does not exist, but pom and sha files exists. 1. So, what's the purpose to store those files without the jar ? 2. Do I have to manually download the jars from their right location ? Thank's a lot. - *Slitzweitz !! *
Re: Maven repositories without the jars
I should clarify: Maven handles this relocation for you. But you should update the coordinates used for future versions there might not be a relocation pom. /Anders On Thu, Jan 20, 2011 at 11:13, Anders Hammar and...@hammar.net wrote: It means that this artifact used to be under the coordinates xerces:cerces, but is now using the coordinates xerces:xercesImpl. When the developers moved it, the created a so-called relocation pom in the old space, to simplify for the users. The build still works right? But you get this warning. You should update your pom(s) to use the new coordinates instead of the old ones. If it's in one of your dependencies, it's not very much you can do but to report this to the devs of the artifact with that dependency. /Anders On Thu, Jan 20, 2011 at 10:09, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: Hello. When I try to compile my software I get this errors : [WARNING] The artifact xerces:xerces:jar:2.4.0 has been relocated to xerces:xercesImpl:jar:2.4.0 Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar Downloading: http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar Downloading: http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar Downloading: http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar When I browse those urls I see that indeed the jar file does not exist, but pom and sha files exists. 1. So, what's the purpose to store those files without the jar ? 2. Do I have to manually download the jars from their right location ? Thank's a lot. - *Slitzweitz !! *
Re: Maven repositories without the jars
Hello Anders There is no problem with xerces and its relocation the problem is that any downloading has downloaded anything : http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar because the referenced jar does not exist in the repo1 repository. - *Slitzweitz !! * On Thu, Jan 20, 2011 at 11:14 AM, Anders Hammar and...@hammar.net wrote: I should clarify: Maven handles this relocation for you. But you should update the coordinates used for future versions there might not be a relocation pom. /Anders On Thu, Jan 20, 2011 at 11:13, Anders Hammar and...@hammar.net wrote: It means that this artifact used to be under the coordinates xerces:cerces, but is now using the coordinates xerces:xercesImpl. When the developers moved it, the created a so-called relocation pom in the old space, to simplify for the users. The build still works right? But you get this warning. You should update your pom(s) to use the new coordinates instead of the old ones. If it's in one of your dependencies, it's not very much you can do but to report this to the devs of the artifact with that dependency. /Anders On Thu, Jan 20, 2011 at 10:09, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: Hello. When I try to compile my software I get this errors : [WARNING] The artifact xerces:xerces:jar:2.4.0 has been relocated to xerces:xercesImpl:jar:2.4.0 Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar Downloading: http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar Downloading: http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar Downloading: http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar When I browse those urls I see that indeed the jar file does not exist, but pom and sha files exists. 1. So, what's the purpose to store those files without the jar ? 2. Do I have to manually download the jars from their right location ? Thank's a lot. - *Slitzweitz !! *
Re: Maven repositories without the jars
There is no problem with xerces and its relocation the problem is that any downloading has downloaded anything : because the referenced jar does not exist in the repo1 repository. http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Repositories acess / servers / signon specs in settings.xml
Hello, 2007/10/4, houzecl [EMAIL PROTECTED]: question 2: If both servers need a signon (possibly with different user/password ) will it be ok to have for Maven users the following settings.xml : and more generally what is the usage scope of the server ... /server specs in settings.xml ? http://maven.apache.org/ref/2.0.7/maven-settings/settings.html Damien Lecan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Repositories acess / servers / signon specs in settings.xml
well, I already looked at settings reference. As it is pointed out somewhere else in this forum (cf. why maven is hard or improving maven site docs) among others topics, this specific feature (security) is not really clear, and I'd just like to have a confirmation that server settings apply to any repository server (wether it is ftp, http, webdav,...) before setting up all of it. Regarding documentation issues, in the settings reference one can find for the server element: ... configuration: Extra configuration for the transport layer. id: No description. I am not sure that No description or extra configuration for the transport layer is really helpful. Also, I forgot about build extensions. Maven site doc states: To publish to the repository, you will need to have access via one of SCP, SFTP, FTP, WebDAV, or the filesystem. Connectivity is accomplished with the various wagons . Some wagons may need to be added as extension to your build. Then if you jump to extension, it states: Describes a build extension to utilise. Element Description groupId The group ID of the extension's artifact. artifactId The artifact ID of the extension. version The version of the extension. Well, i'm not sure this really helps. So let's go to the book Maven: The Definitive Guide. Fortunately, here it says an extension is needed for transport others than (file and http) and gives an example for FTP. Okay, now I know that i'll need extensions for ftp or webdav. What will be the impact of these extensions, when I'll have to initialize my repositories with some manual deployments ? For this, Maven site (http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html) states: First, the wagon-provider(wagon-ftp, wagon-file, etc..) must be placed to your %M2_HOME%/lib. but some more google search will take me to: http://docs.codehaus.org/display/MAVENUSER/Deploying+3rd+Party+Jars+With+WebDAV, or http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#question Plus, there is nothing about each respective wagon-provider within the wagon site. Which link should I trust ? How do I know exactly which jars are really needed ? Please, forgive me if I look pushy. I am very grateful for all Maven's developers work and anwers people are giving in this forum. It's just not that easy to get reliable and appropriate information, probably because Maven (by its extensible plugin nature) explodes it. Damien Lecan 2 wrote: Hello, 2007/10/4, houzecl [EMAIL PROTECTED]: question 2: If both servers need a signon (possibly with different user/password ) will it be ok to have for Maven users the following settings.xml : and more generally what is the usage scope of the server ... /server specs in settings.xml ? http://maven.apache.org/ref/2.0.7/maven-settings/settings.html Damien Lecan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-Repositories-acess---servers---signon-specs-in-settings.xml-tf4568000s177.html#a13040892 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven repositories: metadata vs pom files?
On 11/20/06, Wayne Fay [EMAIL PROTECTED] wrote: This isn't a case of repo has pom but no jar, instead its the opposite, jar with no pom. So I don't think its an artifact which cannot be redistributed. ;-) Oops. Not quite paying enough attention there. :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven repositories https
Douglas Ferguson wrote: My IT department just started requiring my repository to use https. However they didnt install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isnt signed? Is there anything else that I need to consider when using https for the repository url? Good day to you, Douglas, I think you have to specify the following in your {M2_HOME}\conf\settings.xml server id.../id username.../username password.../password /server Cheers, Franz -- View this message in context: http://www.nabble.com/maven-repositories---https-tf2269481.html#a6305623 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven repositories https
I ended up using scp:// because I couldn't get anything to work over https:// However, I was unable to define multiple repositories using the same id So they could share the server user pass. When you have the same id the first one wins and the others aren't picked up. Using the same id works if they are in separate lists, i.e. dependency management:repositories, dependency management:snapshotrepositories, repositories But when you put them in the same list (i.e. all in repositories then it don't work) D- -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 8:14 AM To: users@maven.apache.org Subject: Re: maven repositories https Douglas Ferguson wrote: My IT department just started requiring my repository to use https. However they didn_t install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isn_t signed? Is there anything else that I need to consider when using https for the repository url? Good day to you, Douglas, I think you have to specify the following in your {M2_HOME}\conf\settings.xml server id.../id username.../username password.../password /server Cheers, Franz -- View this message in context: http://www.nabble.com/maven-repositories---https-tf2269481.html#a6305623 Sent from the Maven - Users forum at Nabble.com. - 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: maven repositories https
Not sure if this is the recommended approach but I got it to work by using scp:// -Original Message- From: Douglas Ferguson Sent: Wednesday, September 13, 2006 10:51 PM To: users Subject: maven repositories https My IT department just started requiring my repository to use https. However they didnt install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isnt signed? Is there anything else that I need to consider when using https for the repository url? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven repositories
Hi, regarding your mail http://www.mail-archive.com/users@maven.apache.org/msg22668.html on the maven users list. Is there a way (with maven1) to generate html and pdf javadoc for the same project? Can I invoke the javadoc:generate goal from a maven.xml with different property sets? Thanks for your help, Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/
Re: maven repositories
You've asked 2 different questions here. 1) You request an easier way to download dependent files from a Maven repository than listing them as dependencies in a POM. 2) You want to know how to share downloaded dependencies with other developers at your location. Regarding 1, Dan Tran suggested that you could use ant:wget to download artifacts. I often look at the repository on Ibiblio, or at some of the others, there's 1 at Apache and 1 at CodeHaus with my web browser and download the files that I want. Does that actually answer your question? Regarding 2, you want to know how to share files that you download with others at your location. Normally that requires some infrastructure. The general solution is to configure a machine to act as a local maven.repo.remote, so that all Maven requests go through it, and it caches any artifacts that are downloaded. There is an existing project named maven-proxy at Codehaus that can do this for you. Regarding your ideas about modifying the behavior of the maven-javadoc-plugin, you don't need to override the javadoc goal using Jelly script in your maven.xml file. If you look at the documentation for the plugin, you'll see that it provides a property maven.javadoc.doclet that you can use to specify the doclet. http://maven.apache.org/reference/plugins/javadoc/properties.html Hope that this helps. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven repositories
ant:wget? -D On 8/25/05, Tim Dyck [EMAIL PROTECTED] wrote: Is there a way to easier download jars from the repository without having to list it as a dependency in a project? In my case, I want to modify the maven.xml file and override the javadoc goal to also build a PDF of the javadocs using pdfdoclet. Though, somehow I need to be able to download that file from the repository so that when others build locally on their build that they do not need to know how to manually copy it to their local repository. Ideas? Thanks, Tim Dyck - 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: Maven repositories?
You can point your browser to http://www.ibiblio.org/maven and you'll get a directory listing of all the artifacts main directories (groupId). -Original Message- From: Jonathan Hawkes [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 9:18 AM To: [EMAIL PROTECTED] Subject: Maven repositories? Hey, Is there any way to browse the repository at ibiblio.org to see if a particular component/library is installed there? What about alternative repositories? Thanks! Jonathan Hawkes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven repositories?
Thanks again. - Original Message - From: Steve Garcia [EMAIL PROTECTED] To: 'Maven Users List' [EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 10:16 AM Subject: RE: Maven repositories? You can point your browser to http://www.ibiblio.org/maven and you'll get a directory listing of all the artifacts main directories (groupId). -Original Message- From: Jonathan Hawkes [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 9:18 AM To: [EMAIL PROTECTED] Subject: Maven repositories? Hey, Is there any way to browse the repository at ibiblio.org to see if a particular component/library is installed there? What about alternative repositories? Thanks! Jonathan Hawkes - 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: Maven repositories?
Hi Jonathan Sure, using a web browser ;) http://www.ibiblio.org/maven/ Or by adding your jar description and version in your project file. By calling maven java:compile, you'll get the error message if the desired jar is missing. Eric. -Original Message- From: Jonathan Hawkes [mailto:[EMAIL PROTECTED] Sent: December 23, 2003 12:18 PM To: [EMAIL PROTECTED] Subject: Maven repositories? Hey, Is there any way to browse the repository at ibiblio.org to see if a particular component/library is installed there? What about alternative repositories? Thanks! Jonathan Hawkes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]