Re: Grandparent classes not found at compile time

2009-03-27 Thread Stephen Connolly
if your module requires the dependency to complie then it is a dependency of your module what you describe as a work around is actually what you are supposed to do the real issue is that compile is transitive. compile needs to be transitive as a runtime dependency but should not be a transitive

Re: Ideal File Placement

2009-03-27 Thread Manos Batsis
Sammy wrote: Hello, In a multi-module maven project, a webapp module has java, resources and WEB-INF folders. In which folder should jsp, css, web.xml, spring XML configurations and other files go? In a war module, src/main/webapp usually contains: WEB-INF jsp css images index.html

Re: maven-surefire-plugin: run unit tests from classes in a jar, not a directory

2009-03-27 Thread Frederic Camblor
Hi Anshul, This is pretty funny ... I wondered the same questions 2 weeks ago :-) ... And I think I can answer since while reading surefire plugin source code, I sadly saw use of directory test suite is hardcoded in SurefirePlugin.constructSurefireBooter() (search use of string

Is it possible to automatically release SNAPSHOT project dependencies?

2009-03-27 Thread Torben Knerr
Hi all, we have AppA and AppB, both having a dependency to Common. All of these are under active development and using SNAPSHOT versions: AppA: 2.2-SNAPSHOT == Common: 2.3-SNAPSHOT AppB: 2.1-SNAPSHOT == Common: 2.3-SNAPSHOT Further, we want to have weekly releases of AppA. The release version

Getting Reference made to goal 'clean' which has no definition error with maven 1.1-beta-2

2009-03-27 Thread Ismael Teijeiro Flórez
Hi, We are getting an error when trying to execute the following goal located in an xml imported from our maven.xml: goal name=aaa prereqs=clean j:set var=test.goals value=bbb / attainGoal name=ccc / /goal The error we are getting is the following: INTERNAL ERROR Reference made to

Re: Is it possible to automatically release SNAPSHOT project dependencies?

2009-03-27 Thread Stephen Connolly
When 1.0-alpha-3 of versions-maven-plugin is released you could build your own snapshot of it at the moment look at the lock-snapshots and unlock-snapshots goals -Stephen 2009/3/27 Torben Knerr deru...@gmail.com Hi all, we have AppA and AppB, both having a dependency to Common. All

Re: Is it possible to automatically release SNAPSHOT project dependencies?

2009-03-27 Thread Torben Knerr
Yes, currently we 1) are building Common-2.3.0.v20090327 first using release:prepare (next dev version remains Common-2.3-SNAPHOT), then 2) we change the pom of AppA-2.0-SNAPSHOT to depend on Common-2.3.0.v20090327 (instead of Common-2.3-SNAPSHOT), then 3) we build AppA-2.2.0.v20090327 using

Archetype: Classname prefix?

2009-03-27 Thread Yopy
I'm currently trying to make a set of archetypes for a project of mine (a framework on top of an API of sorts), and there's one particular feature I'm curious about. The API that I'm building the framework on top of also offers a set of archetypes to create a project skeleton, and when you create

How to live with m2eclipse's WTP support projects?

2009-03-27 Thread Trinition
I have a typical project structure that works perfectly fine for me: myproject |__myproject-app |__myproject-shared |__myproject-ejb |__myproject-web Within the EJB project's pom (packaging=ejb), I have two build plugin: * org.codehaus.mojo:was6-maven-plugin:ejbdeploy *

Checktyle report incomplete

2009-03-27 Thread John Coleman
Hi, When I run the command below I only get checkstyle reports for 2 classes in the project, and the class I have named is missed out. Why isn't the file I have referred to used? Perhaps I cannot put maven properties on the command line, who knows? mvn -Dmaven.checkstyle.includes=**/Named.java

How to modularize a web application

2009-03-27 Thread Tommaso Moroni
Hi, I'm facing a problem while migrating a project to Maven. This project is a web application, with some optional plugins. I would like to modularize it by making the main web application an artifact with package=war, the optional plugins with package=war (since they provide some jsp) and

RE: How to perform a deploy only

2009-03-27 Thread Jim McCaskey
I have found a solution that is working nicely. Having said that, I don't think the request is that farfetched. When doing a deploy, you would definitely want to make sure that all the components that made up the run built successfully before deploying. Not doing so leaves your repository in

resources plugin failed to use properties in release:prepare for multi module projects

2009-03-27 Thread Markku Saarela
Hi, Using Maven 2.1.0, release-plugin 2.0-beta-8 and resources-plugin 2.3. When performing normal mvn install for multi-module project all builds succes, but when trying release projekts, those projects that have filter files whitch are specified in profiles via properties failed. Resources

Converting JEE project into Maven Web Project

2009-03-27 Thread anitasrivatava
Hi, I need to convert a existing JEE project into maven project. Could somebody please provide me step by step instructions. Thanks, anita -- View this message in context: http://www.nabble.com/Converting-JEE-project-into-Maven-Web-Project-tp22745124p22745124.html Sent from the Maven - Users

dependency:unpack-dependencies not updating releases

2009-03-27 Thread Richard Chamberlain
Hi, I'm using dependency:unpack-dependencies to get some zips of artefacts from our company repository. However if I update a released artefact without changing the version (i.e. documentation change), our company repository is never checked by my script. The only way to get the latest

Re: Converting JEE project into Maven Web Project

2009-03-27 Thread martijnverburg
Hi Anita, I strongly suggest you read through the definitive guide: http://www.sonatype.com/node/158?file=books/maven-definitive-guide.pdf Cheers, Martijn On Mar 27, 2009 4:26pm, anitasrivatava anita.srivast...@ijus.net wrote: Hi, I need to convert a existing JEE project into maven

Re: How to perform a deploy only

2009-03-27 Thread Stephen Connolly
Any chance you could post your solution? 2009/3/27 Jim McCaskey jim.mccas...@pervasive.com I have found a solution that is working nicely. Having said that, I don't think the request is that farfetched. When doing a deploy, you would definitely want to make sure that all the components that

Re: How to perform a deploy only

2009-03-27 Thread David Weintraub
On Wed, Mar 25, 2009 at 10:17 PM, Jim McCaskey jim.mccas...@pervasive.com wrote: Hello all, I have several components all built from a top level pom.  This works great for accelerating users to be able to build a lot of stuff quickly but is giving me some fits when trying to deploy.  Up to

Re: dependency:unpack-dependencies not updating releases

2009-03-27 Thread Stephen Connolly
Have a look at the plugin mojo... you'll see there's a config option to control whether snapshots are overwritten and whether releases are overwritten. 2009/3/27 Richard Chamberlain richard.chamberl...@caplin.com Hi, I'm using dependency:unpack-dependencies to get some zips of artefacts

RE: How to perform a deploy only

2009-03-27 Thread Jim McCaskey
Hi Stephen, Sure no problem. What I came up with was another set of posts, and was essentially following the advice you gave me a few days ago and some help from Dan Tran. That is, I use mvn deploy but output to a empty directory, then use a maven plugin to merge that to my primary

SpeedUp the release process

2009-03-27 Thread Hoehmann, Andreas
Hi folks, i have a multi-module-project (~30 artifacts). I wrote a little script to release the whole project from root - check dependencies - try site-build - try release:prepare - clean up - release:prepare - release:perform - deploy new snapshots My repository works with webdav behind a

Re: How to live with m2eclipse's WTP support projects?

2009-03-27 Thread Eugene Kuleshov
Trinition, Usually, a client ejb artifact is a secondary artifact produced from an ejb project, and it normally would be named as myproject-ejb-1.0-ejb-client, where ejb-client is a classifier you'd specify in dependency element. When such dependency is resolved from Eclipse workspace, the

RE: dependency:unpack-dependencies not updating releases

2009-03-27 Thread Brian E. Fox
Overwriting is different than re-resolving. He wants to re-resolve a release that has changed. -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: Friday, March 27, 2009 2:10 PM To: Maven Users List Subject: Re: dependency:unpack-dependencies not

RE: dependency:unpack-dependencies not updating releases

2009-03-27 Thread Brian E. Fox
By changing a release artifact you are violating Maven Commandment #1: Release artifacts are immutable. Maven will never recheck for updated release artifacts, so it will just hand back what's in the local repository to the plugin every time. -Original Message- From: Richard Chamberlain

RE: SpeedUp the release process

2009-03-27 Thread Martin Gainty
you could save alot of time try to pull all your static artifacts to localRepository but this may invite contention as BuildManager is downloading while you may be synch'ing to shared structures..the solution of a simple lockfile as whomever has the lockfile would have update access..all

Re: Verbatim HTML in site documentation

2009-03-27 Thread TomStrummer
I just realized the snippet macro is actually not at all what I'm looking for. I don't want the source of a file displayed in my document; instead I want to actually _render_ a piece of verbatim HTML. So that I can i.e. include a form that the user can fill out and submit. Thanks! Lukas

Re: SpeedUp the release process

2009-03-27 Thread Stephen Connolly
we deploy the site to a local directory and then afterwards copy the site to the web server location 2009/3/27 Hoehmann, Andreas andreas.hoehmann@siemens.com Hi folks, i have a multi-module-project (~30 artifacts). I wrote a little script to release the whole project from root - check

Invoking Maven from Java

2009-03-27 Thread David Nemer
Hello All, I'm new with Maven, and I was wondering if you guys could help me out here. I'm trying to invoke Maven from Java-code. For example, I have a build file, and I call it in Java code to build the project. I found this code, but I'm not sure if it works, I imported the Maven JAR to the

Re: Invoking Maven from Java

2009-03-27 Thread David Nemer
Ok, I realized I have to get the Maven Invoker from here: http://svn.apache.org/viewvc/maven/shared/tags/maven-invoker-2.0.10 I'll try to make some tests with the code I have and see if it works... -- David Nemer Sent from: Kaiserslautern RP Germany. On Sat, Mar 28, 2009 at 12:49 AM, David