[ANN] CodeNarc Maven Plugin version 0.16.1-beta-1 Released
Hi, The Mojo team is pleased to announce the release of version 0.16.1-beta-1 of the CodeNarc Maven Plugin. CodeNarc scans Groovy source code, looking for violations of predefined or custom rules and generates an HTML report of the results. These rules include checks for coding standards, or searching for unused code, possible bugs or bad coding practices. For more information on CodeNarc go to: http://codenarc.sourceforge.net/ This is an initial release for the general community. Documentation for the CodeNarc Maven Plugin can be found at http://mojo.codehaus.org/codenarc-maven-plugin/index.html Enjoy, The Mojo team.
[maven-surefire-plugin] Issue with -Dtest param under Windows
I'm having an issue with 'mvn test -Dtest=testClassName' It works fine under Linux and OsX but under Windows the test is simply not found. I'm using latest TestNG. Any clue on what the problem could be? -- View this message in context: http://maven.40175.n5.nabble.com/maven-surefire-plugin-Issue-with-Dtest-param-under-Windows-tp5518723p5518723.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: Howto activate ProxyProfile
Sorry for answering so late. The described approach would activate a profile base on a property. I don't see any relationship to a proxy profile (Whatever that is). Once again: There is no proxies element within profile. Thus profile can NOT be used to configure proxies. M. Am 25.02.2012 um 00:47 schrieb Martin Gainty: setting a profile with the name of the profile and the value of the proxy would work e.g. profiles profile activation property nameproxy1/name valuelocalhost/value /propertyto activate simply specify proxy1=localhost at command line mvn groupId:artifactId:goal -Dproxy1=localhostdoes this help Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: martineigenbr...@googlemail.com Subject: Howto activate ProxyProfile Date: Fri, 24 Feb 2012 10:42:20 +0100 To: users@maven.apache.org The Page https://maven.apache.org/ref/3.0.4/maven-settings/settings.html says for the element proxies/proxy*: Multiple proxy profiles might come in handy for anyone working from a notebook or other mobile platform, to enable easy switching of entire proxy configurations by simply specifying the profile id, again either from the command line or from the defaults section below. However there is no defaults section below in this document. The xsd (https://maven.apache.org/xsd/settings-1.0.0.xsd) has the same problem. Also I don't see how to assign an id to a proxy and how I'd pass it at the command line. The Documentation is either wrong here or missing some information. Regards, Martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to resolve maven dependencies inside the maven plugin?
I need to get all dependencies(including transitive) for project inside my maven plugin. This is covered by the documentation: http://maven.apache.org/developers/mojo-api-specification.html Search for requiresDependencyResolution and you will find it right away. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Howto activate ProxyProfile
(https://maven.apache.org/xsd/settings-1.0.0.xsd) has the same problem. Also I don't see how to assign an id to a proxy and how I'd pass it at the command line. The Documentation is either wrong here or missing some information. There is very clearly an id element in the proxy node. The default id value is default. I have no idea how it is used though. As for how to enable/disable/select which proxy to use from the command line, I have no idea. I've never needed to do that (yet). I would suggest instead using multiple settings.xml files and creating a mvn-work.bat/.sh (which uses -f settings-work.xml) and mvn-home.bat/.sh (using -f settings-home.xml) etc. Alternatively you can feel free to dig into the (open) source code and modify it to suit your needs, then contribute the changes back via JIRA. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven antrun plugin 1.7 ignores second execution
I heard back from Kai over the weekend and wanted to make sure this made it back to the list for future Google and Nabble searchers... ## Ok, tested it now, was absolutely my fault. If I want the post-integration-test phase to run it is not sufficient to call 'mvn integration-test', use 'mvn verify' instead. Cheers, Kai ## On Fri, Feb 24, 2012 at 6:56 PM, Kai Hackemesser kai.hackemes...@gmail.com wrote: mvn integration-test. Wait. I think I got it. Will try Monday at work. Cheers, Kai 2012/2/25 Wayne Fay wayne...@gmail.com that matches the target of the first execution. However the second execution never appears in the log nor is a file created for it. What am I ... 5. execution 6. idStarting Apache/id 7. phasepre-integration-test/phase ... 21. execution 22. idStopping Apache/id 23. phasepost-integration-test/phase What command are you executing? mvn ... PS Here's a hint into why this probably isn't working... review the lifecycle: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
repository id question
Are there issues with the re-use of the same repository id across the various repository declarations? As identifiers, it seems like they should each be unique. Is there anything wrong with the following . . . repositories repository idmyRepo/id nameInternal Repo /name urlhttp://myRepo/nexus/content/groups/public/url /repository /repositories pluginRepositories pluginRepository idmyRepo/id nameInternal Repo /name urlhttp://myRepo /nexus/content/groups/public/url /pluginRepository /pluginRepositories distributionManagement repository idmyRepo/id nameInternal Releases/name urlhttp://myRepo /nexus/content/repositories/releases/url /repository snapshotRepository idmyRepo /id nameSnapshots/name urlhttp://myRepo /nexus/content/repositories/snapshots/url /snapshotRepository /distributionManagement
Re: scm clearcase plugin: why URL is needed
What I was expecting was this: using the clear case plugin, my maven will connect to the stream/vob in the server and update the view. What it did was execute a command for which the URl was not necessary at all. I dont think Perhaps there is an expectation that, while the plugin today calls out to an external tool for processing, in the future it might use a 100% Java solution like is being done for svn etc and the URL will be needed at that time? Is this the normal way of usage of the plugin or am i doing something wrong. I will appreciate if any one can clear my confusion here. I don't use Clearcase (thankfully?) and so I have no idea if this is normal or not. If you are inclined to fix things so that what Maven in this case does matches your expectations better, feel free to scratch your own itch for the benefit of yourself and the entire Clearcase + Maven community. I think the best long-term fix would be to leverage any existing 100% Java libraries that interface to Clearcase and write a proper Maven SCM plugin for CC. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [maven-surefire-plugin] Issue with -Dtest param under Windows
I'm having an issue with 'mvn test -Dtest=testClassName' It works fine under Linux and OsX but under Windows the test is simply not found. Can you create a sample project that demonstrates this failure in the functionality? If not, the likelihood of someone actually looking into this is quite low. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Set my own logger
I'd like to replace the default Maven logger implementation with my own. I assume I need to create an extension but if that is try, how do I get a list of mojo's to call setLog on? Is there a Plexus injection way to do this. I've seen other people ask this question before on this list... But I've never seen anyone reply with a working example/solution. If you do find a solution, please share it back. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: repository id question
if they all use the same credentials, I would say no issues On 27 February 2012 16:08, chad.da...@emc.com wrote: Are there issues with the re-use of the same repository id across the various repository declarations? As identifiers, it seems like they should each be unique. Is there anything wrong with the following . . . repositories repository idmyRepo/id nameInternal Repo /name urlhttp://myRepo/nexus/content/groups/public/url /repository /repositories pluginRepositories pluginRepository idmyRepo/id nameInternal Repo /name urlhttp://myRepo /nexus/content/groups/public/url /pluginRepository /pluginRepositories distributionManagement repository idmyRepo/id nameInternal Releases/name urlhttp://myRepo /nexus/content/repositories/releases/url /repository snapshotRepository idmyRepo /id nameSnapshots/name urlhttp://myRepo /nexus/content/repositories/snapshots/url /snapshotRepository /distributionManagement
RE: repository id question
So, the id is only used to match the credential declarations ? -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: Monday, February 27, 2012 9:44 AM To: Maven Users List Subject: Re: repository id question if they all use the same credentials, I would say no issues On 27 February 2012 16:08, chad.da...@emc.com wrote: Are there issues with the re-use of the same repository id across the various repository declarations? As identifiers, it seems like they should each be unique. Is there anything wrong with the following . . . repositories repository idmyRepo/id nameInternal Repo /name urlhttp://myRepo/nexus/content/groups/public /url /repository /repositories pluginRepositories pluginRepository idmyRepo/id nameInternal Repo /name urlhttp://myRepo /nexus/content/groups/public/url /pluginRepository /pluginRepositories distributionManagement repository idmyRepo/id nameInternal Releases/name urlhttp://myRepo /nexus/content/repositories/releases/url /repository snapshotRepository idmyRepo /id nameSnapshots/name urlhttp://myRepo /nexus/content/repositories/snapshots/url /snapshotRepository /distributionManagement - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: repository id question
Which by extension means that you do want to use different access rights for them at some stage you have to change all the identifiers.. So I would have them different.. manfred On 12-02-27 08:44 AM, Stephen Connolly wrote: if they all use the same credentials, I would say no issues On 27 February 2012 16:08,chad.da...@emc.com wrote: Are there issues with the re-use of the same repository id across the various repository declarations? As identifiers, it seems like they should each be unique. Is there anything wrong with the following . . . repositories repository idmyRepo/id nameInternal Repo/name urlhttp://myRepo/nexus/content/groups/public/url /repository /repositories pluginRepositories pluginRepository idmyRepo/id nameInternal Repo/name urlhttp://myRepo /nexus/content/groups/public/url /pluginRepository /pluginRepositories distributionManagement repository idmyRepo/id nameInternal Releases/name urlhttp://myRepo /nexus/content/repositories/releases/url /repository snapshotRepository idmyRepo/id nameSnapshots/name urlhttp://myRepo /nexus/content/repositories/snapshots/url /snapshotRepository /distributionManagement - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: generating checksums for assemblies
Hi Benson! indeed, in that case I a have a little price to pay because I am forced to proceed manually for non maven artifact releases. Thanks for your reply! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Sat, Feb 25, 2012 at 10:28 PM, Benson Margulies bimargul...@gmail.com wrote: By default, the gpg plugin signs only attached artifacts, so (assuming that it's GPG output you are talking about, or if not a similar plugin) you'll have to add manual configuration, yes, to sign those additional files. The assembly plugin is blissfully ignorant of the entire process. On Sat, Feb 25, 2012 at 4:24 PM, Simone Tripodi simonetrip...@apache.org wrote: Hi all guys, I configured the assembly-plugin to prevent generated artifacts are attached, so they won't be deployed on Nexus, but I still need the checksums are generated for that artifacts. Is there a way to do it or I have to use the external checksum-plugin? TIA, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: repository id question
or any other way you want to id the repo e.g. in a profile or command line property .. On 12-02-27 08:49 AM, chad.da...@emc.com wrote: So, the id is only used to match the credential declarations ? -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: Monday, February 27, 2012 9:44 AM To: Maven Users List Subject: Re: repository id question if they all use the same credentials, I would say no issues On 27 February 2012 16:08,chad.da...@emc.com wrote: Are there issues with the re-use of the same repository id across the various repository declarations? As identifiers, it seems like they should each be unique. Is there anything wrong with the following . . . repositories repository idmyRepo/id nameInternal Repo/name urlhttp://myRepo/nexus/content/groups/public /url /repository /repositories pluginRepositories pluginRepository idmyRepo/id nameInternal Repo/name urlhttp://myRepo /nexus/content/groups/public/url /pluginRepository /pluginRepositories distributionManagement repository idmyRepo/id nameInternal Releases/name urlhttp://myRepo /nexus/content/repositories/releases/url /repository snapshotRepository idmyRepo/id nameSnapshots/name urlhttp://myRepo /nexus/content/repositories/snapshots/url /snapshotRepository /distributionManagement - 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-surefire-plugin] Issue with -Dtest param under Windows
Just found out , we also hit similar issue with -Dtest param on windows. Revert back to surefire 2.11 fixes it the issue -D On Mon, Feb 27, 2012 at 8:10 AM, Wayne Fay wayne...@gmail.com wrote: I'm having an issue with 'mvn test -Dtest=testClassName' It works fine under Linux and OsX but under Windows the test is simply not found. Can you create a sample project that demonstrates this failure in the functionality? If not, the likelihood of someone actually looking into this is quite low. Wayne - 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
[ANN] LESS CSS Maven Plugin 1.0-beta-3 Released
Hi, The Mojo team is pleased to announce the release of the LESS CSS Maven Plugin version 1.0-beta-3. This plugin can be used to compile LESS sources to CSS stylesheets. See http://www.lesscss.org/ for more information about LESS. http://mojo.codehaus.org/lesscss-maven-plugin To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdlesscss-maven-plugin/artifactId version1.0-beta-3/version executions execution goals goalcompile/goal /goals /execution /executions /plugin Release Notes In this release the plugin is upgraded to the latest LESS Compiler (1.2.2) using lesscss4j 1.2.2 (http://code.google.com/p/lesscss4j/) and the plugin now supports specifying the character encoding for writing CSS output files (which defaults to ${project.build.sourceEncoding}). Enjoy, The Mojo team. Marcel Overdijk
mvn site:stage is failing on multi-module project
Hi, I have project structure as below. maven-parent-project maven-ejb maven-schema maven-ws maven-ear I have all require entry to generate the site in all POM.XML I am able to execute mvn site and mvn site:site command successfully. But when i am trying to execute following command i am getting exception. mvn site:stage [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.156s [INFO] Finished at: Mon Feb 27 17:11:46 PST 2012 [INFO] Final Memory: 4M/15M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project maven-project-parent: Missing distribution management in project Maven Parent Project (maven-parent-project:maven-parent-project:0.0.1-SNAPSHOT) - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException As i know if i don't execute this command i can't access all sub modules from the parents index.html so i have to execute this command successfully. Please help me out, Where i am wrong exactly? Thanks.
Re: mvn site:stage is failing on multi-module project
site:stage is just a local preview of site:deploy, you need to specify a distributionManagement.url in the parent pom so links between modules will be consistent with the deployed site. HTH, -Lukas Daivish Shah wrote: Hi, I have project structure as below. maven-parent-project maven-ejb maven-schema maven-ws maven-ear I have all require entry to generate the site in all POM.XML I am able to execute mvn site and mvn site:site command successfully. But when i am trying to execute following command i am getting exception. mvn site:stage [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.156s [INFO] Finished at: Mon Feb 27 17:11:46 PST 2012 [INFO] Final Memory: 4M/15M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project maven-project-parent: Missing distribution management in project Maven Parent Project (maven-parent-project:maven-parent-project:0.0.1-SNAPSHOT) - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException As i know if i don't execute this command i can't access all sub modules from the parents index.html so i have to execute this command successfully. Please help me out, Where i am wrong exactly? Thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org