Re: Plugin executions vs. POM inheritance

2010-02-03 Thread Andreas Sewe
Thanks Wayne, thanks Ron, that looks like an alternative way to achieve what I want: I am not sure what you are trying to do but I am wondering if you can build several parent POMs and set up each POM have the parent that suits its needs. Yes, this is the composition vs inheritance approach

Re: what does it mean with this error when trying to run mvn eclipse:eclipse (Cannot find mojo descriptor for: 'eclipse:eclipse' - Treating as non-aggregator.)

2010-02-03 Thread Anders Hammar
Ok, first I would like to point you at some Maven books. They are great to get the basics: http://books.sonatype.com Then onto your problem. On the command line, you can always force a specific version. In your case you're trying to use a SNAPSHOT-version (a devevlopment build version), which is

RE: maven release from CVS tag

2010-02-03 Thread Ahmet Maruf Aytekin
Hi Roland Thanks for your reply. I just found out that tag parameter of release plugin does what I need to do. Many thanks Maruf -Original Message- From: Roland Asmann [mailto:roland.asm...@adesso.at] Sent: Tuesday, February 02, 2010 5:32 PM To: Maven Users List Subject: Re: maven

Re: Maven and WTP integration

2010-02-03 Thread Martin Schayna
Hi Manuel, I have tried same except eclipse:eclipse instead of eclipse:m2eclipse which didn't work for me also :( My humble findings are summarized in other message in this thread: http://old.nabble.com/Maven-and-WTP-integration-td27403219.html#a27405004 Please, could you post here example of

Re: Maven and WTP integration

2010-02-03 Thread Martin Schayna
Tried but with very same poor result. As far as I understand, this function checkouts project tree from SVN and creates .project and .classpath and other necessary files for Eclipse. In my case there are these files in SVN and I'm successfully using Eclipse for development of this project. I am

Re: Maven and WTP integration

2010-02-03 Thread Manuel Grau
Of course, This is the *org.eclipse.wst.common.component* from a jar module in my app: project-modules id=moduleCoreId project-version=1.5.0 wb-module deploy-name=agrored-dao wb-resource deploy-path=/ source-path=/src/main/java/ wb-resource deploy-path=/

checksum policy

2010-02-03 Thread kristian
hello, I have a custom repository layout (for maven3) and configure the repository like this: repository idgemcutter/id releases updatePolicynever/updatePolicy checksumPolicyignore/checksumPolicy /releases snapshots enabledfalse/enabled

Unused dependencies in ear

2010-02-03 Thread Ignatyev Vjacheslav
Hi, all. Problem with maven-ear-plugin. Why dependency:analyze say Unused declared dependencies found? --- Command output: [...@ivv]~/projects/lodint% mvn dependency:analyze [...] [INFO] Building Packaging project [...] [INFO] [dependency:analyze

maven-surefire-plugin: Error creating properties files for forking

2010-02-03 Thread Kevin Jervis
Hi all, I am having difficulty getting the maven-surefire-plugin to execute some test cases. It seems to be having trouble generating the properties file after compiling the tests successfully, before forking to execute the tests. The preferred environment for executing the maven build is

Using MavenEmbedder to read a project definition

2010-02-03 Thread Christoph Kutzinski
Hi, I'm currently trying to use MavenEmbedder to parse a project configuration: Configuration configuration = new DefaultConfiguration() .setUserSettingsFile( MavenEmbedder.DEFAULT_USER_SETTINGS_FILE ) .setGlobalSettingsFile(

removing version in manifest file

2010-02-03 Thread eyal edri
is there an option to tell the jar plugin, that when he creates the classPath entries in the MANIFEST file, it will strip the version numbers? here is it now: $ cat MANIFEST.MF (inside the jar file) Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: me

Including less than an entire artifact in a shaded jar

2010-02-03 Thread Benson Margulies
Is there any way to filter the classes that get kept in each shaded artifact? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Multiple versions of Commons logging

2010-02-03 Thread Jon Strayer
What is the below trying to tell me? It looks like the site plugin 2.1 has a dependency on commons logging 1.0.4 and that's messing something up. How do I fix it? 03-Feb-2010 02:15:50 [FATAL ERROR] org.apache.maven.plugins.site.SiteMojo#execute() caused a linkage error

javadoc versus shade

2010-02-03 Thread Benson Margulies
I find myself wishing that I could generate shaded javadoc: javadoc for renamed classes under their renamed names. Anyone been here? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail:

Re: javadoc versus shade

2010-02-03 Thread Anders Hammar
I think that is impossible as the shading works on the class files, in which the javadoc comments have been removed (or?). You need the source to generate javadoc. And the source code isn't shaded. My 2 cents, /Anders On Wed, Feb 3, 2010 at 16:24, Benson Margulies bimargul...@gmail.comwrote: I

Re: removing version in manifest file

2010-02-03 Thread eyal edri
i think i may have found the solution. http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository you can use the customClasspathLayout tag: build plugins plugin artifactIdmaven-war-plugin/artifactId configuration archive

Transitive exclusions in multi-module project with Maven 2.2.1

2010-02-03 Thread Lóránt Pintér
Hi, I have a project called Client that depends on a side-artifact of project Server (actually, its RMI client classes; the artifact has the classifier rmi), but excludes each of Server's dependencies. I also have an assembly project called Client-assembly that depends on project Client (and thus

Need help configuring maven to get through company Proxy?

2010-02-03 Thread Tonte . Pouncil
Hello, My company is using Novell Proxy Server. I am using maven-2.2..1. I have set up my configuration based on the documentation described here: http://maven.apache.org/guides/mini/guide-proxies.html When I try to down load plugins from the Maven Central Repo, I get redirected to my

Re: what does it mean with this error when trying to run mvn eclipse:eclipse (Cannot find mojo descriptor for: 'eclipse:eclipse' - Treating as non-aggregator.)

2010-02-03 Thread Rick R
On Wed, Feb 3, 2010 at 3:49 AM, Anders Hammar and...@hammar.net wrote: Ok, first I would like to point you at some Maven books. They are great to get the basics: http://books.sonatype.com Yes I need to read that more thoroughly. I did look through it once and tried to refer to even in this

RE: maven-surefire-plugin: Error creating properties files for forking

2010-02-03 Thread Kevin Jervis
For the information of others that may encounter this behaviour in the near future, upgrading the JDK to version 1.5.0_22 appears to have resolved the issue. Kind regards Kevin From: Kevin Jervis Sent: Wednesday, February 03, 2010 13:21 To: users@maven.apache.org Subject:

Interpolation of HTML files

2010-02-03 Thread Sri Sankaran
This basic Maven operation has me stumped. How can I get Maven to interpolate HTML files that are in src/main/webapp? Is filtering not implicit when the WAR plugin copies files from src/main/webapp? I have a typical web application with an index.html in src/main/webapp: HTML The usual stuff

Re: Interpolation of HTML files

2010-02-03 Thread Wayne Fay
This basic Maven operation has me stumped.  How can I get Maven to interpolate HTML files that are in src/main/webapp?  Is filtering not implicit when the WAR plugin copies files from src/main/webapp? No, it is not. You must specify it. Wayne

Re: Interpolation of HTML files

2010-02-03 Thread Karl Heinz Marbaise
Hi, Sri Sankaran wrote: Is filtering not implicit when the WAR plugin copies files from src/main/webapp? As far as i understand the docs http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html No...you have to explicit activate it for particular file

Re: Interpolation of HTML files

2010-02-03 Thread Sri Sankaran
OK. So that leads me to the question how? The docs only talk of filtering deployment descriptors (http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html) and resources (http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html). Sri Wayne Fay

Re: removing version in manifest file

2010-02-03 Thread eyal edri
OK, found the missing dependencies: dependency groupIdorg.apache.maven/groupId artifactIdmaven-archiver/artifactId version2.4/version /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.1/version

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Manuel Grau
I don't know anything about Novell Proxy Server, but I can tell you whar we're doing. We have to attach the domain in username: usernamedomain\username/username But, in our case, we don't have proxy setup in our setting.xml because we're using Artifactory http://www.jfrog.org/products.php, a

Re: Interpolation of HTML files

2010-02-03 Thread Sri Sankaran
Yep. That was it. Thanks. I did see that page earlier but dismissed it since I thought it applied to external resources and I didn't consider src/main/webapp an external resource. You live and learn. Thanks Sri Karl Heinz Marbaise wrote: Hi, Sri Sankaran wrote: Is filtering not

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Tonte . Pouncil
Manuel, Thanks for your reply. We are using Sonatype Nexus for our company maven repo and we are actually using Novell Border Manager for our proxy server. I wonder if maven is not sending the correct credential properties to Novell Border Manager? Thanks agian! Tonté From: Manuel Grau

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Wayne Fay
Thanks for your reply.  We are using Sonatype Nexus for our company maven repo and we are actually using Novell Border Manager for our proxy server.  I wonder if maven is not sending the correct credential properties to Novell Border Manager? Aren't your proxying requests through Nexus to the

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Manuel Grau
I guess sonatype Nexus is the same that Jfrog Artifactory. One question, are you using it as maven proxy? that is, does maven ask for artifacts throught Nexus? If the answeb is affirmative, then, setup http proxy in Nexus. 2010/2/3 tonte.poun...@aviall.com Manuel, Thanks for your reply. We

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Tonte . Pouncil
Yes that is correct. However, to simply the problem I configured my settings.xml file to not use my Nexus profiles and configured maven central repo manually in the settings.xml file. So currently my configuration does not rely on Nexus. I prefer, but not locked into, resolving this issue

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Tonte . Pouncil
Hey I have tried that. The proxy configuration is set through the server tap. Since then, I have tried to simply the problem by removing Nexus out of the picture. So right now I am currently just working with Maven configuration only. From: Manuel Grau mang...@gmail.com To: Maven Users

Re: Including less than an entire artifact in a shaded jar

2010-02-03 Thread Wayne Fay
Is there any way to filter the classes that get kept in each shaded artifact? Did you not check the m-shade-p documentation, specifically the filters parameter? Wayne - To unsubscribe, e-mail:

Re: what does it mean with this error when trying to run mvn eclipse:eclipse (Cannot find mojo descriptor for: 'eclipse:eclipse' - Treating as non-aggregator.)

2010-02-03 Thread Anders Hammar
Regarding why Maven tries to use 2.8-SNAPSHOT and isn't successful I'm somewhat puzzled. You didn't post the full error output, so I can't say for sure. Also, I need to know more about your Artifactory setup to spot the problem. /Anders On Wed, Feb 3, 2010 at 16:59, Rick R ric...@gmail.com

Re: Unused dependencies in ear

2010-02-03 Thread Stephane Nicoll
This plugin is meant to be ran on a project that actually uses the code from a compilation standpoint. Please note also that your modules section in the ear plugin is useless. The plugin will auto-detect what's necessary from your pom, you only need to set values there if you actually want to

Had to remove a plugin dir from local repo, why? [was Re: what does it mean with this error when trying to run mvn eclipse:eclipse (Cannot find mojo descriptor for: 'eclipse:eclipse' - Treating as n

2010-02-03 Thread Rick R
I changed the subject since I think this is now more of a general local repository question. On Wed, Feb 3, 2010 at 2:08 PM, Anders Hammar and...@hammar.net wrote: Regarding why Maven tries to use 2.8-SNAPSHOT and isn't successful I'm somewhat puzzled. You didn't post the full error output, so

Re: Had to remove a plugin dir from local repo, why? [was Re: what does it mean with this error when trying to run mvn eclipse:eclipse (Cannot find mojo descriptor for: 'eclipse:eclipse' - Treating

2010-02-03 Thread Anders Hammar
Yes, I was actually thinkign about this possibility after sending the mail. This is what I think has happened: 1. You've run mvn eclipse:eclipse, which will get the latest version of the plugin. You then had a setup that included the Apache snapshot repo so you got 2.8-snapshot. 2. The setup

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Anders Hammar
Resolving this in Maven is just a waste of time. As you switch to use Nexus you need to remove that config and configure Nexus instead. Don't configure anything locally (except to use Nexus) and then configure the proxy in Nexus. If you have problems doing that in Nexus, use the Nexus mailing

Nexus and http://repository.codehaus.org KO

2010-02-03 Thread Rémy
Hello, I defined a proxy repository in Nexus pointing on http://repository.codehaus.org. This one was unavailable this morning. To run the builds, I had to use the block proxy option in Nexus. In the settings.xml file I have referenced the enterprise repository. I thought to be independent from

Re: Nexus and http://repository.codehaus.org KO

2010-02-03 Thread Anders Hammar
Wrong mailing list. /Anders On Wed, Feb 3, 2010 at 21:45, Rémy remy.tempora...@gmail.com wrote: Hello, I defined a proxy repository in Nexus pointing on http://repository.codehaus.org. This one was unavailable this morning. To run the builds, I had to use the block proxy option in Nexus.

Re: Had to remove a plugin dir from local repo, why? [was Re: what does it mean with this error when trying to run mvn eclipse:eclipse (Cannot find mojo descriptor for: 'eclipse:eclipse' - Treating

2010-02-03 Thread Wayne Fay
When you deleted the local repo Maven had to go out to find the latest version, which now was 2.7 (served by your artifactory instance). Thus To avoid weird issues, you should use the long form when using plugins from the command line: mvn groupid:artifactid:version:goal So for eclipse, it

Re: Need help configuring maven to get through company Proxy?

2010-02-03 Thread Tonte . Pouncil
Ok I will check into this. Thanks! From: Anders Hammar and...@hammar.net To: Maven Users List users@maven.apache.org Date: 02/03/2010 02:39 PM Subject: Re: Need help configuring maven to get through company Proxy? Resolving this in Maven is just a waste of time. As you switch to use Nexus

Re: Nexus and http://repository.codehaus.org KO

2010-02-03 Thread Brian Fox
But while we're at it: everyone should use http://nexus.codehaus.org/snapshots/ instead of the old repo. On Wed, Feb 3, 2010 at 3:48 PM, Anders Hammar and...@hammar.net wrote: Wrong mailing list. /Anders On Wed, Feb 3, 2010 at 21:45, Rémy remy.tempora...@gmail.com wrote: Hello, I

Re: Nexus and http://repository.codehaus.org KO

2010-02-03 Thread Dan Tran
Hi Brian, 1. this one is not up to date, i dont see my syslog-maven-plugin snapshot there 2. Do you see MOJO team going to move to nexus? Thanks -Dan On Wed, Feb 3, 2010 at 2:25 PM, Brian Fox bri...@infinity.nu wrote: But while we're at it: everyone should use

RFC: Maven License Verifier Plugin

2010-02-03 Thread Karl Heinz Marbaise
Hi there, i have started with implementing some parts of a new Maven Plugin. The Maven License Verifier Plugin (MLV for short). I would present you the idea of the plugin and would like to know if someone has some suggestions, idea's, comments etc. The basic idea is to check every

java.lang.LinkageError when building maven junit4osgi project tests

2010-02-03 Thread mohn3310
Hello, We have a source directory structure like so: top - module1 - module1-1 - module1-2 - module2 - module-2-1 - module-2-2 top's pom file contains references to module1 and module2 so that it builds everything. The module2 projects use junit4osgi to execute some osgi tests. When

Re: RFC: Maven License Verifier Plugin

2010-02-03 Thread Anders Hammar
Maybe have a look how the assembly plugin works with descriptors? Having pre-defined configs that can be referenced by id/name could be handy. However, I'm not sure if using a URL to download the descriptor/config is a good idea. I'm thinking that that could be misused by linking to configs