RE: Wanted: Recommendation for spring-mvc archetype

2011-10-10 Thread siegfried
Sorry if this appears twice. I forgot to use plain text formatting the first time Wow! When I use eclipse/maven plugin, I see a huge selection of archetypes. I tried one or two with no luck (would not compile -- wish I could remember which ones). Can someone recommend two good maven

Re: Managing Different Java Versions

2011-10-10 Thread Anders Hammar
What surprised me the most is people complaining about open source docs, but then very rarely supply any patches for improving them. As they surely do put time into figuring out how to use the software (and to write mail complaining), they would be the very best candidates for fixing the existing

Re: Expected behaviour when repository mirror not reachable

2011-10-10 Thread Martin Höller
Anyone? On Wednesday 05 October 2011 Martin Höller wrote: Hi! What is the expected behaviour if a configured repository mirror is not reachable? It seems maven 2.2.1 tries to contact to original repository server, which is absolutely not what I want! Here are some details and background

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Olivier Lamy
2011/10/9 Ole Ersoy ole.er...@gmail.com: Hi, I tried the following:      plugin        groupIdorg.codehaus.mojo/groupId        artifactIdtomcat-maven-plugin/artifactId        configuration          warSourceDirectory${basedir}/src/main/webapp/warSourceDirectory        /configuration    

RE: Incorrect location for downloading plugin pom

2011-10-10 Thread Adrian Shum (HK/IT-AD)
Any hints from anyone? Thanks -- Regards, Adrian Shum From: Adrian Shum (HK/IT-AD) Sent: Thursday, October 06, 2011 4:23 PM To: 'Maven Users List' Subject: Incorrect location for downloading plugin pom Dear all, I have recently faced a strange

Re: Maven project can't access class file.

2011-10-10 Thread Christophe
Hi, I have the same issue. After renaming my projects, maven cannot resolve dependencies anymore. I check the projects group ids, artifacts ids, and versions. All looks fine but I have a similar message than the one you described. I have the following error : [ERROR]

Re: Maven project can't access class file.

2011-10-10 Thread Wayne Fay
[ERROR] \workspaces\workspace-pm\project\src\main\java\com\company\portal\emc\WBEMConstants.java:[9,0] cannot access GenericClient [ERROR] file GenericClient.class not found [ERROR] found   : com.company.portal.common.model.Discovery [ERROR] required: Discovery These errors are coming out

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
On 2011-10-09 3:14 PM, Benson Margulies wrote: If you have to support 1.5, the easiest thing to do is eschew the use of 1.6 features. Just set the compiler plugin options for source and target of 1.5. Yes, I have already done that part. After you do that, you might still want the sniffer,

Re: Incorrect location for downloading plugin pom

2011-10-10 Thread Wayne Fay
Any hints from anyone? If you can boil this down to a very simple sample project that you could share externally which demonstrates the behavior that you are describing, then someone could perhaps take a look at it in a debugger etc. Wayne

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
That would be greatly appreciated... Cheers, Eric On 2011-10-09 4:35 PM, Stephen Connolly wrote: in fairness i think i wrote most of the docs. Kohsuke's original docs were less than minimal. most of the docs were written while on public transport on a shitty little netbook. i don't currently

Re: Managing Different Java Versions

2011-10-10 Thread Wayne Fay
My usual modus operandi is to go looking at a live example of the use of something if I am unclear as to how to use it. This can be an interesting easter-egg hunt. And I am not even sure where to start the hunt. Go to Github and search for the plugin name...

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
At the moment I do not know how to create and submit such patches. If I did I might be so inclined. At the moment, however, I am trying to complete a very time critical project and just need to get things working. I am hope that in 2012, when I am not working 60 hour weeks, I will be able to

Re: Managing Different Java Versions

2011-10-10 Thread Wayne Fay
The problem is I cannot figure out the intent of how the sniffer is supposed to work - in particular if it will even help with my particular problem. As far as I can tell the Hibernate folks have not set up the necessary signatures for the sniffer to tell me what I need to know. You should

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
OK, I still clearly do not understand how sniffer is supposed to work, and it does not look like am going to any time soon, even after all these explanations. As it is, I am making better progress now just by specifying the Java 5 compiler in my maven-compiler-plugin. It complains right away

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Ole Ersoy
I'm running the tomcat plugin configured as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId configuration warSourceDirectory${basedir}/src/main/webapp/warSourceDirectory /configuration /plugin If I

Re: Managing Different Java Versions

2011-10-10 Thread Stephen Connolly
On 10 October 2011 21:15, Eric Kolotyluk eric.koloty...@gmail.com wrote: OK, I still clearly do not understand how sniffer is supposed to work, and it does not look like am going to any time soon, even after all these explanations. As it is, I am making better progress now just by specifying

Re: Managing Different Java Versions

2011-10-10 Thread Ansgar Konermann
Am 10.10.2011 22:15, schrieb Eric Kolotyluk: I am not really sure why no-one recommended this to me in the first place as it effective and simple to understand. Maybe you led the crowd into the wrong direction by claiming: I am almost complete reworking things to run on a Java 5 run-time, and

Re: Managing Different Java Versions

2011-10-10 Thread Wayne Fay
OK, I still clearly do not understand how sniffer is supposed to work, and it does not look like am going to any time soon, even after all these explanations. A signature is like: char java.lang.String.charAt(int) Animal sniffer compares the Java code you are writing against the published

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
On 2011-10-10 1:28 PM, Stephen Connolly wrote: On 10 October 2011 21:15, Eric Kolotylukeric.koloty...@gmail.com wrote: OK, I still clearly do not understand how sniffer is supposed to work, and it does not look like am going to any time soon, even after all these explanations. As it is, I

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
Fair enough. At the time I actually thought I was compiling against 1.5, but in fact I still had not finished setting up Maven properly to do that, and it was still compiling with 1.6. - Eric On 2011-10-10 1:30 PM, Ansgar Konermann wrote: Am 10.10.2011 22:15, schrieb Eric Kolotyluk: I am

Re: Managing Different Java Versions

2011-10-10 Thread Stephen Connolly
When you are on a Mac you cannot compile with a 1.5 JDK... Have a look at http://mojo.codehaus.org/signatures/java15/ On 10 October 2011 21:49, Eric Kolotyluk eric.koloty...@gmail.com wrote: Fair enough. At the time I actually thought I was compiling against 1.5, but in fact I still had not

RE: Managing Different Java Versions

2011-10-10 Thread Robert Scholte
Ok, just two real world examples: http://svn.codehaus.org/mojo/tags/exec-maven-plugin-1.2.1/pom.xml http://svn.codehaus.org/mojo/tags/sql-maven-plugin-1.5/pom.xml These both verify against the jdk1.4 signatues, but the idea should be clear enough. You'll see that the examples kind of

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
On 2011-10-10 1:41 PM, Wayne Fay wrote: OK, I still clearly do not understand how sniffer is supposed to work, and it does not look like am going to any time soon, even after all these explanations. A signature is like: char java.lang.String.charAt(int) Animal sniffer compares the Java code

Re: Managing Different Java Versions

2011-10-10 Thread Stephen Connolly
On 10 October 2011 22:02, Eric Kolotyluk eric.koloty...@gmail.com wrote: On 2011-10-10 1:41 PM, Wayne Fay wrote: OK, I still clearly do not understand how sniffer is supposed to work, and it does not look like am going to any time soon, even after all these explanations. A signature is

Re: Managing Different Java Versions

2011-10-10 Thread Eric Kolotyluk
OK, that page is really clear and helps a lot. Thanks. Unfortunately I do not see any easy way to navigate there from the sniffer site. That would be a very valuable link to add under the examples section. Cheers, Eric On 2011-10-10 1:54 PM, Stephen Connolly wrote: When you are on a Mac

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Olivier Lamy
2011/10/10 Ole Ersoy ole.er...@gmail.com: I'm running the tomcat plugin configured as follows:      plugin        groupIdorg.codehaus.mojo/groupId        artifactIdtomcat-maven-plugin/artifactId        configuration  warSourceDirectory${basedir}/src/main/webapp/warSourceDirectory        

UTF-8 Test Mystery

2011-10-10 Thread Eric Kolotyluk
I am having trouble understanding a mystery. I have code that checks my .properties file to make sure that it has not been corrupted after being edited by a non UTF-8 editor. In particular I have a property called lambda = λ and I check to see that it actually does resolve to the correct

Re: UTF-8 Test Mystery

2011-10-10 Thread Jeff MAURY
Where is your .properties file located and what type of encoding do you have in your POM for sources/resources ? Regards Jeff MAURY On Tue, Oct 11, 2011 at 12:04 AM, Eric Kolotyluk eric.koloty...@gmail.comwrote: I am having trouble understanding a mystery. I have code that checks my

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Ole Ersoy
Maybe if i explain what I'm trying to do, it will make more sense. I have a maven webapp project. I'm running it with: mvn tomcat:run When I run the webapp I would like to load resources from WEB-INF/resources/ When running a webapp in a standalone container WEB-INF is located in the

Re: UTF-8 Test Mystery

2011-10-10 Thread Eric Kolotyluk
My .properties file is located in the root of target/classes directory. You mean as in properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding project.build.resourceEncodingUTF-8/project.build.resourceEncoding /properties in my parent POM? Cheers, Eric On 2011-10-10 3:10

Re: UTF-8 Test Mystery

2011-10-10 Thread Jörg Schaible
Eric Kolotyluk wrote: I am having trouble understanding a mystery. I have code that checks my .properties file to make sure that it has not been corrupted after being edited by a non UTF-8 editor. In particular I have a property called lambda = λ and I check to see that it actually does

Re: UTF-8 Test Mystery

2011-10-10 Thread Kalle Korhonen
How are you reading in your properties files? By default, latin-1 is assumed. Configure your surefire JVM to read files as UTF-8 with: argLine-Xms256m -Xmx512m -XX:MaxPermSize=128m -ea -Dfile.encoding=UTF-8/argLine Kalle On Mon, Oct 10, 2011 at 3:04 PM, Eric Kolotyluk eric.koloty...@gmail.com

Re: UTF-8 Test Mystery

2011-10-10 Thread Eric Kolotyluk
On 2011-10-10 3:56 PM, Jörg Schaible wrote: Eric Kolotyluk wrote: I am having trouble understanding a mystery. I have code that checks my .properties file to make sure that it has not been corrupted after being edited by a non UTF-8 editor. In particular I have a property called lambda = λ

Re: UTF-8 Test Mystery

2011-10-10 Thread Eric Kolotyluk
Awesome Kalle - thanks. Where should I send the case of beer? Cheers, Eric On 2011-10-10 4:00 PM, Kalle Korhonen wrote: How are you reading in your properties files? By default, latin-1 is assumed. Configure your surefire JVM to read files as UTF-8 with: argLine-Xms256m -Xmx512m

Recommended practices for managing/distributing dependencies for maven built jars outside the build lifecycle

2011-10-10 Thread Arun Ramakrishnan
For lack of better articulation in the subject line, let me explain a bit more in detail as to what I am trying to figure out. In our organization we find ourselves building projects and distributing them to a heterogeneous set of machines remotely for execution ( such as to dynamicly generated

Re: UTF-8 Test Mystery

2011-10-10 Thread Kalle Korhonen
A whole case? I *love* inflation. Kalle 2011/10/10 Eric Kolotyluk eric.koloty...@gmail.com: Awesome Kalle - thanks. Where should I send the case of beer? Cheers, Eric On 2011-10-10 4:00 PM, Kalle Korhonen wrote: How are you reading in your properties files? By default, latin-1 is

Re: UTF-8 Test Mystery

2011-10-10 Thread Eric Kolotyluk
Actually - that helped - but it's not a stable solution. For some reason the tests pass when run from m2e, but fail when run from the command line. I'm still trying to figure out what the difference is. Cheers, Eric On 2011-10-10 4:41 PM, Kalle Korhonen wrote: A whole case? I *love*

Re: Recommended practices for managing/distributing dependencies for maven built jars outside the build lifecycle

2011-10-10 Thread Arun Ramakrishnan
Simply put, given a jar file that has an effective pom in its META-INF, is there a way to tell maven to download all the necessary dependencies ? On Mon, Oct 10, 2011 at 4:22 PM, Arun Ramakrishnan sinchronized.a...@gmail.com wrote: For lack of better articulation in the subject line, let me

Re: UTF-8 Test Mystery

2011-10-10 Thread Kalle Korhonen
Different forkMode perhaps? http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#forkMode, e.g: forkModeonce/forkMode Just send the whole keg while you are at it :) Kalle 2011/10/10 Eric Kolotyluk eric.koloty...@gmail.com: Actually - that helped - but it's not a stable

Re: UTF-8 Test Mystery

2011-10-10 Thread Eric Kolotyluk
forkModeonce/forkMode Doesn't help. I have some new insight on the problem. I changed my code to if (lambda.length() == 1) { char λ = lambda.charAt(0); if (λ != 'λ') //if (!lambda.equals(λ)) {

Re: UTF-8 Test Mystery

2011-10-10 Thread Benson Margulies
Eric, A couple of points: 1: Javac has an option to control the input encoding of java source files. There's a corresponding configuration option for the maven-compiler-plugin. 2: Adding -Dfile.encoding=utf-8 to MAVEN_OPTS will cause maven, and any other piece of java it launches, to use UTF-8

Re: Incorrect location for downloading plugin pom

2011-10-10 Thread Benson Margulies
This has certain superficial resemblances to the following shoot-self-in-foot process. Step 1: Define a nexus instance. Define a group of public repositories in it. Step 2: Using settings.xml, make a mirror-of * that points to this repository. Step 3: Add an explicit repository/ element to a pom

New to Maven

2011-10-10 Thread niyasmansoor
Hi , I am new to Maven . I have an existing eclipse project which is dependent on a lot of libraries . I would like to use maven to download this for me [ using local repository ]. i would like to know how to write a pom.xml for that. Any working example will be of great help.

Re: New to Maven

2011-10-10 Thread Barrie Treloar
On Tue, Oct 11, 2011 at 2:51 PM, niyasmansoor niyas.mans...@gmail.com wrote:  Hi ,  I am new to Maven .  I have an existing eclipse project which is dependent on a lot of libraries .  I would like to use maven to download this for me [ using local repository ].  i would like to know

Re: New to Maven

2011-10-10 Thread niyasmansoor
Hi Barrie, Many thanks for your prompt response . I have a project handover with source code . This eclipse project is having dependency and is using maven repository concept . I do not have much time to go through extensively , that was the reason why i asked for a quick

Re: New to Maven

2011-10-10 Thread Brian Topping
Niyas, There's really no effective way to use email for a precise solution to your problem. The only way to solve a problem is to know what the problem is in the first place, and if it had already been solved, you could just copy it. But the fact is, the problems are never the same (so there