Re: Unit test strategy for testing a java.io.File in maven2?

2007-12-19 Thread nicolas de loof
There is a simplier way : maven defines the "basedir" system property I used it as my hudson continuous integration server doesn't set the project root as current directory. I also set default value to "." so that I can run the test under eclipse File baseDir = new File( System.getPropert

RE: How to deploy corporate-pom?

2007-12-19 Thread nicklist
I've created a jira issue for the enforcer rule and I'm working on it. http://jira.codehaus.org/browse/MENFORCER-28 With regards, Nick Stolwijk

Re: Unit test strategy for testing a java.io.File in maven2?

2007-12-19 Thread Kalle Korhonen
To get the root of your test target dir, I'd simply do something like: String rootPath = "file://" + MyTestClass.class.getClassLoader().getResource("").getFile() + "../"; Kalle On Dec 19, 2007 10:40 PM, Insitu <[EMAIL PROTECTED]> wrote: > HEllo, > "Heinrich Nirschl" <[EMAIL PROTECTED]> writes: >

Re: Unit test strategy for testing a java.io.File in maven2?

2007-12-19 Thread Insitu
HEllo, "Heinrich Nirschl" <[EMAIL PROTECTED]> writes: > > I seem to miss something, why does > > new File("test/resources/myImages") > > not work? Because you can never be sure that the current directory is the root directory of your project. You can define environment variables in the surefire

Re: Unit test strategy for testing a java.io.File in maven2?

2007-12-19 Thread Heinrich Nirschl
On Dec 19, 2007 9:57 PM, JavaGeek <[EMAIL PROTECTED]> wrote: > > Hello All, > I have some code that reads a directory in a maven2 project. Is there a way > to put a directory of files in a maven project and reliably read it from > JUnit 4 (or TestNG) across platforms? > > I have code that will rea

Maven2 strange issue

2007-12-19 Thread Trasca Virgil
Hi, I have a new build with maven2 which used to work correctly and quick. But today when I did the sample compile which worked so many times maven2 started to go to repositories and download all kind of dependencies which I never heard about and stayed so much time that I got bored waiting

RE: generated sources convention

2007-12-19 Thread William Ferguson
Kallin, You need to tell Maven that the location of your generated source should be included as part of the build. Ie /** * @parameter default-value="${project}" * @required * @readonly */ private MavenProject project; /** * @p

generated sources convention

2007-12-19 Thread Kallin Nagelberg
I'm working on adapting some source generation code into the maven lifecycle. I've written a plugin that is generating the sources (albeit at random places) and bound it to the generate sources phase. I've read in a couple places that the standard location is target/generated-sources/. However, the

Configure release plugin in the POM for both prepare and branch goals

2007-12-19 Thread Olivier Dehon
Hello, I stumbled upon the following problem and I hope I missed something obvious that you could point me to. I am trying to add some configuration elements for the release plugin inside my POM, notably the . The tagBase I use for the branch goal is different from the one for the prepare goal.

RE: How to deploy corporate-pom?

2007-12-19 Thread Brian E. Fox
I think this can still be a problem. Say you have 1.0-SNAPSHOT of your product using version 1 of your corp pom. (I always suggest org poms always be releases for the same reason I'm about to explain) Then you go and change the trunk of your product code to use version 2 of the corp pom. I'm a deve

Re: How to deploy corporate-pom?

2007-12-19 Thread Nick Stolwijk
I was not talking about revisions (SVN) but about versions (maven repository). I hadn't thought about branches/trunk with each their own releases. So maybe it should just be an option to only have the latest minor version. ie. if there is an update from 0.9.1 to 0.9.2 you should take it. It the

RE: How to deploy corporate-pom?

2007-12-19 Thread Brian E. Fox
This is an interesting idea, but what if you change the rev on the trunk but someone has a developer branch? Now their branch will start failing the rule cause it's not the latest top level parent. -Original Message- From: Nick Stolwijk [mailto:[EMAIL PROTECTED] Sent: Wednesday, December

Re: maven2 and jboss wsconsume -- examples?

2007-12-19 Thread jsolderitsch
jsolderitsch wrote: > > I am looking for some directions, or some example pom text, to show how > the jboss wsconsume operation can be integrated into a maven2 workflow. > > wsconsume will generate Java code based on a wsdl spec. For example, one > of our developers uses the following in a Wind

Re: How to deploy corporate-pom?

2007-12-19 Thread Nick Stolwijk
I was also thinking, that you could write a custom rule for the enforcer plugin, which checks that the topmost parent is the latest in the available repositories. Maybe I will write it tomorrow, if you are interested. Hth, Nick Stolwijk [EMAIL PROTECTED] wrote: Couldn't you put the version

maven-har multiple module dependency issue

2007-12-19 Thread Jeffrey Williams
Hi, I am not entirely sure this is the correct mailing list to post on for this plugin. The net.sf.mavin-har seems to have no posts. But I will continue on with my problem anyway. If there is a better place please let me know! I have a multiple module project The first module contains my hiberna

Re: How to deploy corporate-pom?

2007-12-19 Thread Michael McCallum
You can configure your repository to check for updates after a time interval but in order to maintain build reproducibility something in the repository and that includes parents should never change... Process has its problems but its better for the developer to choose when to break their projec

Re: "Failed to validate POM"

2007-12-19 Thread Johannes Schneider
Thanks for it. There still exists a bug report http://jira.codehaus.org/browse/MEV-554 I hope it will be fixed very soon. Regards, Johannes Schneider olivier lamy wrote: > Hi, > The pom here [1] is not valid. > > > jta > jta > > > version is missing. > > Have a look here : > http://maven.

Unit test strategy for testing a java.io.File in maven2?

2007-12-19 Thread JavaGeek
Hello All, I have some code that reads a directory in a maven2 project. Is there a way to put a directory of files in a maven project and reliably read it from JUnit 4 (or TestNG) across platforms? I have code that will read the contents of a directory, looking for images. I'd like to include

Re: "Failed to validate POM"

2007-12-19 Thread olivier lamy
Hi, The pom here [1] is not valid. jta jta version is missing. Have a look here : http://maven.apache.org/guides/mini/guide-maven-evangelism.html. -- Olivier [1] http://repo1.maven.org/maven2/joda-time/joda-time-hibernate/1.0/joda-time-hibernate-1.0.pom 2007/12/19, Johannes Schneider <[EMA

assembly plugin - topLevel directory to be supressed in war

2007-12-19 Thread Pankaj Tandon
Hi, I intend to use the assembly plugin for a very simple task. I need it to war up a folder structure into a WAR file. The folder is already in a WAR format (infact it is an exploded war file) that I modify via a custom mojo and then I'm using the assembly plugin to war it back up again. Sounds

"Failed to validate POM"

2007-12-19 Thread Johannes Schneider
Hi, I get the following error message when I try to mvn install I have no idea how I could solve that... [INFO] Failed to create assembly: Error retrieving POM of module-dependency: joda-time:joda-time-hibernate:jar:1.0; Reason: Failed to validate POM for project joda-time:joda-time-hibernate at

[m2] Deploy without rebuilding artifacts again

2007-12-19 Thread jblack
For example, my first pass would be 'clean install'. Then when I am satisifed, run 'mvn deploy'. Except the deploy phases reruns compile and install. Can I skip this behavior? -- View this message in context: http://www.nabble.com/-m2--Deploy-without-rebuilding-artifacts-again-tp14423294s177

Re: Code checkout not happening

2007-12-19 Thread Doug Knesek
Thanks for the reply, Mark. It turns out that the problem was mine. My hierarchy of POMs had some duplication with POMs in the actual Java projects. Thanks for your help everyone. Mark_E wrote: > > Hi Doug, >Continuum should get the SCM information for the pom.xml. I have the > Subversi

Re: Ant-like project dependencies

2007-12-19 Thread Doug Knesek
Thanks for the reply, Wayne. This isn't quite what I had in mind, but I've managed to rig my project groups in Continuum to accomplish my objective. I guess this has turned into a feature request: When doing a maven build, there should be an option to "cascade" builds on all SNAPSHOT dependenci

Re: maven2 and jboss wsconsume -- examples?

2007-12-19 Thread Wayne Fay
Some things to investigate: 1) Call wsconsume from ant. You'll need to do some research to see if this is available as an Ant task. 2) You can try using maven-exec-plugin to call wsconsume directly. 3) Find (or write) written a Maven plugin (mojo) for wsconsume. This is rather simple and I'd encour

Deploying multi-module third-party dependencies into a corporate repository. How to handle versionning (and sources and patches)

2007-12-19 Thread Jerome Lacoste
Hei, I often have to build an external dependency and deploy it in our corporate repository. For that I tend to use the deploy plugin specifying the alternative repository using -DaltDeploymentRepository. For complex projects, I need to deploy multiple artifacts, so the deploy-file mojo isn't up t

maven2 and jboss wsconsume -- examples?

2007-12-19 Thread jsolderitsch
I am looking for some directions, or some example pom text, to show how the jboss wsconsume operation can be integrated into a maven2 workflow. wsconsume will generate Java code based on a wsdl spec. For example, one of our developers uses the following in a Windows bat file to execute this step:

Maven 1.1 + tomcat plugin

2007-12-19 Thread Dooing
Hi, I just updated from Maven 1.0.2 to Maven 1.1. In Maven 1.02 I used the tomcat plugin from codezar: maven-tomcat-plugin-1.1.jar. Using Maven 1.1, I typed in: maven tomcat:deploy This gave me the error: --- >> Error

Problems with Clover 2 and context filters

2007-12-19 Thread Volker Fuessler
Hi, I try to filter logging statements from Clover coverage, but unfortunately I can't get it to work. That's how I configured clover in the pom.xml maven-clover-plugin com.atlassian.maven.plugins 3.6 1.5 ${clo

RE: How to deploy corporate-pom?

2007-12-19 Thread nicklist
Couldn't you put the version of the parent (corporate-pom) to LATEST instead of a version number. AFAIK, when you do a release it is changed into the current latest version. So tags won't change when you update your corporate pom. Hth, Nick Stolwijk -Original Message- From: Boeckli, Do

RE: How to deploy corporate-pom?

2007-12-19 Thread Boeckli, Dominique
the problem is that things get forgotten: Assuming i start working on Project Y and i forget to check if there's a new company pom. After a few changes in my code in this project, it is builded on wrong dependencies succesfully and deployed on the test server. Deployment failes and i spent a lot

Need some help

2007-12-19 Thread Tim Schulz
We are running continuum 1.0.3 on a redhat linux box. We have 28 projects under the one instance. Everything was working fine until yesterday, then one of the projects in the "show projects" view was marked with the red x, but when we go into the build history it shows that it built successfully. B

How to either merge a jar with one of its dependencies OR reference a jar assembled with dependency

2007-12-19 Thread Boyle, PJ
Hi, I am trying to build a set of projects that ultimately produces a library that will be distributed to other applications. The library consists of the web application filter which needs to invoke some EJBs running in another process. At the moment I have structured my maven projects so I have t

Re: Maven Site, No Anonymous Access to Source Repository

2007-12-19 Thread Lee Meador
Could the developer connection have user and, maybe, password included in the "URL"? If so, that would make it relevant -- Lee On Dec 19, 2007 8:48 AM, Roger Ye <[EMAIL PROTECTED]> wrote: > In a normal build, it's ok to use the anonymous connection, but what if I > want do a mvn release using co

Re: Is this a bug (Maven needs pom to read global settings.xml)?

2007-12-19 Thread knaas
This is old, and you may have figured out your issue, but this is what worked for us. We had our artifactory configured to use both apache's official maven release and snaphot repositories. We also had our settings.xml set to be a mirrorOf "*" so that everything would go to our artifactory repo.

Re: HELP - repository central will be blacklisted

2007-12-19 Thread knaas
This is old, and you may have figured out your issue, but this is what worked for us. We had our artifactory configured to use both apache's official maven release and snaphot repositories. We also had our settings.xml set to be a mirrorOf "*" so that everything would go to our artifactory repo.

AW: AW: AW: AW: Wrong build status in Project Group Summary

2007-12-19 Thread Manuel.Renz
Hi again, so I changed the length but id didn't help, it still complains about the max length. I also adjusted the value in the pacakge.jdo file. Also I would like to change to CLOB but don't know how to get this working. "in column "COMMAND_OUTPUT" that has maximum length of 1024." I found a

RE: How to deploy corporate-pom?

2007-12-19 Thread nicklist
I thought the problem was with developers having to remove stuff from their local repository. Now you present another problem. In my vision, they should certainly not change automatically. At least not the tags, then you can have two builds of the same tag with different parent information, bas

Re: JVM Appears to be hung

2007-12-19 Thread Hemant Malik
Hi, I was able to overcome this problem by deploying continuum war on tomcat. Just browsing through the continuum bug list i came across some bug that was related to jvm and jetty, so just as a wild guess i thought of doing it. And on tomcat continuum is running fine. I know there is nothing to inf

RE: How to deploy corporate-pom?

2007-12-19 Thread Boeckli, Dominique
yes, i understand, but "good-way"-example is based on 2 projects. But, my example is the following: Project A same. Project B same. no comes the difference 200 more projects, currently nobody working on it, some were not changed since 2 years or more, has

Re: Maven Site, No Anonymous Access to Source Repository

2007-12-19 Thread Roger Ye
In a normal build, it's ok to use the anonymous connection, but what if I want do a mvn release using continuum, that will require checking in and tagging, therefore a developer connection is necessary, so it depends. I think, when adding a maven project into continuum, the user should be asked to

RE: How to deploy corporate-pom?

2007-12-19 Thread nicklist
I didn't meant on developer basis, but on project basis. Example: corporate-pom is at version 0.1.0 Project A has as parent corporate-pom:0.1.0 Project B has as parent corporate-pom:0.1.0 Project A wants a version changed, dependency added, whatever. corporate-pom changes to version 0.1.1-SNAPSH

Re: Maven Site, No Anonymous Access to Source Repository

2007-12-19 Thread Wendy Smoak
On Dec 19, 2007 7:25 AM, <[EMAIL PROTECTED]> wrote: > The scm.connection is the anonymous connection. So, should continuum work > with the developerConnection or the anonymous connection? (Or pick the one, > that is available) Sorry, it's early. :) As long as Maven doesn't complain about it, I

RE: How to deploy corporate-pom?

2007-12-19 Thread Boeckli, Dominique
In fact, both ways are not perfect! Assuming: i change the company pom in your way and advice the developers about this change. As you know most of the email are deleted without being read, i am sure that nobody remembers that there's a new version of the company Pom. So, the effect is the same lik

Re: Dependency rpoblem in multi-module project

2007-12-19 Thread Guillaume Lederrey
I did change the names of the modules to match the directories. But I'm pretty sure it's not a typo. If I build the modules one after the other, it works fine : mvn -f EvenementMetier_shared/pom.xml install mvn -f EvenementMetier_server/pom.xml install ... On 19/12/2007, Heinrich Nirschl <[EMAI

Running test suites

2007-12-19 Thread arnaud . x . dostes
Hello users, I have several unit tests and a a test suite. I'm trying to run the test suite using maven, however "mvn test" executes all the unit tests, but not the test suite (whose purpose is to run the unit tests in a particular order). Is there a way to run test suites using maven ? Best reg

Re: Dependency rpoblem in multi-module project

2007-12-19 Thread Heinrich Nirschl
On Dec 19, 2007 9:21 AM, Guillaume Lederrey <[EMAIL PROTECTED]> wrote: > Problem still not solved. I tried a couple of things : Seems to be a typo somewhere. You said the module is called EvenementMetier_shared but maven is looking for EvenementMetierPoc_shared (note the "Poc"). Double check the g

Re: Maven Site, No Anonymous Access to Source Repository

2007-12-19 Thread Roger Ye
Hi, FYI, I've filed the bug report. http://jira.codehaus.org/browse/MPIR-78 * Maven 2.x Project Info Reports Plugin > * > Unable to exclude scm anonymous access info Thanks On 12/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've taken another

RE: Managing remote repositories

2007-12-19 Thread Matthew Tordoff
We are currently using Artifactory, would there be any benefits into moving to Archiva? What are people's experiences with the different proxies? Matt -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 18 December 2007 22:23 To: Maven Users List Subject: Re: Managing r

Antwort: RE: Lifecycle question: generate-sources, compile, generate-wrapper-sources and compile again within one module

2007-12-19 Thread torsten . reinhard
Hi thanx, yes I´m sure about step 3.) - it´s a self-made wrapper class generator, based on reflection and therefore dependend on the .class files. To split the module into 2 modules was my thought,too - but it would change the existing build and introduce a new module. But to package the

RE: Lifecycle question: generate-sources, compile, generate-wrapper-sources and compile again within one module

2007-12-19 Thread Mark Struberg
Are you sure that step 3.) is depending on the classes and not on the Java sources? A quick option would be to split 1+2 and 3+4 into 2 modules, so you'll get 2 independent lifecycles which provides all you need. This is also a good idea if the schema files do not change that often, since you t

Lifecycle question: generate-sources, compile, generate-wrapper-sources and compile again within one module

2007-12-19 Thread torsten . reinhard
Hi, I need to 1.) generate-sources (maven-jaxb2-plugin) from some xsd-files 2.) compile these files 3.) generate-sources (wrapper Classes) based on the compiled class files 4.) compile all => how can I realize this behaviour within the Maven-Lifecycle ? Thanx for any advice, Torsten

RE: Maven Site, No Anonymous Access to Source Repository

2007-12-19 Thread nicklist
I've taken another look and it seems the scm report configuration was not added in the current stable (2.0.1) but was added in 2.1, which is still a snapshot. However, the was not succesfull with both versions. It seems not to override the default. On the other hand: foo Created a

Re: Problem to login in Continuum 1.1 final with Internet Explorer

2007-12-19 Thread Emmanuel Venisse
You're not alone with this problem but we don't know what's happen for the moment. Emmanuel > Hi, > > I installed the Continuum 1.1 final in a linux machine. > When I try do login (as admin) I am redirect to home. > This happen with Internet Explorer. In firefox work out. > I am using cor

Re: Surefire can't find resource if forkMode=once

2007-12-19 Thread vetalok
Developers have read my letter! I have just run the test and it works! New version of surefire has just been downloaded and the problem has gone :)) vetalok wrote: > > Thanks Jerome, > I have tried this but the main problem is that > if (forkMode=once) { > getResource() method does not looking

Re: Surefire can't find resource if forkMode=once

2007-12-19 Thread vetalok
Thanks Jerome, I have tried this but the main problem is that if (forkMode=once) { getResource() method does not looking for resources in "test-clesses" folder }else if (forkmode=never) { getResource() method looking for resources in "test-clesses" folder - as I want } So the question

Re: Dependency rpoblem in multi-module project

2007-12-19 Thread Guillaume Lederrey
Problem still not solved. I tried a couple of things : * change the project structure to follow the structure I am used to : only put modules one level deep and not 2, have the same name for the artifactId and the directory of the module. The module declaration in the main pom is now : Evenem