Re: [ANN] Maven Eclipse Plugin 2.6 Released

2009-04-02 Thread Barrie Treloar
On Thu, Apr 2, 2009 at 4:03 PM, linchongsu sulinchong1...@gmail.com wrote: hi,dear i found i can't run mvn clean eclipse:clean eclipse:eclipse -Declipse.addVersionToProjectName=true all right with version 2.6 If you can provide a small repeatable test case then raise a JIRA and we can look

Re: [ANN] Maven Eclipse Plugin 2.6 Released

2009-04-02 Thread linchongsu
oh, all right, but i think ,i should inspect the cmd -Declipse.addVersionToProjectName=true more carefully.what's more, when i comes to use version 2.6, my eclipse's workspace does not run as well as before. The follow is the log: [WARNING] could not read workspace

Re: build error

2009-04-02 Thread Carlos Palop
I've configured the proxy in settings.xml like this, we don't have proxy user and password: proxy idoptional/id activetrue/active protocolhttp/protocol username/username password/password hostPROXYUFV.MAIL/host port8080/port

Re: [ANN] Maven Eclipse Plugin 2.6 Released

2009-04-02 Thread Barrie Treloar
org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace content allowed before start tag and not \u9518 (position: START_DOCUMENT \u9518 looks like international character sets. Not sure why it isn't whitespace. Same thing, try to make small test case and raise a JIRA. If

Maven2 ignoring environment variables

2009-04-02 Thread amys
I use an environment variable like ${env.FLORENCE_HOME} in my pom.xml files. Sometimes this resolves correctly, sometimes it doesn't, and then Maven generates files into a directory literally called ${env.FLORENCE_HOME} in my build environment. Specifically, I define a variable

Maik Ebert is out of the office. (returning 03.04.2009)

2009-04-02 Thread maik . ebert
I am out of the office until 03.04.2009. In urgent cases please contact Dirk Dinger, phone: +49 (0) 6227 385 144, e-mail: dirk.din...@icw-global.com. Ich bin vom 01.04.2009 00:00 bis 03.04.2009 00:00 außer Haus. In dringenden Fällen wenden Sie sich bitte an Dirk Dinger, Tel.: +49 (0) 6227

Maven ignoring environment variables

2009-04-02 Thread Joshua Fox
Using Maven 2.1 and Eclipse Maven Plugin 0.9.7 of 20081130 I use an environment variable like ${env.FLORENCE_HOME} in my pom.xml files. Sometimes this resolves correctly, sometimes it doesn't, and then Maven generates files into a directory literally called ${env.FLORENCE_HOME} within my build

Maven Release plug-in and parent.version dependency

2009-04-02 Thread Stevo Slavić
Hello maven users, Should maven release plug-in handle parent.version references in dependencies? If yes, then there is a bug in recently released 2.0-beta-9 version of the plug-in, release:prepare breaks if there is a dependency with version set to ${parent.version}. E.g. If there is a

Re: Maven Release plug-in and parent.version dependency

2009-04-02 Thread Stevo Slavić
One more potential issue found: release:perform fails to checkout a tag created in release:prepare stating that The svn command failed. and that svn: Can't create directory '%longish_path%' : The filename or extension is too long. even though path is way below maximum lenght of windows xp. It

Why are projects deploying to repo1.maven.org not allowed to use plugins from other repositories?

2009-04-02 Thread Peter Niederwieser
Say I need a plugin for my release process that's not available from repo1.maven.org. How would the inclusion of a plugin repository affect the users of my artifact? Or why else is it not allowed to add a plugin repository? Cheers, Peter -- View this message in context:

strange error with hopefully easy solution?

2009-04-02 Thread Adam Hardy
My search results showed nothing in google or anything relevant in the archives, but I have an intractable error in my test batchrun, which seems to be a compilation problem. The test is fine when executed in isolation. This is what happens when I run all my test with mvn clean test: Tests

Root pom doesn't specify maven-eclipse-plugin version

2009-04-02 Thread Martijn Dashorst
Using maven 2.0.10, I ran into the maven-eclipse-plugin 2.6 bug fix that excludes anything not Java from being on the classpath. I didn't upgrade my eclipse plugin, and thought that as of 2.0.8 the root pom specifies stable plugins for each release. Apparently, maven-eclipse-plugin is not amongst

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Pankaj Tandon
Hello Rob, I wanted to ask you about your comment below where you state that even if you have an annotation in a mojo for the execution phase, you still have to declare an executions element for the very same phase in the project that invkes this plugin. That, kind of defeats the purpose of

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Rob Dickens
you still have to declare an executions element for the very same phase in the project that invkes this plugin. That's right, except you don't have to specify the phase - the one declared by the mojo will be assumed. 2009/4/2 Pankaj Tandon pankajtan...@gmail.com Hello Rob, I wanted to ask

RE: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Brian E. Fox
The @phase will automatically cause a plugin to run at that phase, but the plugin must still be mentioned in the pom. -Original Message- From: Pankaj Tandon [mailto:pankajtan...@gmail.com] Sent: Thursday, April 02, 2009 10:40 AM To: users@maven.apache.org Subject: Re: [ANN] Maven 2.1.0

RE: Why are projects deploying to repo1.maven.org not allowed to use plugins from other repositories?

2009-04-02 Thread Brian E. Fox
This isn't a hard and fast rule, but we generally like to see that the entire enclosure is available on Central. You would need to introduce not just the pluginRepo, but probably a regular repo and that's where problems start. That repo then pollutes the downstream resolution for other artifact

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Pankaj Tandon
Rob and Brian, Thanks for the response. However, how then does the maven-war-plugin run. I do NOT specify an execution section for that plugin, and it runs in the package phase. So I am not sure why is it necessary to mention the execution element at all (with or without a phase). Just the

RE: strange error with hopefully easy solution?

2009-04-02 Thread Martin Gainty
experiencing a bit of difficulty reproducing this error can you supply pom.xml? any plugins (junit-test-gen/batchrun) you may be using ? empty org.permacode.patternrepo.basic.TestRunManagerTest Java class? Thanks, Martin __ Disclaimer and

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Rob Dickens
Sorry, I should have added that the executiongoal element is only required if the goal is not one of those in the lifecycle (corresponding to the packaging type). 2009/4/2 Pankaj Tandon pankajtan...@gmail.com Rob and Brian, Thanks for the response. However, how then does the maven-war-plugin

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Pankaj Tandon
Rob, Thanks! That clarifies things. Pankaj Sorry, I should have added that the executiongoal element is only required if the goal is not one of those in the lifecycle (corresponding to the packaging type). 2009/4/2 Pankaj Tandon pankajtan...@gmail.com Rob and Brian, Thanks for the

Re: build error

2009-04-02 Thread Wayne Fay
On Thu, Apr 2, 2009 at 1:26 AM, Carlos Palop cpa...@gmail.com wrote:  I've configured the proxy in settings.xml like this, we don't have proxy user and password: Did you remove the !-- and -- from around the proxy node in settings.xml? Wayne

Re: strange error with hopefully easy solution?

2009-04-02 Thread Adam Hardy
Hi Martin, you had me worried there for a moment, thought I'd emailed the wrong list! But anyway, I'll be surprised if you can reproduce it unless I send you my whole project. Actually perhaps I should try recreating the eclipse project. however here is the pom.xml - unless the mailing list

Re: strange error with hopefully easy solution?

2009-04-02 Thread Wayne Fay
so the TestRunManagerTest$1 is obviously the result of jdk1.6.0_12 messing up the compilation, right? Run that $1 class thru JAD and see what the source code looks like. You do know where $1 files usually come from, right (anonymous inner classes) so this is not necessarily an error. But it may

When Maven build dies...

2009-04-02 Thread Stevo Slavić
Hello Maven users, What to do when Maven build, out of nowhere, just dies, without exception thrown, no build failure message, nothing, maven process just ends and command line cursor appears? Regards, Stevo.

Problem with Using cobertura-maven-plugin and aspectj-maven-plugin together in a project

2009-04-02 Thread Rakesh Arora
I am having problem using cobertura and aspectj plugin together. My code coverage is incorrectly reported as 0% AspectJ is only used for unit testing, so project is configured to run test-compile only. Here is what i think is happening: - cobertura instruments the java class files (*.class) in

RE: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Brian E. Fox
The war plugin is introduced by the lifecycle. The mappings are dependent on the packaging type. More info is available here: http://www.sonatype.com/books/maven-book/reference/simple-project-sect-l ifecycle.html -Original Message- From: Pankaj Tandon [mailto:pankajtan...@gmail.com]

RE: strange error with hopefully easy solution?

2009-04-02 Thread Bryan Loofbourrow
Adam, I think the easy solution is to add the public no-args constructor to your inner class, as it's telling you to do. I've run into this before, surefire trying to instantiate all my classes, including inner classes. -- Bryan -Original Message- From: Adam Hardy

Re: [ANN] Maven Release Plugin 2.0-beta-9 Released

2009-04-02 Thread Stephen Connolly
Yes 2009/4/1 Todd Thiessen thies...@nortel.com Consider your response acknowledged ;-). We may be moving to 1.6 soon (on the server side). Would a 1.6 client work with a 1.5 server? --- Todd Thiessen -Original Message- From: Stephen Connolly

Re: When Maven build dies...

2009-04-02 Thread Wayne Fay
What to do when Maven build, out of nowhere, just dies, without exception thrown, no build failure message, nothing, maven process just ends and command line cursor appears? I've never, ever seen that happen. Did someone else on your machine issue a kill command using ps on Unix or Task

Re: When Maven build dies...

2009-04-02 Thread Dirk Olmes
Stevo Slavić wrote: Hello Maven users, What to do when Maven build, out of nowhere, just dies, without exception thrown, no build failure message, nothing, maven process just ends and command line cursor appears? I've seen this in situation where custom code was executed during the build

Re: [ANN] Maven Release Plugin 2.0-beta-9 Released

2009-04-02 Thread Stephen Connolly
Unless you write a pre-commit hook to ban 1.6 clients afaik, you can use a 1.1 client with a 1.6 server and a 1.6 client with a 1.1 server (put it may only be officially supported as far back as 1.4) -Stephen 2009/4/2 Stephen Connolly stephen.alan.conno...@gmail.com Yes 2009/4/1 Todd

Re: strange error with hopefully easy solution?

2009-04-02 Thread Adam Hardy
Wayne Fay on 02/04/09 17:10, wrote: so the TestRunManagerTest$1 is obviously the result of jdk1.6.0_12 messing up the compilation, right? Run that $1 class thru JAD and see what the source code looks like. You do know where $1 files usually come from, right (anonymous inner classes) so this is

Maven assembly issue

2009-04-02 Thread predhme
Hello all. I have a maven project (currently using 2.1). I am running into an issue where two of my dependencies have the same file (although different content). http://forum.springsource.org/showthread.php?t=55037highlight=schema+local My exact issue described. The solution proposed in the

Re: strange error with hopefully easy solution?

2009-04-02 Thread Adam Hardy
Ah, the penny has finally dropped! The TestRunManagerTest.class does have an inner class, despite my previous complete conviction that there was no way I had put an inner class in my junit test class. It's actually inline which is why I didn't recognise it. In case you think I'm nuts, it's

Re: strange error with hopefully easy solution?

2009-04-02 Thread Adam Hardy
Just to be clearer, I have inner classes in several unit tests but this is the only one which is causing the problem. Adam Hardy on 02/04/09 18:09, wrote: Ah, the penny has finally dropped! The TestRunManagerTest.class does have an inner class, despite my previous complete conviction that

Re: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-02 Thread Brian E. Fox
You should use the includeArtifactId to filter exactly the ones you want for each folder. It looks like it¹s picking up both of your files in both executions so you just need to be more specific which artifacts to unpack. On 4/1/09 11:42 PM, David Hoffer dhoff...@gmail.com wrote: I'm having

Re: Maven2 ignoring environment variables

2009-04-02 Thread Brian E. Fox
In general, try to avoid using env vars as it makes your build more fragile as you¹ve noticed. Somehow it seems these env aren¹t getting through to maven, but there¹s not enough info below to tell you why. On 4/2/09 6:46 AM, amys amy.t.sav...@gmail.com wrote: I use an environment variable

RE: Maven2 ignoring environment variables

2009-04-02 Thread Guba, Nicolai
Hmmm, we noticed that passing any args like mvn -Dblah=didah works fine up to 2.0.9, but is broken thereafter. Anyone ran into the same issue? -- =NPG= -Original Message- From: Brian E. Fox [mailto:bri...@reply.infinity.nu] Sent: Thursday, April 02, 2009 12:39 PM To:

Re: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-02 Thread David Hoffer
I tried that with no success. I explicitly set the one I want and excluded the one I didn't want but it still did both. There is some majic in there that I just don't understand. I had to separate my project into to multi-module builds and use the unpack goal instead. This one actually works,

RE: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-02 Thread Bryan Loofbourrow
I've run into this too. I inferred that the dependency plugin's unpack-dependencies goal was simply not written in a way that allows it to be executed twice in the same project. I can see how that could happen, if one were not pretty careful in the execute() method about making the scratchpad

Re: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-02 Thread David Hoffer
It's things like this that give maven a bad rep. Folks spend hours trying to get it to work and never do. Fixing it is in order, but why on earth can't the keepers of the plugin document this in an obvious place? -Dave On Thu, Apr 2, 2009 at 11:41 AM, Bryan Loofbourrow

RE: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-02 Thread Brian E. Fox
It's things like this that give maven a bad rep. Folks spend hours trying to get it to work and never do. Fixing it is in order, but why on earth can't the keepers of the plugin document this in an obvious place? Because that assumption below isn't true. The unpack and copy goals allow you

Central index redirect

2009-04-02 Thread Hayes, Peter
The company that I work for has blocked all access to the Amazon S3 hosting site due to security / threat concerns. Due to this, I am no longer able to download the central index. Has anyone else had this issue and if so were they able to work around it? Peter Hayes Architecture Shared

RE: strange error with hopefully easy solution?

2009-04-02 Thread Martin Gainty
As long as that penny does'nt wind up in my afternoon Tea.. Congratulations Watson..you have solved the mystery! Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended

Re: Root pom doesn't specify maven-eclipse-plugin version

2009-04-02 Thread Brett Porter
On 03/04/2009, at 1:17 AM, Martijn Dashorst wrote: Is there a reason why the eclipse plugin is not part of the root pom specification? Under the current system, it would make getting the latest version from the command line too awkward, so hasn't been done for plugins primarily run from

Re: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-02 Thread Stephen Connolly
2009/4/2 Brian E. Fox bri...@reply.infinity.nu It's things like this that give maven a bad rep. Folks spend hours trying to get it to work and never do. Fixing it is in order, but why on earth can't the keepers of the plugin document this in an obvious place? Because that assumption below

Re: Central index redirect

2009-04-02 Thread Stephen Connolly
setup nexus and pull off a mirror of repo1 2009/4/2 Hayes, Peter peter.ha...@fmr.com The company that I work for has blocked all access to the Amazon S3 hosting site due to security / threat concerns. Due to this, I am no longer able to download the central index. Has anyone else had this

Re: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-02 Thread David Hoffer
I did use excludeTransitive but did not help so I just can't fall back to unpack-dependencies. I'm in trouble if unpack has trouble with the release goal. I just want to unpack two artifacts at two locations before package phase, is there a different plugin that can handle this simple case?

Using release plugin to build scm project

2009-04-02 Thread Todd Thiessen
I made a change to the scm project to fix a bug that was bugging me. Built the 1.3-SNAPSHOT version of the latest SCM plugin, tested it, and it works fine. Now I want to do a formal release of my own personalized version of the project. The release:prepare fails because of missing dependencies

Re: Using release plugin to build scm project

2009-04-02 Thread David C. Hicks
Check the archives over the last month and you'll find plenty of discussion on this subject. :-) My own solution was to set my preparationGoals=clean install Todd Thiessen wrote: I made a change to the scm project to fix a bug that was bugging me. Built the 1.3-SNAPSHOT version of the latest

Re: Using release plugin to build scm project

2009-04-02 Thread Olivier Lamy
2009/4/2 Todd Thiessen thies...@nortel.com: I made a change to the scm project to fix a bug that was bugging me. Built the 1.3-SNAPSHOT version of the latest SCM plugin, tested it, and it works fine. Now I want to do a formal release of my own personalized version of the project. The

Is IBIBLIO down?

2009-04-02 Thread logachandru . x . rajamanickam
Hi, I get the following error when I try a maven build. Please let me know whether this issue could be 'coz of the IBIBLIO site being down. I could not hit the IBIBLIO site as well. Can anybody advise. Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL:

Re: Reporting Plugin's and OutOfMemoryException's

2009-04-02 Thread Andrew Hughes
Hi Wayne, thanks for the reply Checkstyle + Other reporting plugin's are not to blame here :) I've no doubt they need the extra memory. However, it's not being given to them. I have set MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=256 in mvn.bat, this does not fix the problem (not even on

RE: Central index redirect

2009-04-02 Thread Brian E. Fox
We moved the index to S3 back in November to reduce the load on Central and improve access time for other artifacts. (224m downloads and 24TB last month alone for the index) The index is not accessible from repo1.maven.org anymore and it redirects to S3. (the s3 url is pseudo dynamic so to get the

RE: Is IBIBLIO down?

2009-04-02 Thread Brian E. Fox
Yes it seems to be down. Using a repository manager would isolate you from these issues. -Original Message- From: logachandru.x.rajamanic...@jpmchase.com [mailto:logachandru.x.rajamanic...@jpmchase.com] Sent: Thursday, April 02, 2009 8:01 PM To: Maven Users List Subject: Is IBIBLIO down?

Re: Is IBIBLIO down?

2009-04-02 Thread Jason van Zyl
Ibiblio is also not Maven Central. Maven Central has not gone down any longer then a few minutes in the last couple years. On 2-Apr-09, at 5:01 PM, logachandru.x.rajamanic...@jpmchase.com wrote: Hi, I get the following error when I try a maven build. Please let me know whether this issue

antrun plugin tasks called twice in install phase

2009-04-02 Thread MiteshPatel
Hi, Anyone having issue where antrun plugin tasks calls twice in install phase?? Thanks, Mitesh -- View this message in context: http://www.nabble.com/antrun-plugin-tasks-called-twice-in-install-phase-tp22861357p22861357.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: antrun plugin tasks called twice in install phase

2009-04-02 Thread Dan Tran
file a bug if you can produce it with a small pom. -D On Thu, Apr 2, 2009 at 8:28 PM, MiteshPatel pmite...@yahoo.com wrote: Hi, Anyone having issue where antrun plugin tasks calls twice in install phase?? Thanks, Mitesh -- View this message in context:

antrun tasks called twice in install phase

2009-04-02 Thread Mitesh Patel
Hi, I have a project which have antrun plugin tasks to call ant file to prepare the build files. when i run mvn clean install deploy the antrun tasks called twice. Any idea what could be wrong?? Thanks, Mitesh

Re: Reporting Plugin's and OutOfMemoryException's

2009-04-02 Thread Wayne Fay
Checkstyle + Other reporting plugin's are not to blame here :) I've no doubt they need the extra memory. However, it's not being given to them. I have set MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=256 in mvn.bat, this does not fix the problem (not even on my machine). Plus I'd like a more

Re: Central index redirect

2009-04-02 Thread Wayne Fay
and improve access time for other artifacts. (224m downloads and 24TB last month alone for the index) The index is not accessible from I find it amazing that there were 224 million downloads of a single file in Central last month! That sounds more like the total usage of Central, astounding.

Re: Central index redirect

2009-04-02 Thread B Smith-Mannschott
On Fri, Apr 3, 2009 at 07:31, Wayne Fay wayne...@gmail.com wrote: and improve access time for other artifacts. (224m downloads and 24TB last month alone for the index) The index is not accessible from I find it amazing that there were 224 million downloads of a single file in Central last