RE: Compilation failure on Windows while SUCCESSFUL on Linux

2009-10-22 Thread Martin Gainty
any reason why the first package is korean? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um ein

Re: Compilation failure on Windows while SUCCESSFUL on Linux

2009-10-22 Thread Isaac
This is my execution log. *ON WINDOWS* mvn clean compile [INFO] Scanning for projects... [INFO] snapshot company-central.parent:central:1.0.0-SNAPSHOT: checking for updates from company [INFO] snapshot parent:company:1.0.0-SNAPSHOT: checking for updates from company [INFO]

Re: Aspectj jars refuse to get imported

2009-10-22 Thread Barrie Treloar
On Fri, Oct 23, 2009 at 11:53 AM, Paul Benedict wrote: > Please see: > http://jira.codehaus.org/browse/MECLIPSE-584 > > Since 2.6 of the Maven Eclipse Plugin, AspectJ jars are no longer > honored (by default) since a separate plugin controls AJDT features. > As you will read in the ticket, if you

Re: Aspectj jars refuse to get imported

2009-10-22 Thread Paul Benedict
Please see: http://jira.codehaus.org/browse/MECLIPSE-584 Since 2.6 of the Maven Eclipse Plugin, AspectJ jars are no longer honored (by default) since a separate plugin controls AJDT features. As you will read in the ticket, if you wish to reverse this feature, add none. Paul On Thu, Oct 22, 2009

Re: maven-eclipse-plugin and src/main/webapp with Eclipse

2009-10-22 Thread Barrie Treloar
On Fri, Oct 23, 2009 at 10:50 AM, Benson Margulies wrote: > An Eclipse project type, or perspective, can decide to show the tree any way > it likes. The default Java perspective shows all folders as ordinary folders > except source folders. It hauls source folders to the top of the project, > give

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Brett Porter
On 23/10/2009, at 11:39 AM, Hilco Wijbenga wrote: It needs to be under , in the section (not the section, and not the section). Here is a working example from the Effective Implementation book: http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/pom.xml Weird, th

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Hilco Wijbenga
2009/10/22 Brett Porter : > > On 23/10/2009, at 10:45 AM, Hilco Wijbenga wrote: > >> Yes, I know about this. :-) Here's what I tried and doesn't work: >> >> pmd-ruleset: >> src/main/resources/rulesets/da.xml (full set of rules; this is what >> Eclipse generates so I expect it to be okay) >> >> my-p

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Hilco Wijbenga
2009/10/22 Daniel Kulp : > See: > http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.html > and > http://cxf.apache.org/setting-up-eclipse.html > > CXF does this quite well. > > The "setup.eclipse" profile we have sets up the workspace with CXF code > styles, import orders, compiler

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Daniel Kulp
See: http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.html and http://cxf.apache.org/setting-up-eclipse.html CXF does this quite well. The "setup.eclipse" profile we have sets up the workspace with CXF code styles, import orders, compiler warning levels, checkstyle rules, etc..

Re: maven-eclipse-plugin and src/main/webapp with Eclipse

2009-10-22 Thread Benson Margulies
An Eclipse project type, or perspective, can decide to show the tree any way it likes. The default Java perspective shows all folders as ordinary folders except source folders. It hauls source folders to the top of the project, gives them a special icon, and labels them with the full pathname (e.g.

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Brett Porter
On 23/10/2009, at 10:45 AM, Hilco Wijbenga wrote: Yes, I know about this. :-) Here's what I tried and doesn't work: pmd-ruleset: src/main/resources/rulesets/da.xml (full set of rules; this is what Eclipse generates so I expect it to be okay) my-project pom.xml (snippets only): pmd-ruleset

RE: Aspectj jars refuse to get imported

2009-10-22 Thread Martin Gainty
did you put these dependencies on the test project pom.xml? assuming you have maven-eclipse try exporting the test project pom.xml and placing these dependencies into the pom.xml manually then the project should see the plugins referenced from local repository Martin Gainty ___

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Wayne Fay
> AFAICT, the Eclipse plugin is rather limited in what it supports. I > have only been able to add an absolute path to a rule set. Last I checked, the PMD plugins you mentioned are both open source. So if this isn't currently possible, tweak the code and submit a patch. ;-) Based on your comments

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Hilco Wijbenga
2009/10/22 Brett Porter : > It does work as a plugin dependency, but I'm not sure about that for eclipse > (though presumably if you have that resources project open, you can point it > directly at the file). AFAICT, the Eclipse plugin is rather limited in what it supports. I have only been able t

Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Brett Porter
It does work as a plugin dependency, but I'm not sure about that for eclipse (though presumably if you have that resources project open, you can point it directly at the file). The example is the same as at the bottom of this page for Checkstyle: http://maven.apache.org/plugins/maven-checkst

Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin

2009-10-22 Thread Hilco Wijbenga
Hi all, I'm trying to share the rule set definition for PMD between Maven and Eclipse. I had hoped to create a separate Maven project which would generate a JAR with the rule set I want to use. I had thought to add that JAR as a dependency to maven-pmd-plugin (or as a regular dependency) and refer

Re: maven-eclipse-plugin and src/main/webapp with Eclipse

2009-10-22 Thread Barrie Treloar
On Fri, Oct 23, 2009 at 6:31 AM, Vincent F wrote: > > My plugin configuration is the following > > >      org.apache.maven.plugins >      maven-eclipse-plugin >      2.7 >         >             war >             false >             2.0 >             true >         > > > So as you can see, pack

Re: Aspectj jars refuse to get imported

2009-10-22 Thread Barrie Treloar
On Fri, Oct 23, 2009 at 5:37 AM, Yaakov Chaikin wrote: > Hi, > > Perhaps, someone can point out to me what I am doing wrong... > > I have the following simple pom.xml file: > ** > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >        x

Maven JavaScript Plugin

2009-10-22 Thread Neil Chaudhuri
A colleague at work expressed an interest in doing a lot of Maven-like things in the JavaScript realm. I did some research and discovered the Maven JavaScript plugin. It looks neat, but it is an alpha version and seems to have little activity. I was simply hoping to find some comments from tho

Re: What is executionProject?

2009-10-22 Thread Brian Fox
Its been a while admittedly since I dealt with a forked plugin, but yes I believe the executionProject is used when the lifecycle is forked. If you are interested in the forked roots, you would use that, otherwise fall back to the normal project. On Thu, Oct 22, 2009 at 1:20 PM, Ryan Stewart wrot

Re: maven-eclipse-plugin and src/main/webapp with Eclipse

2009-10-22 Thread Vincent F
My plugin configuration is the following org.apache.maven.plugins maven-eclipse-plugin 2.7 war false 2.0 true So as you can see, packaging is "war" but /src/main/webapp is not added as a source. In the .c

Re: Multiple execution of generate-sources phase during the site lifecycle

2009-10-22 Thread Jozsef Zsido
Hi, Any thoughts anybody? Why are the phases executed multiple times? How could I prevent it? I created a simple pom with an ant echo bound to the generate sources phase and I the problem is reproducing. I could post the pom.xml but is so trivial... Regards, Jozsef On Sun, Aug 30, 2009 at 11:07

Aspectj jars refuse to get imported

2009-10-22 Thread Yaakov Chaikin
Hi, Perhaps, someone can point out to me what I am doing wrong... I have the following simple pom.xml file: ** http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.

What dependency do I need to include?

2009-10-22 Thread laredotornado
Hi, I'm using Maven 1.1. I'm writing unit tests for a console application but I'm having trouble connecting to the Oracle database, due to "java.sql.SQLException: No suitable driver". Google has told me in so many words that this is a classpath issue. I tried adding this line in my JUnit setUp

RE: Why are repositories usually separated into releases and snapshots?

2009-10-22 Thread Todd Thiessen
Very interesting discussion. We have been having some of the exact same discussions. A lot of it comes down to what one defines as a team. Is a team a collection of 3 developers working on a very specific part of a larger system? Or, on the complete other side of the spectrum, is it 100 developers

What is executionProject?

2009-10-22 Thread Ryan Stewart
I'm trying to modify a Maven plugin, and it currently uses project.getExecutionProject().getCompileSourceRoots(). While trying different configurations, I sometimes get a NPE because getExecutionProject() returns null. I haven't been able to find a good explanation of what this thing is. I gather

Re: Why are repositories usually separated into releases and snapshots?

2009-10-22 Thread Brian Fox
On Thu, Oct 22, 2009 at 9:45 AM, Martin Gainty wrote: > > a snapshot usually has no guarantee of passing any sort of testits a way > for a programmer/developer to prove > that the developer assigned has done *something*..but the snapshot carries no > guarantee has passed completely thru the

Re: Re : Re : Updating properties defined in pom from command line

2009-10-22 Thread Stephen Connolly
If it isn't easy to fix we can always add an update-property mojo that takes a -DnewValue=___ property 2009/10/22 Stephen Connolly > I haven't looked at the test cases yet... > > in theory yes > > ;-) > > -Stephen > > 2009/10/22 Julien HENRY > > Bug submitted with 2 IT test cases (1st with valu

Re: Re : Re : Updating properties defined in pom from command line

2009-10-22 Thread Stephen Connolly
I haven't looked at the test cases yet... in theory yes ;-) -Stephen 2009/10/22 Julien HENRY > Bug submitted with 2 IT test cases (1st with value fixed in the pom and 2nd > with a property specified on the command line). > > MVERSIONS-80 > > I didn't have looked at the plugin code yet and I w

Re: Loosing Main-Class: in JAR MANIFEST when creating 2 jars

2009-10-22 Thread Wayne Fay
> When I have BOTH of these plugins configured, both > JAR files get created however I do NOT get the Main-Class > in the MANIFEST.  But when I comment out the second > plugin configuration (which creates the jars with the rmi > stubs) then the MANIFEST does contain Main-Class.  Any ideas? You're

Re: Maven assembly and onejar goal

2009-10-22 Thread Nick Stolwijk
I don't have the setup or time to give you a full working example. Just try it yourself, the documentation is on the site and in the book. [1] http://maven.apache.org/plugins/maven-assembly-plugin/ [2] http://www.sonatype.com/books/maven-book/reference/assemblies.html Hth, Nick Stolwijk ~Java De

Loosing Main-Class: in JAR MANIFEST when creating 2 jars

2009-10-22 Thread Michael Remijan
When I have BOTH of these plugins configured, both JAR files get created however I do NOT get the Main-Class in the MANIFEST. But when I comment out the second plugin configuration (which creates the jars with the rmi stubs) then the MANIFEST does contain Main-Class. Any ideas?

Re: Repository managers - support for reusable nested groups

2009-10-22 Thread Wayne Fay
> Can anyone confirm my conclusion that Nexus does not support nested reusable > groups, contrary to what is currently stated in the codehaus matrix? Nexus questions belong on the Nexus Users list: http://nexus.sonatype.org/project-information.html Wayne -

Repository managers - support for reusable nested groups

2009-10-22 Thread Eran Haggiag
Hi All, We are in the process of evaluating repository managers for our company to replace our old in-house Apache based repository. One very important aspect for us is having the ability to define groups of repositories that is reusable within other groups. This way, we can create once predefine

Re: Maven assembly and onejar goal

2009-10-22 Thread Laurent PELLEGRINO
I don´t really understand because the both file have the same name in the two jar dependencies which are unzipped. Can you give me an example ? 2009/10/22 Nick Stolwijk : > DependencySet is part of DependencySets, so you can have multiple of them. > > If you exclude one dependency from dependency

Re: Maven assembly and onejar goal

2009-10-22 Thread Nick Stolwijk
DependencySet is part of DependencySets, so you can have multiple of them. If you exclude one dependency from dependencySet and create a new one, which includes this dependency but excludes the specific file, I guess you have what you need. With regards, Nick Stolwijk ~Java Developer~ IPROFS BV

Re: Maven assembly and onejar goal

2009-10-22 Thread Alexander
Next time quote your message or copy to make sure everybody could understand what are you talking about. 2009/10/22 Laurent PELLEGRINO > Thanks for your answer. > > The last link is what I use. My question is how to add an exclude part > by using filename and groupId:artefactId. Because if you d

Re: Maven assembly and onejar goal

2009-10-22 Thread Laurent PELLEGRINO
Thanks for your answer. The last link is what I use. My question is how to add an exclude part by using filename and groupId:artefactId. Because if you do the following > > / > runtime > > groupIdB:dependencyB > META-INF/servi

Re: Maven assembly and onejar goal

2009-10-22 Thread Alexander
Help, where? 2009/10/22 Laurent Pellegrino > > Nobody can help me ? > -- > View this message in context: > http://www.nabble.com/Maven-assembly-and-onejar-goal-tp25994225p26011595.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > ---

RE: Maven assembly and onejar goal

2009-10-22 Thread Edelson, Justin
Gotta love how Nabble removes the context, forcing people to go to the site... Anyway, one-jar isn't a built-in descriptor: http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.ht ml There is one here: http://binkley.blogspot.com/2006/12/making-one-jar-with-maven.html But I have

Re: Maven assembly and onejar goal

2009-10-22 Thread Laurent Pellegrino
Nobody can help me ? -- View this message in context: http://www.nabble.com/Maven-assembly-and-onejar-goal-tp25994225p26011595.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Loading hbm files under default hierarchy from test hierarchy

2009-10-22 Thread Valentin Jacquemin
Hi all, I am building a project architecture and facing an issue with classloading. Here is my situation: I have a dbunit test which is testing my business layer which uses hibernate. I have 2 hibernate.cfg.xml files, one for the application and one for tests which basically are the same except th

Re: Test fails with Maven works with ant.

2009-10-22 Thread Stephen Coy
You might try comparing the classpath order of your ant build to the maven build. Also, does the ant build use the same jars from your local repo? Or are they are different set that you have downloaded from elsewhere? On 23/10/2009, at 12:28 AM, Roel Veldhuizen wrote: If i move the depen

RE: Why are repositories usually separated into releases and snapshots?

2009-10-22 Thread Martin Gainty
a snapshot usually has no guarantee of passing any sort of testits a way for a programmer/developer to prove that the developer assigned has done *something*..but the snapshot carries no guarantee has passed completely thru the SDLC validation lifecycle a release carries much more weight..b

Unit tests instrumented by cobertura are (very) slow

2009-10-22 Thread Julien HENRY
Hi, I have a project with a few CPU intensive tests (mainly computing algorithms). Running mvn clean test takes about 1min30 Running mvn clean cobertura:cobertura takes about 25min!!! Running mvn clean emma:emma takes about 2min Does anybody know what can be the reason why JUnit tests are taking

RE: maven 2.2.1: is there an inherent pom?

2009-10-22 Thread Rebholz Paul
thanks a lot for your help, Nick, Martin and Anders. I'll check this out in detail and come back should I be stuck again. Cheers, Paul -Original Message- From: Nick Stolwijk [mailto:nick.stolw...@gmail.com] Sent: Donnerstag, 22. Oktober 2009 15:34 To: Maven Users List Subject: Re: mave

Re: maven 2.2.1: is there an inherent pom?

2009-10-22 Thread Nick Stolwijk
> 2.2.1 Using this config you ensure that your maven version is at least 2.2.1, so newer versions with newer plugin versions will still be allowed. If you really want to build only with 2.2.1 you are looking for [2.2.1]. Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS

RE: maven 2.2.1: is there an inherent pom?

2009-10-22 Thread Martin Gainty
Paul did you look at implementing requireMavenVersion rule? [...] org.apache.maven.plugins maven-enforcer-plugin enforce-versions enforce

Re: Test fails with Maven works with ant.

2009-10-22 Thread Roel Veldhuizen
If i move the dependency to the end of the list I get an other exception but it looks like the first one java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/internet/MimeMultipart So this could mean that axis-jaxrpc is not always pre

Re : Re : Updating properties defined in pom from command line

2009-10-22 Thread Julien HENRY
Bug submitted with 2 IT test cases (1st with value fixed in the pom and 2nd with a property specified on the command line). MVERSIONS-80 I didn't have looked at the plugin code yet and I would like to know if this is something that will be easily fixed. What is your opinion? Thanks, Julien

Re: Test fails with Maven works with ant.

2009-10-22 Thread Stephen Coy
From where are you getting this dependency? Your problem looks related to . Also, I believe that if you move this dependency to the end of the list, it will appear in the compile classpath last, and classes in it that appear earlier

Re: Compilation failure on Windows while SUCCESSFUL on Linux

2009-10-22 Thread Brian Fox
What's the compilation failure? On Thu, Oct 22, 2009 at 5:56 AM, Isaac wrote: > I get *the same warning* on both platform. > BASE64Coding.java:[58,23] sun.misc.BASE64Decoder is Sun proprietary API and > may be removed in a future release > > class file is generated on both plaform too. > > howeve

Re: Why are repositories usually separated into releases and snapshots?

2009-10-22 Thread Brian Fox
It's essentially because of what you wrote below. You may want to be very diligent about backing up your release repo, but not so rigorous for snapshots. Snapshots tend to take up a lot more disk than releases because there are many copies of it when you use timestamps. This requires cleanup and me

Re: Creating jar for RMI client

2009-10-22 Thread Anders Hammar
I believe someone did send you a link already!? The info is in the plugin docs: http://maven.apache.org/plugins/maven-jar-plugin/usage.html look for "How to create an additional attached jar artifact from the project" /Anders On Thu, Oct 22, 2009 at 13:45, Michael Remijan wrote: > No, it's not a

Re: maven 2.2.1: is there an inherent pom?

2009-10-22 Thread Nick Stolwijk
Yes, there is a superpom in Maven, which only changes between Maven versions. In there are all the plugins Maven binds by default to its various lifecycles and packagings. If you want to make sure you can control your build, create a company pom and use the enforcer to ensure the maven version and

Re: maven 2.2.1: is there an inherent pom?

2009-10-22 Thread Anders Hammar
Since Maven 2.0.9 (I believe) Maven comes with fixed version for some plugins. This is done through a pluginManagement section in the super POM. Thus, you can change these values by overriding them in your pom. However, this is by no means a complete set and only includes the common ones. You can h

Re: Creating jar for RMI client

2009-10-22 Thread Michael Remijan
No, it's not an EJB and it's not an Java EE application.  It's a client-server application using RMI.  I somehow need to get 2 jar files out of the same project. JAR#1 will have all the class files from the project. This is the RMI Server. JAR#2 will have just a subset of those from the JAR#1. 

maven 2.2.1: is there an inherent pom?

2009-10-22 Thread Rebholz Paul
hello maven users these days I was trying to figure out if maven 2.2.1 comes with a version-fixed set of plugins, i.e. if there is an inherent pom which fixes this. We are building our SW with maven and want to make sure that using maven 2.2.1 yields the same results right now as it would in the

Re: Re : Updating properties defined in pom from command line

2009-10-22 Thread Stephen Connolly
sounds like a bug... if you can produce an integration test and file a JIRA that would be great... I cannot look into this at the moment [swamped at work] 2009/10/22 Julien HENRY > Hi Stephen, > > Have you already tested the solution you propose? I tried and it is not > working so I was wonderin

Re : Updating properties defined in pom from command line

2009-10-22 Thread Julien HENRY
Hi Stephen, Have you already tested the solution you propose? I tried and it is not working so I was wondering if there is something wrong in my use or if it is a plugin bug. My test case: I have a property in my pom: 1.3 running mvn versions:update-properties the value is changed to 1.4 but w

Re: Updating properties defined in pom from command line

2009-10-22 Thread Stephen Connolly
you should be able to define a range to restrict updates to within a range... e.g. add a config section with a version restriction specified and have that defined by a property ... ... ... org.codehaus.mojo versions-maven-plugin 1.0

Updating properties defined in pom from command line

2009-10-22 Thread Julien HENRY
Hi, I'm working on a script that will automatically release many artifacts. For example I have 2 Maven projects (say A and B). B have a dependency on A. The dependency version is expressed using a property (say ${A.version}). In the SVN trunk, in B.pom, A.version=1-SNAPSHOT. A and B are independ

Compilation failure on Windows while SUCCESSFUL on Linux

2009-10-22 Thread Isaac
I get *the same warning* on both platform. BASE64Coding.java:[58,23] sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release class file is generated on both plaform too. however, on windows the maven shows a [INFO] [ERROR] BUILD FAILURE [INFO]

Why are repositories usually separated into releases and snapshots?

2009-10-22 Thread Costin Caraivan
Hello, I saw that most repositories are separated into releases and snapshots. And that most repository managers recommend using releases and snapshots. Now, I know what each of them is: 1. release -> stable version, will be uploaded only once, when you want to change something you make a new re

Re: Creating jar for RMI client

2009-10-22 Thread Jörg Schaible
Michael Remijan wrote at Donnerstag, 22. Oktober 2009 04:08: > I'm working on a older app which is an RMI server and client.  The client > application needs interface classes and stub classes from the server and > previously we did this with ANT just pulling out the classes we needed. I > can't fi