Re: Problem while building using Maven

2009-04-20 Thread Ian Petzer
There is a very quick tutorial on the Maven site which should get you up and running with a very basic pom file and standardised directory structure. You can find it here: http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html You don't actually need a settings.xml file to run

Re: Problem while building using Maven

2009-04-20 Thread MS21
This i have tried and its working. What i am trying to do is i have created a repository in NEXUS http://localhost:8080/nexus-webapp-1.3.2/content/repositories/IBRepos/ I have added couple of aritifacts in this (jar files). and using the classes from this artifact I modified the POM and

resources:copy-resources

2009-04-20 Thread Sean Owen
Hi all, I've spent many hours trying to figure this out, and am writing the list as a last resort. I have a copy-resources goal configured to move some stuff from an external directory during a build. It works fine when I do a mvn install or mvn jetty:run. The trouble comes when I try to run

maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
Hi We use the command line to pass on system properties to the java virtual machine when running our Hudson builds on a Linux box. It used to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has stopped working altogether. The system properties just never make it to the java virtual

Re: packagingejb/packaging and packagingbundle/packaging (OSGi)

2009-04-20 Thread Jean-Claude
When the package is set to packagingejb/packaging two artifacts are generated . an EJB jar (e.g. core-bo-1.0.0-SNAPSHOT.jar) . a client jar (e.g. core-bo-1.0.0-SNAPSHOT-client.jar) according to http://maven.apache.org/plugins/maven-ejb-plugin/index.html maven-ejb-plugin When I call mvn

Maven does not update snapshot dependency to latest version

2009-04-20 Thread Walter B. Rasmann
Maven doesn't update snapshot dependencies to the latest version when run as: mvn clean mvn -U assemby:assembly The -with-dependencies jar contains the old versions of the class files and the local repository looks like this: (~/.m2/repository/com/xxx/dependency1/dependency1/1.0-SNAPSHOT)

[m1] JAXB SchemaGen and JDK1.6 - isSubtype 15

2009-04-20 Thread Benoitx
Dear *, I know that jaxb is a subject that pops up on aregular basis but I do not seem to find a related message all the way back to 2007... We're still using Maven 1 (ok...) and intend to move from JDK 1.5 to 1.6. Our task to generate a schema from classes not longer works with JDK1.6 and

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Stephen Connolly
Have you locked down the version of surefire you are using in your pom? if you have not locked it down, then you will be picking up a newer version of surefire with 2.1.0. AFAIK, a newer version of surefire has issues passing system properties to the forked process. in any case you should

Re: Problem while building using Maven

2009-04-20 Thread Ian Petzer
Hi, Yes indeed. If your Nexus instance is correctly configured and you are pointing Maven at it correctly then the artifacts corresponding to the dependencies listed in your pom should be downloaded and put in your local repository. 1) Can you confirm whether you have added a dependency to your

Re: Problem while building using Maven

2009-04-20 Thread MS21
I am attaching the settings.xml and POM.xml. These are std jar's which are available in maven2 repos. i just added some common-code, avalon framework into my repository for testing purpose. Do i still need to declare dependencies.. I ran mvn -U command and it shows build successfull. It behaves

Re: resources:copy-resources

2009-04-20 Thread jieryn
Hi Sean, On Fri, Apr 17, 2009 at 7:08 PM, Sean Owen sean.o...@positiveenergyusa.com wrote: ?xml version=1.0 encoding=UTF-8? project xmlns=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

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
yes you are right. It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine. will lock down the version is the pom. thanks for your help 2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com: Have you locked down the version of surefire you are using in your pom? if you have

RE: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Martin Gainty
i was told the passing hierarchy is System(OS) passes to JVM passes to Maven Maven cannot populate properties up to parent JVM (so other JVM threads can use them) JVM cannot populate properties to System-OS space (so other system processes can use them) please confirm, Martin

Dependency on local web project war (netbeans)

2009-04-20 Thread pieter claassen
I have a netbeans project that requires to access sourcecode and compiled code from a web project. If I set the dependency on the war file, it just doesn't work (it works on a jar file). How do I access code produced by a war project in netbeans? Regards, Pieter

duplicate snapshots copied by maven-dependency-plugin:copy-dependency

2009-04-20 Thread Reto Bachmann-Gmür
Hello I'm copying dependencies with the following directive: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.1/version executions execution goals

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Brian Fox
Please file a jira for this and use 2.1.0 as the affects version so we can get it fixed in 2.1.1 edward eric pedersson wrote: Hi We use the command line to pass on system properties to the java virtual machine when running our Hudson builds on a Linux box. It used to work quite well in 2.0.9

Re: duplicate snapshots copied by maven-dependency-plugin:copy-dependency

2009-04-20 Thread Brian Fox
This could only happen in two passes of the plugin without a clean in between. The two files are indeed the same version, but it isn't checking the target folder exhaustively to see if there's a file there with another timestamped version...the overwrite only gets triggered if the exact same

Re: duplicate snapshots copied by maven-dependency-plugin:copy-dependency

2009-04-20 Thread Reto Bachmann-Gmür
no this is after a mvn clean package cheers, reto Brian Fox said the following on 04/20/2009 03:27 PM: This could only happen in two passes of the plugin without a clean in between. The two files are indeed the same version, but it isn't checking the target folder exhaustively to see if

Re: Problem while building using Maven

2009-04-20 Thread Ian Petzer
What do you change in the code to make it stop working? Could you include a full transcript of what Maven logs when you encounter this error? Also, do you need to use that proxy you have defined in the settings.xml? One more thing, in your pom.xml you have defined your repo, but you have defined

Re: Problem while building using Maven

2009-04-20 Thread MS21
Ian i have tried to declare a dependency in POM.xml for a single artifact which is in the nexus repository.. but when we run mvn package it shows this error ) mockobjects:com.mockobjects:jar:0.09 Try downloading the file manually from the project website. Then, install it using the

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
Will do once I work out how to submit issues in your Jira 2009/4/20 Brian Fox bri...@infinity.nu: Please file a jira for this and use 2.1.0 as the affects version so we can get it fixed in 2.1.1 edward eric pedersson wrote: Hi We use the command line to pass on system properties to the

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread John Casey
Another couple things to consider: 1. in Surefire, you should probably use the systemProperties to pass on system properties explicitly. Just a suggestion. 2. For actual system properties, it might be wiser to set them in MAVEN_OPTS instead of the mvn -D option. This is because Maven has

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
I need to pass the options on the command line so using systemProperties might not work for me unless I misunderstand what you mean. How do you pass the -DpropertyName using the MAVEN_OPTS ? I m pretty sure that was the first thing I tried before adding them as system properties properly as

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread John Casey
Well, if you want, go ahead and file a JIRA for it in http://jira.codehaus.org/browse/MNG and we can at least take a look to make sure there isn't a better way. FWIW, if you put the systemProperties entry in place with a value of '${system.property}', then use -Dsystem.property=foo in the mvn

Re: Dependency on local web project war (netbeans)

2009-04-20 Thread pieter claassen
ok, I have narrowed the problem down as probably a maven issue. I have parent.pom and two modules client and server. Client is a war and server is a jar. server needs to get hold of client's source because db4o needs the source for both the client and server (to configure it for each java.class

WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
Hello, I have a war project for some web services that is having dependency issues. I am getting multiple versions of my XML apis and XML parsers in the resulting war which results in my having to manually remove the older versions to avoid server-side SAAJ exceptions when attempting to

Problem in accessing Custom Artifacts added in Nexus repository

2009-04-20 Thread MS21
Hi, I have tried to declare a dependency in POM.xml for a single artifact which is in the nexus repository.. but when we run mvn package it shows this error ) mockobjects:com.mockobjects:jar:0.09 Try downloading the file manually from the project website. Then, install it using the

Re: Dependency on local web project war (netbeans)

2009-04-20 Thread Siegfried Goeschl
Hi Pieter, you would like to use transitive dependencies using a WAR - this did not work in the past and I doubt that it works now. Having said that I would help if you have shared project between client and server. And do really need the source or only the class files?! If yes that approach

RE: WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
Hello again, I've been doing more digging and below is a copy of the mvn dependency:tree output. With the exception of the jdom 1.0 and 1.1 (1.1 has been moved to a new groupId) there don't appear to be any of the duplicate dependencies that are being added into my WAR. So the question

Re: WAR Dependency Mediation Problem

2009-04-20 Thread Wayne Fay
So the question is:  How are these duplicates ending up in my WAR file if they aren't showing up in the dependency tree?  I'm lost... Try again with mvn clean package. It is possibly/likely that the extra jars are from earlier builds and /target has not been cleaned up. Wayne

Maven module only for site?

2009-04-20 Thread solo1970
Hello everyone, Here is what I need to do: inlcude a moduleC/module in my aggregator (multi-module) POM that would ONLY BE executed when doing a mvn site command, not when I do a mvn compile, package or deploy... Any ideas on how to do this??? Sonia -- View this message in context:

Re: Dependency on local web project war (netbeans)

2009-04-20 Thread pieter claassen
I am trying to move to netbeans for dev so it is a good question whether I need the source or just the compiled code. Not finding the symbols I assume is a failure to access the .class files? Or does netbeans need access to the source? How do I share the project between the client and the server?

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread John Casey
Should just be a matter of registering a new username for yourself, then clicking the Create Issue link in the top menu at http://jira.codehaus.org/browse/MNG Let me know if that doesn't work for you. -john edward eric pedersson wrote: Will do once I work out how to submit issues in your

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Frédéric Camblor
John, I am in the same case of edward and want to enable/disable test families while executing my maven builds. For instance, I'll want to execute every data access tests once per day -and not after each commits because it takes time !- For some other tests, I'd like to execute only selenium

Simple maven question

2009-04-20 Thread Tony Giaccone
I've been using maven for a while now, but have finally had to go deeper then just the basics of a pom file. As a result I now am curious about the internal workings of maven. I understand that there are phases to a build, and that each phase is composed of goals. I also understand that plug-ins

mvn site : per version folder

2009-04-20 Thread nicolas de loof
Hi, When I deploy my project (gwt-maven-plugin) site it is set as site root, with no version number subfolder. I'd like to avoid users to complain about doc not matching current release. How can I for the site plugin to deploy under /artifact/version/ (I inherit mojo-parent:18) Cheers, Nicolas

RE: WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
You're a life saver...that solved the issues. Thanks! Dave -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Monday, April 20, 2009 12:28 PM To: Maven Users List Subject: Re: WAR Dependency Mediation Problem So the question is:  How are these duplicates ending up in

Re: Simple maven question

2009-04-20 Thread Stephen Connolly
AFAIK the order is, for each phase: 1. lifecycle added goals, in the order they are defined in the lifecycle 2. project added goals in plugin order from the pom. where it gets confusing is profiles and inherited plugins, and where they go in the sequence -Stephen 2009/4/20 Tony Giaccone

A style question about testing

2009-04-20 Thread Grant Rettke
Hi folks, I've got a question for you about managing unit testing. The situation that we are in is that right now, we have a single module 'Products' that has a lot of classes in it. We know that eventually we will refactor it into multiple modules (one for each Product), but at this moment we

Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Frederic Camblor
John, I am in the same case of edward and want to enable/disable test families while executing my maven builds. For instance, I'll want to execute every data access tests once per day -and not after each commits because it takes time !- For some other tests, I'd like to execute only selenium

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-04-20 Thread Arnaud HERITIER
Ping ??Nobody wants to test it ? Without your help, will never be able to produce a plugin which replies to your needs. Cheers, Arnaud On Thu, Apr 16, 2009 at 10:42 AM, Arnaud HERITIER aherit...@gmail.comwrote: Hi Community, The recent release 2.6 of the maven-eclipse-plugin created many

Re: Is maven so inflexible?

2009-04-20 Thread João Pereira
2009/4/21 João Pereira joaomiguel.pere...@gmail.com Hello, Fisrt I used to love maven, at this moment I'm not sure. I have a folder with a bunch of jars+wsdls+properties that need to be in the class path for my project compile in maven. How I do that without having to deploy each jar to the

RE: Is maven so inflexible?

2009-04-20 Thread Bryan Loofbourrow
Fisrt I used to love maven, at this moment I'm not sure. I have a folder with a bunch of jars+wsdls+properties that need to be in the class path for my project compile in maven. How I do that without having to deploy each jar to the local repository or a remote repository? IMO, you don't.

Re: Is maven so inflexible?

2009-04-20 Thread David C. Hicks
Are the jars part of the project, or are they artifacts that you depend on? That seems to be a large part of what you may need to change. If the jars are artifacts that can be found in a standard repository, just mark them up as dependencies. If they are generated by your project, they

Re: Is maven so inflexible?

2009-04-20 Thread Dan Tran
can you use jaxws-maven-plugin to manage your wsdl files? -D On Mon, Apr 20, 2009 at 6:36 PM, David C. Hicks dhi...@i-hicks.org wrote: Are the jars part of the project, or are they artifacts that you depend on?  That seems to be a large part of what you may need to change.  If the jars are

Is maven so inflexible?

2009-04-20 Thread João Pereira
Hello, Fisrt I used to love maven, at this moment I'm not sure. I have a folder with a bunch of jars+wsdls+properties that need to be in the class path for my project compile in maven. How I do that without having to deploy each jar to the local repository or a remote repository? How do I deal