Re: Compilation failure due to looking at installed artifact instead for in project

2009-10-14 Thread Ren
Hello Stephen, I have a similar problem and still couldn't resolve. My project has three sub modules: war, ear, and lib, both war and ear depend on lib. I made a parent project to include all three modules. (A very typical setup I guess). When I want to build just ear, I uses mvn package -pl

Question from a Maven NewBie. Can not run any mvn goal.

2009-10-14 Thread Kdls Krishnan
I am new to the Java, Maven, etc. I just downloaded and installed Maven. Followed all their instructions. I can not run any goal including mvn clean, or mvn anything. Pl. find the following stack trace. Any help will be greatly appreciated. My OS is XP (SP2). I tried 2 More newer versions of

Re: How to display/transfer maven compilation errors/logs in Web page

2009-10-14 Thread harishsyndrome
You should just use Hudson or another continuous integration server with Maven2 support. Hello Thanks for your reply. But could you please elaborate a bit. A searched the term Maven and Hudson Integration, but i did not get any releavnt way to proceed with. Thankyou -- View this

Re: Compilation failure due to looking at installed artifact instead for in project

2009-10-14 Thread Ren
Hi Stephen, I think I just figured out myself. I have use the -am argument. So it's like: mvn package -am -pl ear Cheers Ren On Wed, Oct 14, 2009 at 5:38 PM, Ren rens...@gmail.com wrote: Hello Stephen, I have a similar problem and still couldn't resolve. My project has three sub modules:

Re: Skinny War Possible Solution?

2009-10-14 Thread Jörg Schaible
David Weintraub wrote at Mittwoch, 14. Oktober 2009 00:00: On Tue, Oct 13, 2009 at 5:13 PM, Jörg Schaible joerg.schai...@gmx.dewrote: David Weintraub wrote: Too complicated, especially since you skip Maven's dependency version resolution by this directory where you collect the wars. I

Re: Abstract method error in surefire?

2009-10-14 Thread Quintin Beukes
Really, the only ways I can think of is to (a) dump a stack trace (b) set a breakpoint and run it inside a debugger. You need to see what is causing the error and the best way is to see what is instantiated and the execution path to it. Quintin Beukes On Tue, Oct 13, 2009 at 8:47 PM, Benson

Re: how to change output html format of maven changes plugin

2009-10-14 Thread fflyw
Hi and how can in change this skin? dennisl-2 wrote: fflyw wrote: Hi is there some way to change look of change-report.html file generated by changes:changes-report goal, like colours, remove , add pictures ? What you can do is apply a skin to the site that Maven generates,

Re: How to display/transfer maven compilation errors/logs in Web page

2009-10-14 Thread Stephen Connolly
Here is the idiots guide (i.e. if you cannot figure out this, you are beyond help) * download hudson.war * java -jar hudson.war * open browser at http://localhost:8080/ * go to manage hudson * go to manager plugins * download and install warnings plugin * restart hudson * go to add project * add

Re: Compilation failure due to looking at installed artifact instead for in project

2009-10-14 Thread Stephen Connolly
2009/10/14 Ren rens...@gmail.com Hello Stephen, I have a similar problem and still couldn't resolve. My project has three sub modules: war, ear, and lib, both war and ear depend on lib. I made a parent project to include all three modules. (A very typical setup I guess). When I want to

How to configure proxy for multiple protocols

2009-10-14 Thread Hugo Palma
I'm trying to use the same proxy for both http and https but i'm having no success. I've tried configuring like this: proxies proxy idmyhttp/id activetrue/active protocolhttp/protocol host192.168.0.4/host port8080/port /proxy proxy idmyhttps/id

Re: How to display/transfer maven compilation errors/logs in Web page

2009-10-14 Thread harishsyndrome
Thanks for your reply. But My requirment is quite different. For Example: public class mavenEmbedded { public static void main(String args[]) { try { File projectDirectory = new File( getBasedir(), src/examples/simple-project );

Re: How to display/transfer maven compilation errors/logs in Web page

2009-10-14 Thread Brett Randall
Use Hudson + Maven. Hudson will capture the console output and errors for you. On 10/14/09, harishsyndrome harish.kum...@tcs.com wrote: Thanks for your reply. But My requirment is quite different. For Example: public class mavenEmbedded { public static void main(String args[])

Is a Mojo default execution goal possible, leaving out the executions goal part in the pom?

2009-10-14 Thread Martijn Morriën
Hi, I'm writing a mojo that generates source files. Is it possible to get rid of the required executions part in the pom? My mojo already defines it should be used in the generate-sources phase. And my plugin only contains 1 mojo. /** * @goal mycodegenerator * @phase generate-sources *

Re: How to configure proxy for multiple protocols

2009-10-14 Thread Michal Hlavac
network proxy settings in maven has really bad design. As I know, only one proxy can active at the same time. m. Hugo Palma wrote / napísal(a): I'm trying to use the same proxy for both http and https but i'm having no success. I've tried configuring like this: proxies proxy

Re: Is a Mojo default execution goal possible, leaving out the executions goal part in the pom?

2009-10-14 Thread Tony Chemit
Le Wed, 14 Oct 2009 12:30:28 +0200, Martijn Morriën dj.es...@gmail.com a écrit : Hi, I'm writing a mojo that generates source files. Is it possible to get rid of the required executions part in the pom? My mojo already defines it should be used in the generate-sources phase. And my plugin

Re: How to configure proxy for multiple protocols

2009-10-14 Thread Hugo Palma
Thanks for your response. I've created an issue for this http://jira.codehaus.org/browse/MNG-4394 On Wed, Oct 14, 2009 at 11:32, Michal Hlavac hla...@hlavki.eu wrote: network proxy settings in maven has really bad design. As I know, only one proxy can active at the same time. m. Hugo Palma

Re: Is a Mojo default execution goal possible, leaving out the executions goal part in the pom?

2009-10-14 Thread Martijn Morriën
On Wed, Oct 14, 2009 at 12:40, Tony Chemit che...@codelutin.com wrote: Le Wed, 14 Oct 2009 12:30:28 +0200, Martijn Morriën dj.es...@gmail.com a écrit : Hi, I'm writing a mojo that generates source files. Is it possible to get rid of the required executions part in the pom? My mojo

Re: Is a Mojo default execution goal possible, leaving out the executions goal part in the pom?

2009-10-14 Thread Tony Chemit
Le Wed, 14 Oct 2009 13:02:20 +0200, Martijn Morriën dj.es...@gmail.com a écrit : On Wed, Oct 14, 2009 at 12:40, Tony Chemit che...@codelutin.com wrote: Le Wed, 14 Oct 2009 12:30:28 +0200, Martijn Morriën dj.es...@gmail.com a écrit : Hi, I'm writing a mojo that generates source

Re: Is a Mojo default execution goal possible, leaving out the executions goal part in the pom?

2009-10-14 Thread Tony Chemit
Le Wed, 14 Oct 2009 13:15:35 +0200, Tony Chemit che...@codelutin.com a écrit : Le Wed, 14 Oct 2009 13:02:20 +0200, Martijn Morriën dj.es...@gmail.com a écrit : On Wed, Oct 14, 2009 at 12:40, Tony Chemit che...@codelutin.com wrote: Le Wed, 14 Oct 2009 12:30:28 +0200, Martijn Morriën

Re: Is a Mojo default execution goal possible, leaving out the executions goal part in the pom?

2009-10-14 Thread Martijn Morriën
On Wed, Oct 14, 2009 at 13:52, Tony Chemit che...@codelutin.com wrote: Le Wed, 14 Oct 2009 13:15:35 +0200, Tony Chemit che...@codelutin.com a écrit : Le Wed, 14 Oct 2009 13:02:20 +0200, Martijn Morriën dj.es...@gmail.com a écrit : On Wed, Oct 14, 2009 at 12:40, Tony Chemit

[WARNING] *** CHECKSUM FAILED - Checksum failed on download

2009-10-14 Thread David Meunier
Hi, I don't understand why this warning appears every time Maven downloads an Artifact from my remote Maven repository to my local repository. Downloading: https://www.si4g.fr/nexus/content/repositories/open4g-releases/com/open4g/open4g-parent/44/open4g-parent-44.pom 9K downloaded

Maven repository restricted access.

2009-10-14 Thread David Meunier
Hi, Some of my remote Maven repositories managed by Nexus have restricted access to only allowed users (Basic Auth). I wonder if it was possible to locally configure such a repository in Maven settings.xml or in another way ? Documentation : http://maven.apache.org/settings.html. Best

Re: Maven archtypes and custom parameters

2009-10-14 Thread Martin Höller
On Tuesday 13 October 2009 Werner Punz wrote: Hello everyone I am new to the maven archetype programming but I ran instantly into a problem. I have a custom archetype which should generate some java code the java file has something like public static String ${myvar} and I try to generate

Re: How to display/transfer maven compilation errors/logs in Web page

2009-10-14 Thread Wayne Fay
But My requirment is quite different. For Example: Thanks again for your reply. And i need some more help from here...Desperately. No one here is going to build this complicated system for you. And it does not currently exist, so you're going to be building something from scratch, it seems.

RE: Manual plugin installation

2009-10-14 Thread Radhakrishnan, Tamilselvan (GE Capital, Non-GE)
Hi, Thanks very much. I've got the details by downloading the .pac file. Now I'll try with host and port details to configure the maven automatically. Note : The .pac file can be downloaded by just pasting the PAC URL in the browser. EX: http://company/pac.pac Regards, Tamil Tamilselvan

release:branch in batch mode doesn't seem to accept branch version values

2009-10-14 Thread Allan Ditzel
Hi, I'm trying to make a branch from a tag in batch mode using the release plugin. The pom in the tag has its version set to 0.2.0. I would like for the branch version to be 0.2.1-SNAPSHOT, however when I use the plugin it always sets the branch version to 0.2.0-SNAPSHOT. However, in interactive

custom plugin combining/calling up other plugins

2009-10-14 Thread aldana
hi, i need plugin functionality which should reuse functionality from two others (dbunit+jetty) and add some custom additional behaviour. generally i try to avoid building custom plugins and to reuse existing ones but now i got a very specific probem for integration tests. further more the

existing plugin running-mode convention (fork vs in-process mode)?

2009-10-14 Thread aldana
during lifecycle maven delegates work to plugins. is there a general convention whether plugins should do their work in fork or in-process mode (running in the same process of mvn binary) or is it completely up to the plugin-author? afaik plugins doing fork mode document this explicitly in their

Re: Maven repository restricted access.

2009-10-14 Thread Anders Hammar
Do you mean configuring the credentials? Sure, that's how you do it: http://maven.apache.org/settings.html#Servers The actual repo configuration could go in either your pom or in a profile in settings.xml. /Anders On Wed, Oct 14, 2009 at 16:27, David Meunier david.meun...@si4g.fr wrote: Hi,

Re: custom plugin combining/calling up other plugins

2009-10-14 Thread Allan Ditzel
The MojoExecutor worked very well for me: http://code.google.com/p/mojo-executor/ Just statically import the methods and use as per the example in the page. Hope that helps! Allan On Wed, Oct 14, 2009 at 2:36 PM, aldana ald...@gmx.de wrote: hi, i need plugin functionality which should

Anyone know a shortcut? (Maven 1.1)

2009-10-14 Thread laredotornado
Hi, I'm using Maven 1.1. Right now, in my webapp project, I'm running maven war:install maven jar:install to generate my deployable WAR file and then to generate a JAR with the included classes so that my unit tests have something to look at. Does anyone know a way that I can run maven

Re: Maven repository restricted access.

2009-10-14 Thread Brian Fox
You use server entries in your settings to provide auth to remote repos (Nexus in this case) that maven is talking to. If Nexus is talking to the remote repo, then you configure the authentication in the Nexus proxy repository configuration for that repo. 2009/10/14 David Meunier

Re: [WARNING] *** CHECKSUM FAILED - Checksum failed on download

2009-10-14 Thread Brian Fox
Maven 2.2.0 has a bug that causes it to incorrectly calculate the outgoing checksums when deploying to an authenticated repository. (it doubles the stream and hashes that). You can repair this with the repair maven metadata command in Nexus then switch your build system to use 2.2.1 to stop it

Translation module in checkstyle maven plugin

2009-10-14 Thread tom
Hi, i need to check consistency of translation files during the build. I heard Checkstyle has a Translation module that can check for missing keys in translation files. Does anybody know how to configure this module. How to define files set that should be checked? Google doesn't answer these

RE: Anyone know a shortcut? (Maven 1.1)

2009-10-14 Thread Jeff Jensen
You could add a custom goal in maven.xml that does both of those installs. I actually suggest moving the Java code into its own Java project... -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Wednesday, October 14, 2009 1:54 PM To: users@maven.apache.org

RE: Anyone know a shortcut? (Maven 1.1)

2009-10-14 Thread laredotornado
Regarding your first idea, how would I do this without executing an infinite loop (keeping in mind I would like war:install to execute both war:install and jar:install). Below is my maven.xml file, but it causes an infinite loop when I type in war:install ... project xmlns:j=jelly:core

Re: Translation module in checkstyle maven plugin

2009-10-14 Thread Dennis Lundberg
You might also want to check out the Localization Tools Maven Plugin over at Codehaus: http://mojo.codehaus.org/l10n-maven-plugin/ [the] l10n:report tracks the completeness of your localization for specified locales and displays the results in tabular form tom wrote: Hi, i need to check

RE: Anyone know a shortcut? (Maven 1.1)

2009-10-14 Thread Jeff Jensen
You need to give your goal a unique name... -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Wednesday, October 14, 2009 2:58 PM To: users@maven.apache.org Subject: RE: Anyone know a shortcut? (Maven 1.1) Regarding your first idea, how would I do this

Re: release:branch in batch mode doesn't seem to accept branch version values

2009-10-14 Thread Benson Margulies
personally, I couldn' t get release:branch to work at all, interactively or batch. On Wed, Oct 14, 2009 at 2:23 PM, Allan Ditzel allan.dit...@gmail.comwrote: Hi, I'm trying to make a branch from a tag in batch mode using the release plugin. The pom in the tag has its version set to 0.2.0. I

RE: Anyone know a shortcut? (Maven 1.1)

2009-10-14 Thread laredotornado
Thanks for your reply. So there's ABSOLUTELY no way to type war:install and also have jar:install run after? - Dave Jeff Jensen wrote: You need to give your goal a unique name... -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Wednesday,

Re: archetype:generate and the `goals` optional parameter

2009-10-14 Thread Pascal Thivent
I'm wondering why `mvn archetype:generate` has an optional `-Dgoals` parameter. I understand how to use this parameter but... do you have any idea of a real use case for it ? The case at the time was a user asking to perform some one time operations like eclipse:eclipse. Whether this is

Re: release:branch in batch mode doesn't seem to accept branch version values

2009-10-14 Thread Allan Ditzel
Really? Were you running it from the location the trunk was checked out? For us, if we do a mvn release:prepare in the location of the trunk, then release:perform, and then cd into target/checkout and from there do mvn release:branch -DbranchName=my-branch -DupdateBranchVersions=true

RE: Anyone know a shortcut? (Maven 1.1)

2009-10-14 Thread Jeff Jensen
You may be able to hook into the war:install goal and add the run of jar:install, but I can't remember... been at least a couple of years! Hopefully another will comment for you. -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Wednesday, October 14, 2009

Local Repository Snapshot weirdness - wrong snapshot resolved

2009-10-14 Thread Peter Kahn
Ever run into a problem where the snapshot used isn't the most recent? Any idea what could cause that? I have a build that depends on a snapshot on someone else's repository. I use nexus so all are proxied through and the snapshot repositories are setup in nexus. when I built, the dep in

Re: release:branch in batch mode doesn't seem to accept branch version values

2009-10-14 Thread Benson Margulies
That recipe never occured to me. I just try to run it as I'd run the release side of thing, and the results were chaotic. On Wed, Oct 14, 2009 at 4:40 PM, Allan Ditzel allan.dit...@gmail.comwrote: Really? Were you running it from the location the trunk was checked out? For us, if we do a mvn

Dependency of 2 modules

2009-10-14 Thread Max Grigoriev
Hi everybody, I have parent module(pom) and 2 children - jar + war. Is it possible to make rule that in case of failure of war module, jar module isn't installed to repository? Because now jar module is OK and it's installed to rep, but then in war module there're errors in integration tests

Maven jetty plugin and excluding activation jar

2009-10-14 Thread richard schmidt
How do I exclude the activation jar when i start up jetty using the maven-jetty-plugin:run goal? The WAR we are developing is to be deployed to a tomcat server, which does NOT include the activation.jar in its lib directory. This means that we need to include the jar in the project WAR file.

Re: Maven jetty plugin and excluding activation jar

2009-10-14 Thread Wayne Fay
How can I configure the maven-jetty-plugin to exclude the activation.jar when jetty starts up? Proper usage of profiles is nearly always the solution to these kinds of problems. Wayne - To unsubscribe, e-mail:

Re: Maven jetty plugin and excluding activation jar

2009-10-14 Thread richard schmidt
I am sorry but I dont understand what you mean? On Thu, Oct 15, 2009 at 3:24 PM, Wayne Fay wayne...@gmail.com wrote: How can I configure the maven-jetty-plugin to exclude the activation.jar when jetty starts up? Proper usage of profiles is nearly always the solution to these kinds of