how to redirect the system.out into test report in running maven-surefire-plugin

2008-11-12 Thread sean.chen(陈思淼)
I use use System.out.println to output infomation to the console, when I run mvn test, I know the surefire can include all the system.out information,just like this: system-out![CDATA[200 Test works! ]CDATA]/system-out But I don't know exactly how it woks. can anybody who is familiar

antlr: how to?

2008-11-12 Thread Vadim Chekan
Hi all, I'm trying to add antlr grammar to a project that uses maven. I've found antlr-maven-plugin: http://mojo.codehaus.org/antlr3-maven-plugin/index.html and I'm able to trigger code generation from maven now but this plugin uses antlr-3.0.1 where antlr-3.1.1 already exist. My java code

Including a dependent war as is

2008-11-12 Thread mavenart1
When we package a release, the final distribution includes a dependent war file. Say HelloWorld.zip has to include \adm\foobar.war. Helloworld.zip \scripts\* \tools\* \jar\*.jar \classes\* \adm\foobar.war This war is uploaded in artifactory. How to get this package (as listed above) with this

Re: [URGENT] How make maintenance release from release branch using GIT SCM

2008-11-12 Thread Imran M Yousuf
On Wed, Nov 12, 2008 at 12:39 PM, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi, I have a project (http://repo.or.cz/w/smart-dao.git) where I have 2 working branches (master and release-0.3). Now I want to make a maintenance release (release-0.3) so I am doing it from the appropriate branch.

Re: Filtering TestResources

2008-11-12 Thread nodje
Hi, it seemed to work at first, but now we get the main/resources filtered by the test/filters. We have to revert on naming properties differently :( -nodje Olivier Lamy wrote: Hi, As we have an it test [1] which test this and works, it should :-) -- Olivier [1]

${project.build.testResources.*} property accessor

2008-11-12 Thread michalb_cz
Lo everyone, I need to refer to src/test/resources directory in my pom.xml in some plugin configuration settings. So I was trying somePlugin something.../something directory${project.build.testResources.resources.0.directory}${file.separator}someFile.xml /directory /somePlugin i am

Is there an actual version of the maven-embedder for 2.0.x?

2008-11-12 Thread Marco Huber
Hi all, I am looking for an actual version of the maven-embedder for the 2.0.x tree. In the central repository there is only a maven-embedder for 2.0.4. But this version seems to be a big buggy. After searching the internet the error occures are the same that occured in maven 2.0.4 version.

Maven includes old jar versions

2008-11-12 Thread Troy Bull
Greetings I am brand new to maven and I have just noticed an issue. I have a jar file that I maintain in my local maven repository (on my workstation). It has had several versions, 2.0.2, 2.0.3 2.0.5 etc. I have a different project that is built with maven that uses this jar file. If I change

Re: Location of changelog, installer files?

2008-11-12 Thread Trevor Harmon
On Nov 10, 2008, at 6:28 PM, Chris wrote: Where in the standard maven directory layout should I put the changelog for my app (changelog.txt)? I'm not sure about a standard, but we put internal documentation in src/main/doc/development. Where should I put files that are used only by the

Re: Maven includes old jar versions

2008-11-12 Thread Martin Höller
On Wednesday 12 November 2008 Troy Bull wrote: I have a jar file that I maintain in my local maven repository (on my workstation). It has had several versions, 2.0.2, 2.0.3 2.0.5 etc. I have a different project that is built with maven that uses this jar file. If I change the jar file I

Re: Use eclipse to compile

2008-11-12 Thread Rice Yeh
I am sure that M2_REPO is well defined and get substituted to my repository path. Regards, Rice On Tue, Nov 11, 2008 at 8:00 PM, Hoover, William [EMAIL PROTECTED]wrote: Have you tried using it as the example shown? executable

Using commons-net ftp jar as a dependency

2008-11-12 Thread Steven Jardine
I have a project that uses the commons-net package. Well it actually uses only the commons-net-2.0-ftp.jar file found at http://repo1.maven.org/maven2/commons-net/commons-net/2.0/commons-net-2.0-ftp.jar. It there a way for me to have my project depend on only this jar file not the whole

Exclude some jar from the classpath generated by eclipse:eclipse

2008-11-12 Thread Rice Yeh
Hi, How do I configure pom to exclude some jar from the classpath generated by eclipse:eclipse. I have checked the documents of eclipse:eclipse. There is a parameter excludes but there is no example. Regards, Rice

RE: Dependency report fails

2008-11-12 Thread EJ Ciramella
If I turn off dependencyDetailsEnabled in the reporting section: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-project-info-reports-plugin/artifactId version2.1/version configuration

Re: Using commons-net ftp jar as a dependency

2008-11-12 Thread bruno . borges
What is the problem of depending on that artifact having the effect of depending on other jars? The commons-net-2.0-ftp.jar is created not because of some maven convention. Actually, the Commons-Net creates that jar just to separate classes. The right way of doing that would be using

Re: Including a dependent war as is

2008-11-12 Thread Edelson, Justin
Assuming you're using the assembly plugin to build this zip file, you need a second dependencySet that only includes the war. HTH, Justin - Original Message - From: mavenart1 [EMAIL PROTECTED] To: users@maven.apache.org users@maven.apache.org Sent: Wed Nov 12 04:03:59 2008 Subject:

Re: Dependency report fails

2008-11-12 Thread Stefan Seidel
I added a comment to the bug showing how to disable the dependencies report. HTH, Stefan On Wed, 12 Nov 2008 07:14:46 -0500 EJ Ciramella [EMAIL PROTECTED] wrote: Can the dependency report be configured to skip a series of depenencies? If it can, I don't see a way... -Original

Executions and configs defined in parent's pluginManagement inherited in childs

2008-11-12 Thread Carlos Alonso
Hi all. I have a multimodule project that owns a common parent for all sub modules. This common parent is just a pom packaging pom which I want to specify some executions and configurations that his children will inherit. I enclose now some a code snippet that I have tried without any success

RE: Dependency report fails

2008-11-12 Thread EJ Ciramella
Yeah, the dependencies report is one of the most important things from site generation. We can't take the, shut off the stuff that doesn't work approach. See my later post - I think this is an issue surrounding the version of bcel used -Original Message- From: Stefan Seidel

Maven and various test strategies

2008-11-12 Thread Bracewell, Robert
Looking for insight's into how other users are managing unit and integration tests in current 2.0.x. At the moment the projects I have store unit tests under **/unit/** and integration tests under **/it/** I have compiler and surefire plugin configurations to exclude it tests and then have a

Crash when running site:site

2008-11-12 Thread stug23
I have a Maven project that's not very large or complex, however when I run mvn site a fatal out of memory error occurs. I am enclosing the last portion of the console output as an attached file. When the job reaches the line '[INFO] Generating Dependencies report.' it runs for a long time at

Re: Maven compilation error

2008-11-12 Thread neptune_pluto
Thanks man Mathus :) - Original Message - From: Baptiste MATHUS [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Sat, 8 Nov 2008 19:42:05 +0530 (IST) Subject: Re: Maven compilation error Hi, See the maven-compiler-plugin:

Using a WAR as a dependency

2008-11-12 Thread Mike Leonardo
Hello, I'm working on a multi-module web project and I find myself in a situation where I need the web-app packaged as both a jar and a war. My project consists of: * parent module * integration-tests module * web-app module I'm trying to set it up so that when I run mvn:install (from the

RE: Dependency report fails

2008-11-12 Thread EJ Ciramella
Can the dependency report be configured to skip a series of depenencies? If it can, I don't see a way... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 4:35 PM To: users@maven.apache.org Subject: Dependency report fails

Re: Maven includes old jar versions

2008-11-12 Thread Brian Fox
Do a clean install after changing the pom since the target folder would already have a copy of the previous version. --Brian (mobile) On Nov 12, 2008, at 9:52 AM, Troy Bull [EMAIL PROTECTED] wrote: Greetings I am brand new to maven and I have just noticed an issue. I have a jar file that

Re: Experimental Grails archetype

2008-11-12 Thread Ed
This seems to be the issue, actually. I added the repository using the archiva web ui: Grails.org Snapshot Repository Identifier grails.snapshots NameGrails.org Snapshot Repository URL http://snapshots.repository.codehaus.org/ TypeMaven 2.x Repository And it shows up in the main

OpenJPA (together with jtds) cannot find javax.persistence?

2008-11-12 Thread Ulrich Wolf
Hello, in a project of a new customer we have to add several functionalities to an existing desktop application (swing) which accesses a mssql-database-server. To simplify the process of testing and packaging for a team of 4 developers, we've set up maven. Problem is, that we have to use

jaxws-maven-plugin : Failed to execute wsgen

2008-11-12 Thread thomas2004
Hi all, I use Eclipse 3.4 and has maven2 plugin installed. As I run mvn package in Eclipse with following pom.xml, I got following error: [ERROR] The following mojo encountered an error while executing: Group-Id: org.codehaus.mojo Artifact-Id: jaxws-maven-plugin Version: 1.10 Mojo: wsgen

Re: OpenJPA (together with jtds) cannot find javax.persistence?

2008-11-12 Thread Wayne Fay
As you can see, javax.persistence is not available in the classpath. I have added the following dependency to my pom.xml to hopefully solve this issue, but it didn't work: What kind of project is this -- jar, war, ear, etc? And are you sure the artifact providing the Persistence class is

Re: Exclude some jar from the classpath generated by eclipse:eclipse

2008-11-12 Thread Nick Stolwijk
It is indeed not clear from the documentation, but if you look the documentation closely you see a Jira issue attached: List of artifact to exclude from eclipse classpath, beeing provided by some eclipse classPathContainer [MECLIPSE-79] This jira issue provide the documentation: excludes

RE: Crash when running site:site

2008-11-12 Thread EJ Ciramella
Try something like: MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=256m -Original Message- From: stug23 [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 1:01 PM To: users@maven.apache.org Subject: Crash when running site:site I have a Maven project that's not very large or complex,

RE: Maven and various test strategies

2008-11-12 Thread EJ Ciramella
Couldn't you point the output directories to the same location? I guess that would merge your unittests and integration tests. Also, you can always write your own reporting plugin to cover integration tests. -Original Message- From: Bracewell, Robert [mailto:[EMAIL PROTECTED] Sent:

Re: Filtering TestResources

2008-11-12 Thread nodje
Is http://jira.codehaus.org/browse/MRESOURCES the right place to submit the issue? As for the test case, what about a pom.xml with the minimal directory structure and a couple of properties files and filters. Can I update that on Jira? -nodje Olivier Lamy wrote: Can you load an issue and

Re: Exclude some jar from the classpath generated by eclipse:eclipse

2008-11-12 Thread Rice Yeh
Yes, I tried. But it seems not work. Shouldn't the named jar be excluded from .classpath. Regards, Rice On Thu, Nov 13, 2008 at 6:59 AM, Nick Stolwijk [EMAIL PROTECTED]wrote: It is indeed not clear from the documentation, but if you look the documentation closely you see a Jira issue

Re: OpenJPA (together with jtds) cannot find javax.persistence?

2008-11-12 Thread Rusty Wright
I thought you could use Hibernate's JPA stuff just for JPA, without needing to use the full Hibernate package. For example, dependency groupIdorg.hibernate/groupId artifactIdejb3-persistence/artifactId version1.0.1.GA/version /dependency Ulrich

properties variables in archetype pom?

2008-11-12 Thread Rusty Wright
I'm trying to create an archetype using the instructions from the apache maven web site: $ mvn archetype:create-from-project $ cd target/generated-sources/archetype/ $ mvn install $ mkdir /tmp/archetype $ cd /tmp/archetype $ mvn archetype:generate -DarchetypeCatalog=local But at the last step

Re: Using commons-net ftp jar as a dependency

2008-11-12 Thread Rusty Wright
If you know you're not going to use the stuff it's dragging in I think you can exclude it; dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version${version.springframework}/version exclusions