Re: problem: Maven creates the second plugin classloader during parallel build and uses two classloader hierachies simultaneously

2012-07-11 Thread Oleg Estekhin
HI, thanks for response. By the "build tasks" I meant invocations of plugin:goal. In our case we narrowed the issue down to the single phase and single plugin, so during parallel build Maven just runs the same plugin:goal (svn-revision-number-maven-plugin:revision) for different modules. The

Re: Problem with maven and deleting files in a test case

2012-07-11 Thread Wayne Fay
> For a better understanding I reduced my code to the problem parts and > made a small project (maven-file-test, attached to the mail). In this Just so you know, this mail list strips attachments. If you want to share the project, you will need to post it somewhere like Gist. Wayne -

Problem with maven and deleting files in a test case

2012-07-11 Thread esyimn...@gmx.de
Hey fellas, I have a strange problem with Maven and deleting files in a test case. For a better understanding I reduced my code to the problem parts and made a small project (maven-file-test, attached to the mail). In this project there is the class FileUtils with the method "writeFile(File, String

Re: problem: Maven creates the second plugin classloader during parallel build and uses two classloader hierachies simultaneously

2012-07-11 Thread Olivier Lamy
Hi, 2012/7/11 Oleg Estekhin : > Hi, > > I am trying to solve the mystery behind > http://code.google.com/p/maven-svn-revision-number-plugin/issues/detail?id=16 > with the help of the reporter of the original issue and the developer of > SqlJet library. > > So far we have found that at some point t

Re: Dependency entry changes runtime

2012-07-11 Thread Wayne Fay
> Now that I think again, the problem is not that the class is not found. The > error says "java.lang.IllegalArgumentException: Object: > com.xxx.entities.XyzEntity@3a18c1 is not a known entity type" which is > coming from EclipseLink in WebLogic. > > But I wonder why making a trivial change (as i

RE: Dependency entry changes runtime

2012-07-11 Thread Amir Gheibi
Thanks mate. Still Identical MANIFEST(!) and when I compared the JARs with a tool (BeyondCompare) I could only see one difference which is maven directory under META-INF directory. Now that I think again, the problem is not that the class is not found. The error says "java.lang.IllegalArgumentE

Re: Dependency entry changes runtime

2012-07-11 Thread Wayne Fay
OK so back up. First, leave the dependency out of A and run "mvn clean package". Set that jar file aside (rename it and move it out of target or clean will remove it.) Now add the dependency and run "mvn clean package". Set that jar file aside like you did before. Now use some tool to unzip both

RE: Dependency entry changes runtime

2012-07-11 Thread Amir Gheibi
Here is A's Manifest entry which as I mentioned, is identical in both scenarios. Manifest-Version: 1.0 Built-By: bm03043 Build-Jdk: 1.6.0_18 Created-By: Apache Maven 3.0.4 Archiver-Version: Plexus Archiver Extension-List: entities entities-Extension-Name: com.xxx.entities -Original Message---

RE: Dependency entry changes runtime

2012-07-11 Thread Amir Gheibi
The dependency is added with "provided" scope and MANIFEST is identical in both scenarios. That MANIFEST entry that I mentioned is required for weblogic to make the connection between A and B. -Original Message- From: Wayne Fay Sent: July-11-12 11:13 AM To: Maven Users List Subject: Re:

Re: Dependency entry changes runtime

2012-07-11 Thread Wayne Fay
> Runtime environment is a "Weblogic 10.3.3" in which "B" is registered as an > Optional Package (Library) and there is an extension entry in A's MANIFEST > that refers to it (that's how A finds B in runtime). > > I compared A's JAR file in both scenarios and I don't see any difference > whatsoe

Dependency entry changes runtime

2012-07-11 Thread Amir Gheibi
Hi, I have a project in which a module, say "A", has a runtime dependency (not required during compile) to another module ("B"). Without explicitly adding the dependency to A's POM file it compiles (everything is passed to A as "object"). But during runtime it won't find "B". Even though it ex

Re: preferIPv4Stack

2012-07-11 Thread Elliot Huntington
Thank you. On Wed, Jul 11, 2012 at 10:59 AM, Olivier Lamy wrote: > Via env var MAVEN_OPTS ? > > 2012/7/11 Elliot Huntington : > > $ mvn --version > > Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700) > > Maven home: c:\devtools\apache-maven-3.0.4 > > Java version: 1.7.0_05, vendor: Oracle

Re: preferIPv4Stack

2012-07-11 Thread Olivier Lamy
Via env var MAVEN_OPTS ? 2012/7/11 Elliot Huntington : > $ mvn --version > Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700) > Maven home: c:\devtools\apache-maven-3.0.4 > Java version: 1.7.0_05, vendor: Oracle Corporation > Java home: c:\devtools\Java\jdk1.7.0_05\jre > Default locale: en_US

preferIPv4Stack

2012-07-11 Thread Elliot Huntington
$ mvn --version Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700) Maven home: c:\devtools\apache-maven-3.0.4 Java version: 1.7.0_05, vendor: Oracle Corporation Java home: c:\devtools\Java\jdk1.7.0_05\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", ar

Re: Jsp plugin for maven

2012-07-11 Thread Wayne Fay
> I have been trying to use jspc plugin to compile my jsp files.After running > mvn install saw that the target folder has a jsp-source->jsp and jsp > folders has my jsp files stores as .java > Not able to figure out the problem. I can't tell what the problem is in this statement. Please restate

Corrupt metadata

2012-07-11 Thread Pimentel, Robert
Maven 2.2.1 Archiva 1.2.1 Hudson 2.0.0 Hi, It appears that we have a corrupt metadata file for one of our projects. Here is a snippet of the output from the failing job: [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'cd315359376ec31bb4e3213a368618ecc7beca1e'; remote =

Re: Fail to build snapshot

2012-07-11 Thread Marc Girod
Wayne Fay wrote > > If you have problems running tests, then just skip them [1]. > Thanks. Skipping the tests, the build works. Wayne Fay wrote > > As an aside, I pulled down wagon-2.2 from the tag and had no issues > building > it and running tests. > Right. I did that too, with no change w

problem: Maven creates the second plugin classloader during parallel build and uses two classloader hierachies simultaneously

2012-07-11 Thread Oleg Estekhin
Hi, I am trying to solve the mystery behind http://code.google.com/p/maven-svn-revision-number-plugin/issues/detail?id=16 with the help of the reporter of the original issue and the developer of SqlJet library. So far we have found that at some point there appears second classloader, which

[ANN] Committer School for people who want to become Maven Committers

2012-07-11 Thread Stephen Connolly
Hi everyone, I just posted on my blog about an idea to get some more committers involved in the Maven project: http://javaadventure.blogspot.ie/2012/07/do-you-want-to-become-maven-committer.html If you are interested sign up. Also please consider tweeting, google+ing, facebooking, etc so we can

Re: Xdoclet not generating EJB's

2012-07-11 Thread Jörg Schaible
Hi, Baskar D wrote: > > Hi, > > I am using xdoclet maven plug-in for generating EJB's. I configured > xdoclet properly and able to generate EJB when I build the project through > Netbeans IDE and command propmpt. > > In Netbeans simple I can right click on project and select Clean and > Build

Jsp plugin for maven

2012-07-11 Thread priya hulekal
I have been trying to use jspc plugin to compile my jsp files.After running mvn install saw that the target folder has a jsp-source->jsp and jsp folders has my jsp files stores as .java Not able to figure out the problem. Regards, Priya