Mirrors
Hi all, I was wondering if it is possible in Maven 2.2.1 to setup 2 mirrors that will take all my requests. I have the first one configured to take all release-versions, the second to handle snapshots. Now, the problem is that when I tell the first one to mirror '*', the second mirror never gets called... Is there a way to solve this problem? Thanks. -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors
http://maven.apache.org/guides/mini/guide-mirror-settings.html See Advance Mirror Specification. /Anders On Wed, Feb 23, 2011 at 12:18, Asmann, Roland roland.asm...@adesso.atwrote: Hi all, I was wondering if it is possible in Maven 2.2.1 to setup 2 mirrors that will take all my requests. I have the first one configured to take all release-versions, the second to handle snapshots. Now, the problem is that when I tell the first one to mirror '*', the second mirror never gets called... Is there a way to solve this problem? Thanks. -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors
I know that, but I don't want to list all snapshot-repo's I have in both mirrors (first as exclude, in the other as include). I was hoping there was an easier way to do this... On 23.02.2011 13:05, Anders Hammar wrote: http://maven.apache.org/guides/mini/guide-mirror-settings.html See Advance Mirror Specification. /Anders On Wed, Feb 23, 2011 at 12:18, Asmann, Roland roland.asm...@adesso.atwrote: Hi all, I was wondering if it is possible in Maven 2.2.1 to setup 2 mirrors that will take all my requests. I have the first one configured to take all release-versions, the second to handle snapshots. Now, the problem is that when I tell the first one to mirror '*', the second mirror never gets called... Is there a way to solve this problem? Thanks. -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors
Did You try something like this: mirrors mirror idshapshot-mirrors/id nameSnapshot Mirros/name urlhttp://snapshots.mycompany.com/repo/url mirrorOf*-snapshots/mirrorOf /mirror mirror idrelease-mirrors/id nameRelease Mirros/name urlhttp://releases.mycompany.com/repo/url mirrorOf*-releases/mirrorOf !-- Or maybe: mirrorOf!*-snapshots/mirrorOf -- /mirror mirror !-- OPTIONAL!!! -- idthirdparty-mirrors/id nameThirdparty Mirros/name urlhttp://proxy.mycompany.com/repo/url mirrorOf!*-releases,!*-snapshots/mirrorOf /mirror /mirrors I didn't double-check, but I'd say this should work ... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Integrate Maven Plugin Code (Mojo's) into Application
Hi, currently i'm in the process to integrate the code of a Maven plugin into an other application (no Plugin). After i integrated the code i will refactor the code to better code and remove the dependencies to Maven Plugin parts. Now the problem arises that the envinroment of the Mojo's (Maven Plugin) does of course not exist in my application. So i have taken a look how to setup a MavenSession, ProjectBuilder etc. but i couldn't found any usefull information about that. I have found the following page: http://docs.codehaus.org/display/MAVEN/Maven+3.0.x But the link to the maven embedder (mini guide) doesn't exist anymore...or to be more accurate the page the link points to does not exist anymore.. So the question is: Does exist a documentation or a good example to do an Maven Embedder in an application...I just wan't to execute the life-cycle i just wan't to call the execution() methods of the Mojo's... Many thanks in Advance. Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/Integrate-Maven-Plugin-Code-Mojo-s-into-Application-tp3397120p3397120.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
Re: Mirrors
I haven't tried that, but what I read from the Maven-pages, it doesn't understand wildcards like that... But I can try though... Then again, it would only work if the repositories are actually named like that, and I can't always influence that (3rd party!)... Ah well, for now I'll take the Nexus-solution[1] and explicitly add a snapshot-repository that is always active. [1] http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html On 23.02.2011 13:46, Marc Rohlfs wrote: Did You try something like this: mirrors mirror idshapshot-mirrors/id nameSnapshot Mirros/name urlhttp://snapshots.mycompany.com/repo/url mirrorOf*-snapshots/mirrorOf /mirror mirror idrelease-mirrors/id nameRelease Mirros/name urlhttp://releases.mycompany.com/repo/url mirrorOf*-releases/mirrorOf !-- Or maybe: mirrorOf!*-snapshots/mirrorOf -- /mirror mirror !-- OPTIONAL!!! -- idthirdparty-mirrors/id nameThirdparty Mirros/name urlhttp://proxy.mycompany.com/repo/url mirrorOf!*-releases,!*-snapshots/mirrorOf /mirror /mirrors I didn't double-check, but I'd say this should work ... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors
I haven't tried that, but what I read from the Maven-pages, it doesn't understand wildcards like that... But I can try though... I thought it would work, but I am not sure - I have to admit ... Then again, it would only work if the repositories are actually named like that, and I can't always influence that (3rd party!)... You use the repository IDs in the 'mirrorOf' configuration, and those IDs are defined in Your pom.xmls or Your settings.xml, where You define the remote repositories You want to use - this means that You should be able to influence that. Or did I misunderstand Your problem? Ah well, for now I'll take the Nexus-solution[1] and explicitly add a snapshot-repository that is always active. OK, if You have everything in one Nexus, creating a repository group for all of Your repositories (even including proxy repos) is the best way, of course. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors
On 23.02.2011 18:40, Marc Rohlfs wrote: I haven't tried that, but what I read from the Maven-pages, it doesn't understand wildcards like that... But I can try though... I thought it would work, but I am not sure - I have to admit ... Then again, it would only work if the repositories are actually named like that, and I can't always influence that (3rd party!)... You use the repository IDs in the 'mirrorOf' configuration, and those IDs are defined in Your pom.xmls or Your settings.xml, where You define the remote repositories You want to use - this means that You should be able to influence that. Or did I misunderstand Your problem? Partially true. For my own repositories, this will work. However, Maven also checks the repositories defined in all dependencies and those I have no influence over. Ah well, for now I'll take the Nexus-solution[1] and explicitly add a snapshot-repository that is always active. OK, if You have everything in one Nexus, creating a repository group for all of Your repositories (even including proxy repos) is the best way, of course. If it were only a single Nexus, then the normal mirrorOf * would have worked. Would've been great if Maven had an option to mirror types of repositories (release/snapshot) as well as id's. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Creating a repository
Can someone please point me in the direction on how to create a respository that will be located behind our firewall and accessible to our engineers. Thanks - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a repository
Hi, Can someone please point me in the direction on how to create a respository that will be located behind our firewall and accessible to our engineers. I would suggest to install a repository Manager (Artifactory, Nexus, Archiva) and work with them... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a repository
Greetings, On Wed, Feb 23, 2011 at 1:08 PM, Mark static.void@gmail.com wrote: Can someone please point me in the direction on how to create a respository that will be located behind our firewall and accessible to our engineers. Try installing a MRM like http://nexus.sonatype.org/ or http://archiva.apache.org/ and then follow http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Hi, How can I config Simian?
Hi, Hint, when looking a maven plugin that integrates Z, google Z maven plugin. Most of the time, it will show the corresponding maven plugin as first result (sometimes, just take care of choosing the maven 2 version, not maven 1). Doing so, I just found this: http://mojo.codehaus.org/simian-report-maven-plugin/introduction.html http://mojo.codehaus.org/simian-report-maven-plugin/introduction.htmlDoes this match what you need? Cheerss 2011/2/23 jy hu huj...@gmail.com Hi there, I would like to config Simian in maven and then get the report, but I can't find out the plug-in in the list of Maven-plugs, Does anyone ever install it successfully? thanks. -- ** *Warm wishes,* *Jaina(hu jun ying)* -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Hi, How can I config Simian?
By the way, if you're looking for duplicated code candidates, you also have CPD. Just run mvn pmd:cpd inside your project and it will generate the corresponding report. Cheers 2011/2/23 Baptiste MATHUS m...@batmat.net Hi, Hint, when looking a maven plugin that integrates Z, google Z maven plugin. Most of the time, it will show the corresponding maven plugin as first result (sometimes, just take care of choosing the maven 2 version, not maven 1). Doing so, I just found this: http://mojo.codehaus.org/simian-report-maven-plugin/introduction.html http://mojo.codehaus.org/simian-report-maven-plugin/introduction.htmlDoes this match what you need? Cheerss 2011/2/23 jy hu huj...@gmail.com Hi there, I would like to config Simian in maven and then get the report, but I can't find out the plug-in in the list of Maven-plugs, Does anyone ever install it successfully? thanks. -- ** *Warm wishes,* *Jaina(hu jun ying)* -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: PMD rule exclusion precision
Ended up using the //NOPMD comment tag to exclude these cases, which is supported by the plugin. As far as I know, you can't use that mechanism to turn off only certain PMD rules, so conceivably you could end up hiding other errors that you don't want to hide, but I think it's close enough for now. It's better than having a bunch of extraneous errors in the report or turning off the rule altogether. On Tue, Feb 22, 2011 at 6:10 PM, Wayne Fay wayne...@gmail.com wrote: work). But can you configure it to not run certain rules only on certain files? For example, can I tell it to not run the AvoidDuplicateLiterals on just a single file? If you can configure PMD itself to support this requirement, then most likely the Maven2 plugin can be configured to support it as well, but it may require some modification of the plugin code. This is such a specific requirement, I doubt anyone has needed to do it previously so you're probably in for some hacking... but plugins are generally simple to figure out and many are open source, so you should be able to make it work with a little effort. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how can we replace properties values in the parent element .
On Tue, Feb 22, 2011 at 3:11 AM, chandra.c49 chandramohan@gmail.com wrote: And, if we build the parent and then the component without relativePath , it builds fine.But,not everytime we build from the component , and as the parent project name changes and is maintianed in the settings.xml profile; hence it requires a way where the relativePath can be dynamically loaded from settings.xml profiles. At the risk of sounding like a three-year-old... But, WHY? Why do you need to switch parents every time you build? This is not a standard/conventional Maven project structure. Most likely you need to consolidate the stuff in the 'different' parents into a single pom, possibly controlled by profiles. But until we hear why you're trying to do it in the first place, that's just a guess. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
PMD'S or findbug's report
Hi Everyone, I am wondering why there is a maked difference in the checking result (Pmd,or Findbugs) between mvn site and plug-in in Eclipse . Here are two checks for the same maven project as bellow , 1, I installed the Pmd and Findbugs's plug-in in Eclipse. then to check the project by using PMD or Findbugs.I found many codes were marked in java files. 2, I typed mvn site via Cmd or run MVN in Eclipse after I configed Pmd and FindBugs's report in POM.xml. then I open the index.html in site folder, but only several errors were marked in the Pmd or FindBug's report. particularly, PMD's report included an info in a java file. I don't why, Does anyone tell me what I am missing in MVN? why are they difference? Many thanks! -- ** *Warm wishes,* *Jaina(hu jun ying)*
Re: Hi, How can I config Simian?
Hello, Thanks for your reply, but there is no the plugin by visit http://repo1.maven.org/maven2/org/codehaus/mojo/ and I found http://www.mvnsearch.org/maven2/redhill/simian/ http://www.mvnbrowser.com/artifact-details.html?groupId=redhillartifactId=simian but it does't work. Warm wishes, Jaina, On Thu, Feb 24, 2011 at 2:28 AM, Baptiste MATHUS m...@batmat.net wrote: By the way, if you're looking for duplicated code candidates, you also have CPD. Just run mvn pmd:cpd inside your project and it will generate the corresponding report. Cheers 2011/2/23 Baptiste MATHUS m...@batmat.net Hi, Hint, when looking a maven plugin that integrates Z, google Z maven plugin. Most of the time, it will show the corresponding maven plugin as first result (sometimes, just take care of choosing the maven 2 version, not maven 1). Doing so, I just found this: http://mojo.codehaus.org/simian-report-maven-plugin/introduction.html http://mojo.codehaus.org/simian-report-maven-plugin/introduction.html Does this match what you need? Cheerss 2011/2/23 jy hu huj...@gmail.com Hi there, I would like to config Simian in maven and then get the report, but I can't find out the plug-in in the list of Maven-plugs, Does anyone ever install it successfully? thanks. -- ** *Warm wishes,* *Jaina(hu jun ying)* -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- ** *Warm wishes,* *Jaina(hu jun ying)*
Re: PMD'S or findbug's report
Hi, Most likely, you might not be using the same version of pmd/findbugs. As long as you take care to define the same rule you'll have the same results (at least I can say that for pmd as we're using it almost every day). Cheers Le 24 févr. 2011 01:59, jy hu huj...@gmail.com a écrit : Hi Everyone, I am wondering why there is a maked difference in the checking result (Pmd,or Findbugs) between mvn site and plug-in in Eclipse . Here are two checks for the same maven project as bellow , 1, I installed the Pmd and Findbugs's plug-in in Eclipse. then to check the project by using PMD or Findbugs.I found many codes were marked in java files. 2, I typed mvn site via Cmd or run MVN in Eclipse after I configed Pmd and FindBugs's report in POM.xml. then I open the index.html in site folder, but only several errors were marked in the Pmd or FindBug's report. particularly, PMD's report included an info in a java file. I don't why, Does anyone tell me what I am missing in MVN? why are they difference? Many thanks! -- ** *Warm wishes,* *Jaina(hu jun ying)*
Re: Hi, How can I config Simian?
That's a sandbox plugin. More info here: http://mojo.codehaus.org/using-sandbox-plugins.html Please move the conversation over to the mojo user list if you have more questions regarding this specific plugin. /Anders On Thu, Feb 24, 2011 at 02:45, jy hu huj...@gmail.com wrote: Hello, Thanks for your reply, but there is no the plugin by visit http://repo1.maven.org/maven2/org/codehaus/mojo/ and I found http://www.mvnsearch.org/maven2/redhill/simian/ http://www.mvnbrowser.com/artifact-details.html?groupId=redhillartifactId=simian but it does't work. Warm wishes, Jaina, On Thu, Feb 24, 2011 at 2:28 AM, Baptiste MATHUS m...@batmat.net wrote: By the way, if you're looking for duplicated code candidates, you also have CPD. Just run mvn pmd:cpd inside your project and it will generate the corresponding report. Cheers 2011/2/23 Baptiste MATHUS m...@batmat.net Hi, Hint, when looking a maven plugin that integrates Z, google Z maven plugin. Most of the time, it will show the corresponding maven plugin as first result (sometimes, just take care of choosing the maven 2 version, not maven 1). Doing so, I just found this: http://mojo.codehaus.org/simian-report-maven-plugin/introduction.html http://mojo.codehaus.org/simian-report-maven-plugin/introduction.html Does this match what you need? Cheerss 2011/2/23 jy hu huj...@gmail.com Hi there, I would like to config Simian in maven and then get the report, but I can't find out the plug-in in the list of Maven-plugs, Does anyone ever install it successfully? thanks. -- ** *Warm wishes,* *Jaina(hu jun ying)* -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- ** *Warm wishes,* *Jaina(hu jun ying)*