Re: how to configure maven plugins using compony repository with nexus

2012-01-13 Thread Ansgar Konermann
Am 13.01.2012 07:12 schrieb chandrasheker chandrasheke...@gmail.com: Hi, How to configure maven plugins to company repository with nexus ui.i download the jar from internal company repository It's described in the manual of Sonatype Nexus. Please rtfm. Besides, the exception stack trace

maven-plugin-tools-ant custom parameter

2012-01-13 Thread Maxime Carpentier
Hi, I'm developping a new plugin using ant, guided by http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html. In this tutorial you can see how to map parameter for your plugin, declaring in your pom.xml : plugin groupIdorg.myproject.plugins/groupId

Re: mavem-war-plugin packagingExcludes regex not working

2012-01-13 Thread mschipperheyn
Sorry, try it here http://www.regexplanet.com/simple/index.html -- View this message in context: http://maven.40175.n5.nabble.com/mavem-war-plugin-packagingExcludes-regex-not-working-tp5139981p5142437.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Help with installing a non-maven jar in local repo .

2012-01-13 Thread vvkbtnkr
I am aware of the repo manager concept, but setting it up is more work than what I want for the quick-fire poc that I am working on, would be reaally helpful if some one can point out the mistake in the pom snippet posted earlier and help me fix that ... -- View this message in context:

Re: mavem-war-plugin packagingExcludes regex not working

2012-01-13 Thread Guillaume Polet
Test Results Regular Expression Original Expression (?!min)\.js as a Java string(?!min)\\.js Replacement groupCount()0 Test Target String matches() replaceFirst() replaceAll() lookingAt() find() group(0) 1 /msa-network/msa-network-min.js No

Re: Help with installing a non-maven jar in local repo .

2012-01-13 Thread Guillaume Polet
What you are trying to do does not seem possible (at least the first time). Remove the dependency first, then do the install, then re-add the dependency. And you are good to go, but this is really against all good practices. Cheers, Guillaume Le 13/01/2012 14:03, vvkbtnkr a écrit : I am

Re: Help with installing a non-maven jar in local repo .

2012-01-13 Thread Stephen Connolly
Step 1. Download Nexus OSS (i.e. free) Step 2. Run Nexus Step 3. Configure your settings.xml to point to Nexus Done. Done. Done. NOTE 1: Does not have to be Nexus, there are others: Artifactory, Archivia, etc. I only mention Nexus OSS because: 1. it's free, 2. it's very low footprint in terms of

Disabling Profiles during release

2012-01-13 Thread Asmann, Roland
Hi all, I have this company-wide POM that has several profiles that are activated when running on Jenkins. Now during the normal build of this POM, I tell Jenkins to deactivate several profiles, because they just can't run. Today I needed to make a release of this POM, and I tried to

Re: Disabling Profiles during release

2012-01-13 Thread Guillaume Polet
Not sure this is the right place to put your question and not sure I understand what's your question exactly. Yes it is possible to deactivate profiles. As for jenkins, in the goals and options box, just put: -P !profile1,!profile2 Have you tried running mvn from the command line? If yes,

Re: maven and wtp dependencies not in WEB-INF/lib

2012-01-13 Thread Ron Wheeler
Trying to use Maven without a repo is a horrible way to work. Install a proper Maven repo. Your problem looks like an Eclipse issue and you can probably get more interest in an Eclipse forum. Ron On 12/01/2012 5:52 PM, Paul Rivera wrote: Hi Guys, In a nutshell, I'm using maven on a web

Re: Help with installing a non-maven jar in local repo .

2012-01-13 Thread Ron Wheeler
We use Nexus and it is well worth the hour to set it up. RTFM carefully since the file setup is a bit different from what you might expect but if you do what it says, you will get it up very fast. It will save you the hour in the first day that you work on your POC. It will also make sure that

Re: SCM Plugin - How to Set Up for Release Using Mercurial

2012-01-13 Thread sdoca sdoca
Hi Again, I've set up a Hudson job to do the release but it fails with this error: [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal

Re: Help with installing a non-maven jar in local repo .

2012-01-13 Thread vvkbtnkr
Thanks all for responding on this, I think I see the logic behind the common theme of the responses. I expected to mavenize the POC in a jiffy, but far from it, have spent the max time now on getting it to any reasonable shape, And the worst part is I am not even close to solving all issues ,

Re: maven and wtp dependencies not in WEB-INF/lib

2012-01-13 Thread Gabriel Belingueres
Hi! I see you are running with -Dwtpversion=2.0. According to the 2.8 version docs [1], it is NOT supported. In my experience, I always use 1.5 and any other higher version doesn't work. 3 things you want to make sure you have properly configured: * M2_REPO is defined inside eclipse * that you

Failure to find org.apache.maven.plugins

2012-01-13 Thread hp
How to resolve the following error? Failure to find org.apache.maven.plugins:maven-war-plugin:pom:2.3.2 in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates

No plugin found for prefix 'war' in the current project ...

2012-01-13 Thread hp
Why this error occurs? I commented out the packaging type war and that doesn't help No plugin found for prefix 'war' in the current project and in the plugin groups [] available from the repositories [local (C:\Documents and Settings \mydirectory\.m2\repository), nexus

Re: maven-plugin-tools-ant custom parameter

2012-01-13 Thread Robert Scholte
have you tried to create a pojo called Person (with getters + setters for firstName and lastName) in the same package as the mojo? did you add something like this to the mojo /** * @parameter */ private Person person; -Robert On Fri, 13 Jan 2012 11:53:53 +0100, Maxime Carpentier

Re: Help with installing a non-maven jar in local repo .

2012-01-13 Thread Ron Wheeler
I think that you can install the Nexus on your own machine where you are doing the test. You have to remember that your first level dependencies also have dependencies and you may want to include a dependency and exclude some of the dependencies that it has (so called transitive dependencies)

Re: Help with installing a non-maven jar in local repo .

2012-01-13 Thread Ron Wheeler
I am not sure if I would be described as an expert. Survivor is more like it. Some of the guys that are trying to help you out do deserve the moniker. Ron On 13/01/2012 1:24 PM, vvkbtnkr wrote: Thanks all for responding on this, I think I see the logic behind the common theme of the

Re: No plugin found for prefix 'war' in the current project ...

2012-01-13 Thread Ansgar Konermann
Post your POM. Post your complete settings.xml (replace sensitive data like passwords with ***). Post the complete command line used to run maven. Post the complete error message. Am 13.01.2012 20:38 schrieb hp admin0...@homepage.kgbinternet.com: Why this error occurs? I commented out the

Re: No plugin found for prefix 'war' in the current project ...

2012-01-13 Thread Wayne Fay
Ideally you'd post all this at pastebin.com or a similar place and not Nabble because Nabble is terrible about XML and this mailing list strips attachments. Please post your file(s) at pastebin.com and send link(s) to the list. Wayne On Fri, Jan 13, 2012 at 4:02 PM, Ansgar Konermann

Re: No plugin found for prefix 'war' in the current project ...

2012-01-13 Thread hp
Thanks both. Here is my http://pastebin.com/k7LiUs9k pom file and the http://pastebin.com/HZ9gh6wi settings.xml The error messages are shown when I open my pom file in Eclipse. -- View this message in context:

Re: No plugin found for prefix 'war' in the current project ...

2012-01-13 Thread Wayne Fay
You missed these lines: Post the complete command line used to run maven. Post the complete error message. Wayne On Friday, January 13, 2012, hp admin0...@homepage.kgbinternet.com wrote: Thanks both. Here is my http://pastebin.com/k7LiUs9k pom file and the http://pastebin.com/HZ9gh6wi

Re: No plugin found for prefix 'war' in the current project ...

2012-01-13 Thread hp
As I already said, the error message shows up on my Eclipse when I open the pom.xml file without running any commands. The whole error stack is the following: Multiple annotations found at this line: - Failure to find org.apache.maven.plugins:maven-war-plugin:pom:2.3.2 in