ejb packaging: include depending jars?

2008-06-19 Thread Kristian Rink
Folks; using maven along with NetBeans IDE, I found the following situation: - Creating a NetBeans (ant) EJB project that includes external jars, I see these dependencies added as jar files to the ejb jar while building it. - Creating a maven project of packaging type ejb, I see dependencies are

Re: exec:exec with "pom" artifact?

2008-06-19 Thread Kristian Rink
Am Thu, 19 Jun 2008 11:53:53 +0200 schrieb Dirk Olmes <[EMAIL PROTECTED]>: > I'm quite sure that this is not what you want. If you want to perform > some task at the end of the build, add a module (which can have a POM > of packaging pom as well) and do the necessary steps there. Declare > the pr

Incrementing a pom version in a multi-module project (without doing by hand)

2008-06-19 Thread Ian Rowlands
Just wondering what the best way to change the version of POMs in a multi-module Maven 2 project from one number to another? I know you can use the release:branch plugin to do it if you require a branch, but sometimes I don't want to branch - I just want to increase the version! I need to be ab

Re: Re: what is difference between configuarion and execution of plugin ?

2008-06-19 Thread oliver.maven
hi Geoffrey, quite clear now!thank you so much! my last doubt, the only way to specific a plugin to execute in certain phase, is to add a execution section? got any other way? oliver.lee 2008-06-20 发件人: Geoffrey Wiseman 发送时间: 2008-06-20 09:38:19 收件人: Maven Users List 抄送: 主题: Re: what

Re: How to get around a Maven Bug?

2008-06-19 Thread Barrie Treloar
On Thu, Jun 19, 2008 at 11:46 PM, Hoying, Ken <[EMAIL PROTECTED]> wrote: > I am getting the error below when attempting to add the Apache > commons-validator version 1.3.1 to my project. > > It looks like this might be a known issue in Maven based on this bug > report: > http://jira.codehaus.org/br

Re: resin plugin deploying blank war?

2008-06-19 Thread Geoffrey Wiseman
On Thu, Jun 19, 2008 at 4:57 PM, Mick Knutson <[EMAIL PROTECTED]> wrote: > So I need to sign up to yet another list to find help on a Maven supported > plugin? > No, I think you need to sign up for a third-party list to learn about a third-party plugin for Maven. Does that make more sense? -

Re: what is difference between configuarion and execution of plugin ?

2008-06-19 Thread Geoffrey Wiseman
On Thu, Jun 19, 2008 at 9:30 PM, oliver.maven <[EMAIL PROTECTED]> wrote: > hi, > i know execution may contains configuration,but i am still confusing, > > some plugin has the configuration only,some plugin has the execution only, > and some has both of them, > > how to differentiate them and use c

what is difference between configuarion and execution of plugin ?

2008-06-19 Thread oliver.maven
hi, i know execution may contains configuration,but i am still confusing, some plugin has the configuration only,some plugin has the execution only, and some has both of them, how to differentiate them and use correctly? thanks a lot! oliver.lee 2008-06-20

[m2] selenium plugin, with testng Session NULL issue

2008-06-19 Thread Mick Knutson
I keep getting this error trying to run Selenium tests: *17:31:54,256 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: ERROR Server Exception: sessionId should not be null; has this session been started yet? on session null 17:31:54,288 INFO [org.openqa.selenium.server.S

Issues with Spring when upgrade to Maven 2.0.9.

2008-06-19 Thread Todd Nguyen
Anyone seen this before. Maven 2.0.7 works just fine. Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property

AW: Ant Plugin for Maven

2008-06-19 Thread Mark Struberg
Hi! Usually vendor specific ant tasks come in a jar. So is this jar available in the public repositories or did you deploy it into your company repository? If so, simply add a dependency to it. LieGrü, strub --- Jan Bohac <[EMAIL PROTECTED]> schrieb am Do, 19.6.2008: > Von: Jan Bohac <[EMAIL

RE: How to omit/include a jar file during packaging

2008-06-19 Thread prabho
Thanks a lot. I am having a problem in including a jar file though. I have the following directory structure. Dir A/ - lib/ - pom.xml Dir B/ - WEB-INF/lib - pom.xml (includes dependency for Dir A) Dir C/ - pom.xml I want to place the jar files in Dir B/WEB-INF/lib dire

Re: resin plugin deploying blank war?

2008-06-19 Thread Mick Knutson
So I need to sign up to yet another list to find help on a Maven supported plugin? On Thu, Jun 19, 2008 at 1:50 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote: > oups typo ;-) > > AFAIK this plugin is NOT supported by the maven dev team. > > 2008/6/19 Olivier Lamy <[EMAIL PROTECTED]>: > > AFAIK this

Re: resin plugin deploying blank war?

2008-06-19 Thread Olivier Lamy
oups typo ;-) AFAIK this plugin is NOT supported by the maven dev team. 2008/6/19 Olivier Lamy <[EMAIL PROTECTED]>: > AFAIK this plugin is supported by the maven dev team. > Please have a look at http://www.caucho.com/ > caucho mailing lists are listed here : > http://maillist.caucho.com/mailman/

Re: resin plugin deploying blank war?

2008-06-19 Thread Olivier Lamy
AFAIK this plugin is supported by the maven dev team. Please have a look at http://www.caucho.com/ caucho mailing lists are listed here : http://maillist.caucho.com/mailman/listinfo Thanks ! -- Olivier 2008/6/19 Mick Knutson <[EMAIL PROTECTED]>: > 500 Servlet Exception > > > [show] java.lang.N

Re: resin plugin deploying blank war?

2008-06-19 Thread Mick Knutson
500 Servlet Exception [show] java.lang.NullPointerException java.lang.NullPointerException at com.caucho.amber.table.ForeignColumn.(ForeignColumn.java:50) at com.caucho.amber.table.Table.createForeignColumn(Table.java:225) at com.caucho.amber.cfg.AbstractConfigIntrospe

Re: resin plugin deploying blank war?

2008-06-19 Thread Mick Knutson
Is anyone using the resin plugin? On Thu, Jun 19, 2008 at 9:06 AM, Mick Knutson <[EMAIL PROTECTED]> wrote: > I am trying to deploy to resin with: > > com.caucho > resin-maven-plugin > 3.1.5 > > > But web\target\webapp is fully bl

Deploying SWT zipped app for 4 platforms

2008-06-19 Thread Andrew Robinson
I am trying to determine how to bundle my SWT application to release on windows, linux, linux-amd64 and macosx. I already have 4 profiles that have the correct dependencies for each platform. What I want to do is tie this into the assembly plugin and the release plugin. This is how I can have on

resin plugin deploying blank war?

2008-06-19 Thread Mick Knutson
I am trying to deploy to resin with: com.caucho resin-maven-plugin 3.1.5 But web\target\webapp is fully blank, but webapp-cach has what looks like my contents of webapp-3.0-SNAPSHOT.war: currentBuild

Re: use highest version available ? Version Ranges ?

2008-06-19 Thread User
SlinnHawkins, Jon (ELS-CAM) wrote: Hi, Is there any way of forcing a dependency to use the highest version available ? Ranges is the right way to do it. For example : Does "[4.0,)" grab the highest version above 4.0, or does it still use a “best fit” with the other dependenc

RE: How to omit/include a jar file during packaging

2008-06-19 Thread Beelen, M. - SPLXL
Hi Prabhu, If you want to build your war-file, but don't want a certain dependency to be included in the WEB-INF/lib-directory, then you should mark the dependency as being provided as described in the introduction to dependency mechanism[1]. By doing so the jar will be available during compilati

Re: How to omit/include a jar file during packaging

2008-06-19 Thread Julien Simon
Hi, You could specify a provided scope for the dependency that you don't want to package in your WAR. It will use the dependency for the compile phase, but will not include it in your war. my-jar-group my-jar-artifact provided On Thu, Jun 19, 2008 at 4:14 PM, prabho <[EMAIL

Ant Plugin for Maven

2008-06-19 Thread Jan Bohac
Hello everybody, I've following problem. I'trying to develop Ant Plugin for Maven 2.0.9. In the plugin I'm using the ant task from Oracle - for assemblying Web Services. First I tried to create a normal Ant build file - it works correctly and then I've create (from this file) the Maven plugin.

Invoking archetype:create with Maven API

2008-06-19 Thread Davide Angelocola
Hi, I need to invoke the goal archetype:create from a java program using the Maven API. Actually I've a class that uses a ProcessBuilder, but this is somewhat problematic since it rely on an external maven installation. This is the "ugly" code: String command[] = { "mvn"

Re: How to filter Test case?

2008-06-19 Thread Mick Knutson
I actually use TestNG, and filter my testng.xml thus getting the result it sounds like you want. On Thu, Jun 19, 2008 at 12:51 AM, Julien Simon <[EMAIL PROTECTED]> wrote: > Hi, > > If you want to exclude some specific tests you need to configure the > surefire plugin in your pom. Have a look a

Some questions about executions?!thanks for any help!

2008-06-19 Thread oliver.maven
hi,all some questions about executions section i have, 1-Does execution only can be activated along with it's config phase been called? 2-If i have 2 executions,both of them didn't set section, when and which one will executed? 3-How to directly invoke one of execution? waiting for you kindl

How to get around a Maven Bug?

2008-06-19 Thread Hoying, Ken
I am getting the error below when attempting to add the Apache commons-validator version 1.3.1 to my project. It looks like this might be a known issue in Maven based on this bug report: http://jira.codehaus.org/browse/MNG-2123?page=com.atlassian.jira.plugin. system.issuetabpanels:worklog-tabpan

How to omit/include a jar file during packaging

2008-06-19 Thread prabho
Hi all, I am trying to create a WAR file with class files and other jar files. As I have conflict with an external jar file, I am supposed to omit my jar file while packaging. Can you please let me know how to achieve that? Any help is greatly appreciated. Thanks Prabhu -- View this message in

RE: Release plugin does not change version of plugin's dependency even though it is in reactor

2008-06-19 Thread Hayes, Peter
No this is not the issue. The problem is that the version of the build tool artifact does not get updated during the release:prepare phase. Pete -Original Message- From: Kalle Korhonen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 10:11 PM To: Maven Users List Subject: Re:

Custom classloader for an artifact

2008-06-19 Thread Jens Köcke
Hi, I've been developing a maven plugin for the Java Plugin Framework (http://jpf.sf.net). Its a plugin system similar to the one used by eclipse. A jpf-plugin is a jar file containing the compiled classes in a subdirectory and a plugin descriptor. A plugin can export certain classes and hid

Re: exec:exec with "pom" artifact?

2008-06-19 Thread Dirk Olmes
Declaring this inside a "war" artifact, execution phase "deploy", works fine. Using a "pom" artifact however, it seems to run "exec:exec" not along with deploying the "pom" (i.e. after rebuilding all) but in the "deploy" phase for each module (at least that's what the error messages make me believ

Re: own archetype

2008-06-19 Thread Raphaël Piéroni
Try creating a sample project then call mvn archetype:create-from-project on that project then go to target/genetrated-sources/archetype then call mvn install to use it go to a fresh directory and call mvn archetyppe:generate -DarchetypeCatalog=local Raphaël 2008/6/18 <[EMAIL PROTECTED]>: > I wo

exec:exec with "pom" artifact?

2008-06-19 Thread Kristian Rink
Folks; so far I make use of a "pom" artifact having several modules configured in order to ease building projects depending upon each other. Right now, the last of these modules is a "war" artifact which, after building all modules, I would like to deploy to some server (using exec:exec and the "a

PMD/Checkstyle plugins.

2008-06-19 Thread Niranjan Deshpande
where do the generated reports of the pmd/checkstyle go? I am using my own ruleset for both. and right now executing the pmd plugin as under will later move it to the -- Regards, Niranjan Deshpande "Shut yourself from the world and create the reality you want"

Re: own archetype

2008-06-19 Thread Salvador Diaz
In your archetype's pom, in the build section, put the following configuration: src/java ... Greetings, Salvador [EMAIL PROTECTED] a écrit : I would like to create my own archetype. I used the quickstart-archetype as an example. How is it possible to change the java-folder from src

specialising release builds

2008-06-19 Thread Richard Chamberlain
Hi all, I'm trying to upload javadoc to a site when we release an artefact. How can I switch uploading based on whether it is a release version or not? Thanks, Richard

own archetype

2008-06-19 Thread Caesar6
I would like to create my own archetype. I used the quickstart-archetype as an example. How is it possible to change the java-folder from src-main-java to src-java (remove the main-folder)? Can you give me some examples? -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:

changelog problem

2008-06-19 Thread Patrick Kwok
Hi, I have been trying to build a Maven site for some of our modules by running "mvn site", and the build process seems fine until it got to the changelog report. It was stuck at the following point, and the "changelog.html" was generated as a blank file. Extract from the log: ---

Re: JARs in WEB-INF/lib

2008-06-19 Thread Martin Höller
On Thursday 19 June 2008 Niranjan Deshpande wrote: > I am moving my applciaiton build process from ant to maven > earlier, some dependency jars were in my prj_hom/lib dir, these were for > the dependecny resoultion. > > now the jars are in the repository and declared in the POM. > so emptying (dele

Re: Running all tests ignoring failures

2008-06-19 Thread Stefan Seidel
Hi, what always worked was: mvn ... -Dmaven.test.failure.ignore=true Stefan Balasubramanian, Ravi Shankar wrote: Hi all, I need a way in maven (using the surefire-plugin) to run all tests in a project ignoring any test failures that might occur. All my tests are independent of each othe

JARs in WEB-INF/lib

2008-06-19 Thread Niranjan Deshpande
I am moving my applciaiton build process from ant to maven earlier, some dependency jars were in my prj_hom/lib dir, these were for the dependecny resoultion. now the jars are in the repository and declared in the POM. so emptying (deleting) the prj_home/lib dir should not be a harm. my understand

Re: Running all tests ignoring failures

2008-06-19 Thread Martin Höller
Hi Ravi! On Thursday 19 June 2008 Balasubramanian, Ravi Shankar wrote: > Hi all, > I need a way in maven (using the surefire-plugin) to run all tests > in a project ignoring any test failures that might occur. All my tests > are independent of each other and i want all the tests to be run >

Re: Archiva Problem.

2008-06-19 Thread Alexander Vaysberg
I use Archiva 1.0.2 (WEB). Yes, I mean HTTP Proxy. The configuration in archiva.xml is default, but I find deference: once, but I think it must always. 1 internal central **/*

Re: How to filter Test case?

2008-06-19 Thread Julien Simon
Hi, If you want to exclude some specific tests you need to configure the surefire plugin in your pom. Have a look at this http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html There's an example showing how to exclude tests. On Thu, Jun 19, 2008 at 4:31 AM, youha