Commit failed, file out of date error with maven-ant-plugin

2009-06-09 Thread Nafter
I'm using maven and within maven I use ANT (maven-ant-plugin). In ANT I have some actions to: 1) entirely delete 3 directories on the server 2) recreate the same 3 directories again, and do a checkout on 3 different svn urls. 3) now just to be sure I do an svn update on the 3 directories again. 4

aspectj-maven-plugin - working with weaved jars: need exclusions and where´s the sources.jar?

2009-06-09 Thread torsten . reinhard
Hi, I´ve created an "aspectJ" build module, to weave some "monitoring aspects" into an existing jar: ... org.agroup to-weave-enhanced ... org.codehaus.mojo aspectj-maven-plugin ... org.agroup

Re: $JAVA_HOME ignored?

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 5:49 PM, Elliot Huntington wrote: Why is it then that in order to have maven compile my project for 1.5 I need to use the following? Maven's compiler plugin always defaults to a Java 1.3 target, regardless of the host VM version. Trevor

Re: $JAVA_HOME ignored?

2009-06-09 Thread Robert Glover
I'm a new maven user starting the journey up the maven learning curve. I recall reading in the free Maven book that by default Maven sets itself to java 1.3. But I'm not sure if I'm recalling that correctly. If it's not 1.3 then it is certainly 1.4. It is definately not 1.5.

Re: Run a file using maven

2009-06-09 Thread Samuli Ulmanen
Hello, if you're up for using groovy, this might work, depending on what type of input you are thinking of. The basic idea is to use the gmaven plugin and some inline groovy code to dynamically run your web services client. You can find what to put in your pom.xml in the below link. Almost

$JAVA_HOME ignored?

2009-06-09 Thread Elliot Huntington
Hi everyone, Following the installation instructions for Maven, I set my JAVA_HOME environment variable to point to my Java 5 directory. Why is it then that in order to have maven compile my project for 1.5 I need to use the following?

RE: Exception during "Dependencies" report.

2009-06-09 Thread EJ Ciramella
Any feedback? I didn't see any associated jira's... -Original Message- From: EJ Ciramella [mailto:ecirame...@upromise.com] Sent: Friday, June 05, 2009 1:20 PM To: Maven Users List Subject: RE: Exception during "Dependencies" report. I tried upgrading to: org.apache.maven.plugins maven-

Duplicate class warnings when using shade plugin

2009-06-09 Thread James Adams
I am building my JAR file using the shade plugin in order to give me an all-in-one JAR artifact which contains all dependency JARs. When I build using "mvn clean install" I always get thousands of message like the following, indicating that there's a duplicate class file in a JAR in the repositor

Re: Excluding default repositories

2009-06-09 Thread daniel.green
So... something like the following and I should be set? onsite-repo On-Site Artifact Repository http://foo.bar/baz/ * Stephen Connolly-2 wrote: > > Yep... point everything at your repository > > * > > FYI, you want to do this anyway as running a reposi

Re: follow to: problem upgrading from maven 2.0.9 to 2.1

2009-06-09 Thread Wayne Fay
Proxy issues are, by their very nature, almost impossible for an outsider to investigate and resolve. There are literally hundreds (or more) of proxy server software packages in the world, and while they all more or less work for basic web browsing, most have issues with various pieces of software

Re: follow to: problem upgrading from maven 2.0.9 to 2.1

2009-06-09 Thread Robert Glover
>>I believe your problem must lie within your proxy: I was overly glib in wrongly implying this problem is recreate-able in shops where maven 2.1.0 is working okay. I simply meant it always happens to me at work, even when the pom file is the simplest possible. I agree with you tha

Re: follow to: problem upgrading from maven 2.0.9 to 2.1

2009-06-09 Thread Wayne Fay
I followed your directions exactly and got the following results: [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 26 seconds [INFO] Finished at:

Re: Read a Log

2009-06-09 Thread David Nemer
Sorry.. not to read teh content of a log.. but to read the content of the InvocationOutputHandler -- David Nemer Sent from Kaiserslautern, RP, Germany On Tue, Jun 9, 2009 at 7:45 PM, David Nemer wrote: > Hey All, > > I wonder once I have the log from a Built project, how can I read the > conten

Read a Log

2009-06-09 Thread David Nemer
Hey All, I wonder once I have the log from a Built project, how can I read the content of this log? request.setShowErrors(true); request.setDebug(true); InvocationOutputHandler errHandler = new SystemOutHandler(); request.setErrorHandler( errHandler ); If I put errHandler.toString() it will only

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Dan Tran
if you can get release:perform to invoke launch4j:launch4j then wagon is plugin is the devil :-) So we need move the Jira to wagon-plugin instead. In the mean while you may want to try the profile suggestion ( there is plenty to example on maven build itself ) -Dan On Tue, Jun 9, 2009 at 10:1

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 10:21 AM, Dan Tran wrote: Release plugin does not know about command line goals, but only a phase goal. I'm not sure what a command line goal is. I think you mean it only works with phases, not goals. But that's contrary to both the documentation and my experience using

Re: follow to: problem upgrading from maven 2.0.9 to 2.1

2009-06-09 Thread Robert Glover
I've reduced the problem of why I can't upgrade from maven 2.0.9 to to 2.1.0 to it's barest essentials. For my recreatable test, I am using the instructions in chapter 3 of "Maven: The Definitive Guide" from the section "Creating a Simple Project". Note as I detail the steps below

[ANNOUNCE] Sonar 1.9 released

2009-06-09 Thread Olivier Gaudin
Sonar is an open source platform that manages java source code quality. The Sonar Team is pleased to announce the release of Sonar 1.9. The new version includes sonar-squid, a new analysis engine to replace JavaNCSS. Sonar-squid is more accurate on existing metrics, enables to calculate new one

Re: Run a file using maven

2009-06-09 Thread Wayne Fay
> If there is an other way to do that please tell me as soon possible! This is not a general Java programming help email list. Ask the PEtALS users list what they think you should do, or JavaRanch, or places like that. Maven is doing its job properly. Wayne --

Re: Run a file using maven

2009-06-09 Thread Wayne Fay
This is your problem. Fix your code. > Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException >  - with linked exception: > [javax.xml.bind.JAXBException: A DOM document "class > com.sun.org.apache.xerces.internal.dom.DocumentImpl" is found but an element > is needed. Use Doc

Re: Get Maven's Error Message

2009-06-09 Thread David Nemer
I was wondering if the SystemOutLogger would help me with the issue... Thoughts? Please guys, I'm really stuck here, and I can't seem to pass this issue. THank you. -- David Nemer Sent from Kaiserslautern, RP, Germany On Tue, Jun 9, 2009 at 4:51 PM, David Nemer wrote: > Now I'm trying to use

Re: How to copy file(.jks) KEEPING ORIGINAL FILE DATE in maven

2009-06-09 Thread Mick Knutson
Have you tried an assembly instead? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Renta

Re: Get Maven's Error Message

2009-06-09 Thread David Nemer
Now I'm trying to use: InvocationOutputHandler errorHandler = new SystemOutHandler(); invoker.setErrorHandler(errorHandler); request.getErrorHandler(errorHandler); But the request.getErrorHandler(errorHandler) is returning: "org.apache.maven.shared.invoker.systemouthand...@4b142196" and not the

How to copy file(.jks) KEEPING ORIGINAL FILE DATE in maven

2009-06-09 Thread Flores, Cesar (Genworth, Contractor)
Hello, I'm trying to copy with maven a file (*.jks) so that file keeps the original file date , but no success till now, the copied file get the current date not the original one. Have someone faced something like this? Any advises? Thanks for your kind Help I'm using something like next:

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Dan Tran
Reinhard is correct, you should bind your upload goal to a phase that only activated via release profile. Release plugin does not know about command line goals, but only a phase goal. -D On Tue, Jun 9, 2009 at 12:56 AM, Reinhard Nägele wrote: > I guess it should work, yes. At least I would not k

Re: Run a file using maven

2009-06-09 Thread wabom
To be clear: I have a set of web services deployed in tomcat. I want to invoke only a subset of these web services based on my input. i.e depending on my inputs I have a module which compute the appropriate web services to be called and generates the name of these web services. The problem is that

Excludes while checking out in maven

2009-06-09 Thread neptune_pluto
Hi , I tried to execlude a file while checking out from repository but the files are getting checked out..is there any way i can restrict them.. org.apache.maven.plugins maven-scm-plugin 1.0 ${basedir}/src **/web.xml Regards -- Click for exclusive coverage on the Maruti Ritz b

Re: Run a file using maven

2009-06-09 Thread wabom
Thank you, I deployed some web services (build by maven) in tomcat, after that, I integrated them in PEtALS(Entreprise Service Bus). Now I am using a client to instantiate a subset of these web services using a generic chain(also deployed in PEtALS). http://www.nabble.com/file/p23939446/pom.xml po

Re: Run a file using maven

2009-06-09 Thread Martin Höller
On Tuesday 09 June 2009 wabom wrote: > Thank you first of all, > I got this type of exception and I don't know how to solve it??? > > org.apache.maven.lifecycle.LifecycleExecutionException: An exception > occured while executing the Java class. null How did you specify the java class you want to e

Re: Run a file using maven

2009-06-09 Thread wabom
Thank you first of all, I got this type of exception and I don't know how to solve it??? org.apache.maven.lifecycle.LifecycleExecutionException: An exception occured while executing the Java class. null at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleEx

Re: Run a file using maven

2009-06-09 Thread Martin Höller
On Tuesday 09 June 2009 wabom wrote: > Hi, > I want to know how to run a file using maven command. > Thanks... http://www.lmgtfy.com/?q=maven+execute+command - martin signature.asc Description: This is a digitally signed message part.

Run a file using maven

2009-06-09 Thread wabom
Hi, I want to know how to run a file using maven command. Thanks... -- View this message in context: http://www.nabble.com/Run-a-file-using-maven-tp23938277p23938277.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 3:56 AM, Reinhard Nägele wrote: I guess it should work, yes. At least I would not know why it doesn't. I filed a bug on it: http://jira.codehaus.org/browse/MRELEASE-453 Trevor - To unsubscribe, e-mail: u

RE: wagon:upload fails only with release:perform

2009-06-09 Thread Reinhard Nägele
I guess it should work, yes. At least I would not know why it doesn't. If you don't want the suggested execution to happen on every install, you can wrap it into a profile that is only activated for releases. Reinhard -Original Message- From: Trevor Harmon [mailto:tre...@vocaro.com]

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 3:26 AM, Reinhard Nägele wrote: Have you tried to create an execution for the wagon plugin that is bound to the install phase instead of adding the wagon:upload to the release plugin goals? No, because the wagon:upload goal is uploading files produced by the release plu

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Dan Tran
the pom looks fine, more likely the issue is from release plugin -D On Mon, Jun 8, 2009 at 11:59 PM, Trevor Harmon wrote: > Hi, > > I'm using release:perform, and it works perfectly in the standard > configuration. But now I'm trying to modify it so that an additional goal is > invoked as part of

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Reinhard Nägele
Have you tried to create an execution for the wagon plugin that is bound to the install phase instead of adding the wagon:upload to the release plugin goals? Reinhard Trevor Harmon schrieb: Hi, I'm using release:perform, and it works perfectly in the standard configuration. But now I'm try

wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
Hi, I'm using release:perform, and it works perfectly in the standard configuration. But now I'm trying to modify it so that an additional goal is invoked as part of the release:perform process. The additional goal is wagon:upload, which I've configured to upload some files to a server vi