Re: Maven2 jsf-web project on Eclipse

2009-09-17 Thread Barrie Treloar
On Thu, Sep 17, 2009 at 11:43 PM, MavenZede wrote: > > I have been trying to run a maven2 jsf project on Eclipse Galileo, but I did > not unfortunately. I tried a lot of ways, read thousands of web pages. My > first problem is that I cannot import my maven2 web project into Eclipse. I > know it sh

Re: How to identify the Jdk version ???

2009-09-17 Thread Stephen Connolly
essentially you can even compile with java 1.6 and use the 1.3 runtime libraries and source 1.3 and target 1.3 and the resulting classes will be just as good as compiling with java 1.3 the real issue you have is ensuring that the class and method signatures that you have used in your code a

Re: How to identify the Jdk version ???

2009-09-17 Thread Stephen Connolly
animal-sniffer or a similar tool Sent from my [rhymes with tryPod] ;-) On 17 Sep 2009, at 23:06, raghu guru wrote: Thanks Again, Is there any properties available that shows compiled with 1.4, may be if its available i want to include into MANIFEST.MF or is there a way to just confirm it

Re: How to identify the Jdk version ???

2009-09-17 Thread raghu guru
Thanks Again, Is there any properties available that shows compiled with 1.4, may be if its available i want to include into MANIFEST.MF or is there a way to just confirm it On Thu, Sep 17, 2009 at 4:57 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > sorry, I missed your pom s

Re: How to identify the Jdk version ???

2009-09-17 Thread Stephen Connolly
sorry, I missed your pom snippet on this small screen your classes were compiled with java 1.4 your jar was packaged up by a java 1.5 jre Sent from my [rhymes with tryPod] ;-) On 17 Sep 2009, at 22:50, raghu guru wrote: thanks for replying is this means, that configuring compiler version /

Re: How to identify the Jdk version ???

2009-09-17 Thread raghu guru
thanks for replying is this means, that configuring compiler version / executable in compiler plugin will not have any effect on this?? i thought by classes are compiled with javac mentioned in executable tag.. On Thu, Sep 17, 2009 at 4:40 PM, Stephen Connolly < stephen.alan.conno...@gmail.com>

Re: How to identify the Jdk version ???

2009-09-17 Thread Stephen Connolly
your code was compiled with java 1.5 in compatibility mode for 1.4 providing you have only used classes and methods only from the 1.4 runtime libraries, everything will be fine you need to use another tool to ensure that you have not accidentally used some 1.5 methods (eg String.isEmpty())

How to identify the Jdk version ???

2009-09-17 Thread raghu guru
Hi All, I use Maven 2.2.1 and it runs on JDK 1.5 and above, but my source code is not 1.5 compatible yet, so i configured my compiler plugin as shown below. Everything works fine. but when i look into MANIFEST.MF of my jar file it shows Build-Jdk: 1.5.0_13. So how do i confirm that my code were co

Maven-war-plugin overlay overrides the current war project source.

2009-09-17 Thread Yang, Gang CTR USA
Hi, I posted earlier about maven-war-plugin ovelay adding dependent's artifacts to the ccurrent project's webapp. After some more experiments, I found that it's even worse. Overlay overrides the current project's source with the one from the dependent war, even though the document says the current

Re: It's works, but I don't understand why...

2009-09-17 Thread johoso
I thought I had solved it, but I didn't. The solution lay in moving the particular troublesome module higher up in the build order. I couldn't find any conflicts, but there must have been some. I did not use the specification of the version in a parent pom. Hope this helps someone. johoso wrote

Re: help getting maven jetty plugin and jmx to work

2009-09-17 Thread Mick Knutson
Sorry... I am trying to start jetty with the Maven jetty plugin to allow me to see the JMX MBeans in Jetty. Specifically trying to track down JNDI errors, and according to the way you start the standalone Jetty, you pass in the JVM args. We How can I do this with the Maven plugin as there are no d

Re: help getting maven jetty plugin and jmx to work

2009-09-17 Thread Stephen Connolly
I might be a tad thick, but I'm having trouble seeing what your questionhas to do with maven. have you tried the jetty lists first? On Thursday, September 17, 2009, Mick Knutson wrote: > I have tried to understand: > http://wiki.eclipse.org/Jetty/Howto/Run_Jetty_with_JConsole > > But I do not hav

Re: Maven Central Compliance

2009-09-17 Thread Albert Kurucz
Thanks Brian, I am sure eventually the person who does this validations will get tired of this manual labor, and starts writing scripts instead (or a nexus plugin). If you know the whereabouts of this script, what is just being written, please send me a link to source file (I am hoping it will be

Re: Maven Central Compliance

2009-09-17 Thread Brian Fox
Hi Albert, We currently validate that signatures are present and valid for artifacts. Most of that process is covered in the documents here: http://nexus.sonatype.org/oss-repository-hosting.html#7 In the future we will hopefully be able to validate poms and other content more thoroughly, but for n

Re: Plugin snapshot problem with Apache nexus repository

2009-09-17 Thread Benson Margulies
This seems to have been a nexus bug. I made some changes in how my mirrors were configured, and this problem evaporated. On Thu, Sep 17, 2009 at 10:22 AM, Olivier Lamy wrote: > Hi, > The snapshot url you are using and the stack trace you have could be > very helpfull. > > 2009/9/17 Benson Ma

Maven SNAPSHOT dependencies are not treated as snapshots

2009-09-17 Thread
Hi all, I have a problem that maven does not appear to be treating dependencies that are specified as snapshots (i.e. Have a version that ends with ³-SNAPSHOT²) as snapshots. Even when the snapshot does appear in a remote repository within my organisation, using a timestamp based filename, with

Re: Maven2 jsf-web project on Eclipse

2009-09-17 Thread Roland Asmann
For the web-part you probably need to configure the eclipse:eclipse goal with WTP-settings... Check the plugin-description on the exact settings. I've been using this plugin for almost 3 years now and i works like a charm... I have to admit though, I haven't used it in eclipse 3.5 or on TomCat,

help getting maven jetty plugin and jmx to work

2009-09-17 Thread Mick Knutson
I have tried to understand: http://wiki.eclipse.org/Jetty/Howto/Run_Jetty_with_JConsole But I do not have a jetty-jmx.xml that seems to work. I have tried this jetty-jmx.xml: http://blogs.exist.com/oching/2009/02/26/configuring-jsw-embedded-jetty-with-jmx/ But I get deployment errors with this c

AW: mvn dependency:tree ends up in a nullpointer

2009-09-17 Thread Vach, Matthias
Upppsss, sorry, I mean: > This is building fine and works as expected but > Sadly the version definition [1.0,) leads to a null pointer when I generate > the dependency:tree (mvn dependency:tree) Regards Matthias -Ursprüngliche Nachricht- Von: Vach, Matthias [mailto:matthias.v...@sap.co

mvn dependency:tree ends up in a nullpointer

2009-09-17 Thread Vach, Matthias
Hi all, I need to define that any versions of javax.el:el-api are provided by my runtime system and must not be packed into my ear. To avoid excluding that artifact javax.el:el-api from each and every dependency where it is referenced, I defined it as explicit provided artefact: javax.el el

Re: Maven2 jsf-web project on Eclipse

2009-09-17 Thread Martin Schayna
install this plugin: http://m2eclipse.sonatype.org/update/ do some configuration, first of all set $M2_REPO classpath variable then open workspace and import maven2 projects by Import... -> Maven projects -> choose direcory with pom.xml -> Finish and wait pretty lng time for rebuilding Ec

Re: Plugin snapshot problem with Apache nexus repository

2009-09-17 Thread Olivier Lamy
Hi, The snapshot url you are using and the stack trace you have could be very helpfull. 2009/9/17 Benson Margulies : > I set out to use a snapshot of the maven-release-plugin. I added the > snapshot repo to the pluginRepositories, with snapshots set to true. > > Then I called out version 2.0-beta-

Plugin snapshot problem with Apache nexus repository

2009-09-17 Thread Benson Margulies
I set out to use a snapshot of the maven-release-plugin. I added the snapshot repo to the pluginRepositories, with snapshots set to true. Then I called out version 2.0-beta-10-SNAPSHOT as my release. I got an error message from maven to the effect that it could not find the jar file. So I changed

Maven Central Compliance

2009-09-17 Thread Albert Kurucz
Hi, I have a project with builds with Maven. My goal is to see my project on Central. There is a nice guide at http://maven.apache.org/guides/mini/guide-central-repository-upload.html which tells me the requirements. Is there any Report plugin out there, which would check all the requirements fo

Maven2 jsf-web project on Eclipse

2009-09-17 Thread MavenZede
I have been trying to run a maven2 jsf project on Eclipse Galileo, but I did not unfortunately. I tried a lot of ways, read thousands of web pages. My first problem is that I cannot import my maven2 web project into Eclipse. I know it should be happen when I run this mvn eclipse:eclipse, however i

AW: Maven2 jsf-web project on Eclipse

2009-09-17 Thread Lewis, Eric
Have you tried m2eclipse? Best regards, Eric > -Ursprüngliche Nachricht- > Von: MavenZede [mailto:asiyeki...@gmail.com] > Gesendet: Donnerstag, 17. September 2009 16:11 > An: users@maven.apache.org > Betreff: Maven2 jsf-web project on Eclipse > > > I have been trying to run a maven2 j

Maven2 jsf-web project on Eclipse

2009-09-17 Thread MavenZede
I have been trying to run a maven2 jsf project on Eclipse Galileo, but I did not unfortunately. I tried a lot of ways, read thousands of web pages. My first problem is that I cannot import my maven2 web project into Eclipse. I know it should be happen when I run this mvn eclipse:eclipse, however i

Re: War packaged in ear. How to exclude shared jars

2009-09-17 Thread David Sharp
I just went through this a couple of weeks ago, and here's how we're currently doing it at work. The ear project includes the war project twice, once as a war, once as a POM. The war plugin is set to include only the struts-tiles.jar and struts-taglibs.jar in the WEB-INF/lib. At home, I've been

Maven2 jsf-web project on Eclipse

2009-09-17 Thread MavenZede
I have been trying to run a maven2 jsf project on Eclipse Galileo, but I did not unfortunately. I tried a lot of ways, read thousands of web pages. My first problem is that I cannot import my maven2 web project into Eclipse. I know it should be happen when I run this mvn eclipse:eclipse, however i

Re: Failing to Fetch Snapshots with Every Build - How to disable undesired Behaviour

2009-09-17 Thread Quintin Beukes
Just an update. I rebuilt OpenEJB and Geronimo, and it took away all those errors except the ones for openejb-core. It seems they didn't build that snapshot? Though that's not the point. I have, however, found the reason for this happening. It seems it is what I suspected, in that it tries to upd

Re: only one artifact per project

2009-09-17 Thread Anders Hammar
The basic idea with Maven is that one Maven project produces one artifact. An artifact could be a jar file, a war file, a zip file, or pretty much anything. There are possibilities to force Maven to produce more than one artifact though. Normally that's not the right road, but it's your choice. Thi

Re: Moving Repository

2009-09-17 Thread Quintin Beukes
Yes. That's what I wanted to confirm. Thanks. Q On Thu, Sep 17, 2009 at 11:53 AM, Juven Xu wrote: > your local repository is _~/.m2/repository/_, while the file > _~/.m2/settings.xml_ is user specific maven settings > > you will want to move the repository, while you won't want to move the > set

Re: Moving Repository

2009-09-17 Thread Juven Xu
your local repository is _~/.m2/repository/_, while the file _~/.m2/settings.xml_ is user specific maven settings you will want to move the repository, while you won't want to move the settings, and you can configure the settings to point at the new repository location or did I misunderstand you?

only one artifact per project

2009-09-17 Thread Sammaiah Nagapuri
Hi all, I am not getting what it means the following statement. Is it really disadvantage from maven. Can anybody explain me with ant? The restriction imposed by Maven is that only one artifact is generated per project (A project in Maven terminology is a folder with a project.xml file in it).

Re: Moving Repository

2009-09-17 Thread Quintin Beukes
It's ~/.m2/repository I want to move. So I'm asking if it's save to move the existing directory away, or does it have metadata somewhere that fixes it in place, meaning a new location would have to start from scratch (I'm referring to the possibility of having absolute paths perhaps?). I just want

Re: AW: How to specify a plugin version from the command line?

2009-09-17 Thread Nick Stolwijk
Or create a default pom in your home directory and call 'mvn -F ~/pom.xml' or put this in a script. Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Thu, Sep 17, 2009 at 10:53 AM, Stephen Connolly wrote: > you could just create a thro

Re: AW: How to specify a plugin version from the command line?

2009-09-17 Thread Stephen Connolly
you could just create a throwaway pom.xml in your working directory and that will be consulted 2009/9/17 Lewis, Eric : > Ok, but this doesn't work when I use install:install-file, because that POM > I'm using is not under my control. > So in this case I have to fully qualify the plugin including

AW: AW: How to specify a plugin version from the command line?

2009-09-17 Thread Lewis, Eric
Ok, but this doesn't work when I use install:install-file, because that POM I'm using is not under my control. So in this case I have to fully qualify the plugin including the version, right? Best regards, Eric > -Ursprüngliche Nachricht- > Von: Stephen Connolly [mailto:stephen.alan.con

Re: AW: How to specify a plugin version from the command line?

2009-09-17 Thread Stephen Connolly
plugin management of current pom or any of its parents 2009/9/17 Lewis, Eric : > Ok, that's no problem, but can I specify somewhere that Maven should at least > take version x for plugin y? > > Best regards, > Eric > >> -Ursprüngliche Nachricht- >> Von: Stephen Connolly [mailto:stephen.al

AW: AW: How to specify a plugin version from the command line?

2009-09-17 Thread Lewis, Eric
Ok, that's no problem, but can I specify somewhere that Maven should at least take version x for plugin y? Best regards, Eric > -Ursprüngliche Nachricht- > Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > Gesendet: Donnerstag, 17. September 2009 10:41 > An: Maven Users

Re: AW: How to specify a plugin version from the command line?

2009-09-17 Thread Stephen Connolly
version ranges are not supported for plugins 2009/9/17 Lewis, Eric : > Hmmm... > > This works: > mvn org.apache.maven.plugins:maven-help-plugin:2.1:describe -Dplugin=help > > This doesn't work: > mvn org.apache.maven.plugins:maven-help-plugin:[1.0,2.1):describe > -Dplugin=help > > Best regards, >

AW: AW: How to specify a plugin version from the command line?

2009-09-17 Thread Lewis, Eric
Hmmm... This works: mvn org.apache.maven.plugins:maven-help-plugin:2.1:describe -Dplugin=help This doesn't work: mvn org.apache.maven.plugins:maven-help-plugin:[1.0,2.1):describe -Dplugin=help Best regards, Eric > -Ursprüngliche Nachricht- > Von: Martin Gainty [mailto:mgai...@hotmail.co

RE: Porpuse of src/main/config

2009-09-17 Thread Jean-Louis MONTEIRO
Hi, Thanks for the answer. It's a bit more clear now. May be, it would be nice to update online documentation http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html I googled a lot to get such information without any success even if i found this question

Re: Moving Repository

2009-09-17 Thread Juven Xu
yep, you can edit your ~/.m2/settings.xml to point the local maven repo to any FS place. On Thu, Sep 17, 2009 at 3:31 PM, Quintin Beukes wrote: > Hey, > > I have a very large repository and would like to keep it (not start > over). Though, I would like to move it to a more "official" location >

Moving Repository

2009-09-17 Thread Quintin Beukes
Hey, I have a very large repository and would like to keep it (not start over). Though, I would like to move it to a more "official" location on my PC. I am planning to install a repository manager next week, but I still want my local repository in a better place. This is mostly so I can referenc