Re: packaging wars

2008-07-25 Thread Manuel EVENO
I'm not sure to complete understand your needs but I think using war overlays may fill your needs : http://maven.apache.org/plugins/maven-war-plugin/overlays.html Create one war with the common stuff Create another with the specific stuff war and with a dependency of type war to the common war.

How to skip JAR creation

2008-07-25 Thread syllepsa
Hi, Is it possible to turn off JAR building? I just want to run external program via maven-exec-plugin. Thank you in advance Mariusz -- View this message in context: http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.html Sent from the Maven - Users mailing list archive at

Re: How to skip JAR creation

2008-07-25 Thread Jeff MAURY
I think this is a bad practice. Why do you need an external program. I think you should look at all the maven jar plugin configuration options to make sure the maven jar plugin cannot do what you need. Jeff MAURY On 7/25/08, syllepsa [EMAIL PROTECTED] wrote: Hi, Is it possible to turn off

Filtering source code?

2008-07-25 Thread Mark Derricutt
Is there anyway to filter .java code to replace variable references the same was filtering resources? I'm pretty sure I remember seeing something about it somewhere but can't find any references to it. Mark -- It is easier to optimize correct code than to correct optimized code. -- Bill Harlan

Re: How to skip JAR creation

2008-07-25 Thread Manuel EVENO
Do you want to use an external program to create the jar ? On this point, I'm joining Jeff Otherwise, you can target plugin goals directly by calling : mvn exec:exec Manuel On Fri, Jul 25, 2008 at 9:39 AM, syllepsa [EMAIL PROTECTED] wrote: Hi, Is it possible to turn off JAR building?

Re: Filtering source code?

2008-07-25 Thread Stephen Connolly
You could use the resource plugin bound the the generate-sources phase and then use the buildhelper plugin to add the generated sources to the list of sources On Fri, Jul 25, 2008 at 8:46 AM, Mark Derricutt [EMAIL PROTECTED] wrote: Is there anyway to filter .java code to replace variable

Re: How to skip JAR creation

2008-07-25 Thread Stephen Connolly
Alternatively, you could use pom packaging if you do not intend for your module to ever produce a jar On Fri, Jul 25, 2008 at 8:48 AM, Manuel EVENO [EMAIL PROTECTED] wrote: Do you want to use an external program to create the jar ? On this point, I'm joining Jeff Otherwise, you can

Re: How to skip JAR creation

2008-07-25 Thread syllepsa
Stephen Connolly-2 wrote: Alternatively, you could use pom packaging if you do not intend for your module to ever produce a jar On Fri, Jul 25, 2008 at 8:48 AM, Manuel EVENO [EMAIL PROTECTED] wrote: Do you want to use an external program to create the jar ? On this point, I'm

Re: How to skip JAR creation

2008-07-25 Thread syllepsa
Maybe I will describe what I want to do. I wrote some xslt transformation. My xml files are transformed by two external programs. Thus I need to run these two apps via maven-exec-plugin (and it's done). So... 1. I don't need compile sources and copy them to the target directory. 2. I don't

Re: packaging wars

2008-07-25 Thread Jean-Paul Vallée
Thanks, Jeff and manuel I think i will have a look at overlays, your explainations seem to be what i want to do. But, is there a smarter way to do what i want, ie merge generic and specific artifact when building the specific artifact.

Re: How to skip JAR creation

2008-07-25 Thread Jeff MAURY
Bind the maven-exec-plugin to a phase like process-resources and run maven against this phase -- JAR won't be produced Jeff MAURY On 7/25/08, syllepsa [EMAIL PROTECTED] wrote: Maybe I will describe what I want to do. I wrote some xslt transformation. My xml files are transformed by two

Re: How to skip JAR creation

2008-07-25 Thread syllepsa
Thanks Jeff. It works! Mariusz Jeff MAURY wrote: Bind the maven-exec-plugin to a phase like process-resources and run maven against this phase -- JAR won't be produced Jeff MAURY On 7/25/08, syllepsa [EMAIL PROTECTED] wrote: Maybe I will describe what I want to do. I wrote some

Re: packaging wars

2008-07-25 Thread Stefan Seidel
Hi, I think we have two cases that are similar: Firstly, EJBs where only deployment descriptors are different. For this we use + parent +- generic +- specific1 +- specific2 All the sources are in generic/src/main/java. parent has packagingpom/packaging and

building a resources artifact

2008-07-25 Thread Julien CARSIQUE
Hi, I need to build an artifact containing only resources, no Java source. These resources are in scr/main/... in a project with pom packaging type. I tried with maven-jar-plugin with no success, the built jar is empty of the wanted resources : [INFO] [jar:jar {execution: resources_common}]

Re: building a resources artifact

2008-07-25 Thread Manuel EVENO
Maybe you can use the assembly plugin http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html On Fri, Jul 25, 2008 at 12:03 PM, Julien CARSIQUE [EMAIL PROTECTED]wrote: Hi, I need to build an artifact containing only resources, no Java source. These resources are in

RE: how maven run its plugin goals through java API????

2008-07-25 Thread Renu Gupta
Thanks Stefan, Maven Embedder seems to be of useful to me. And now I am successfully able to run my jboss server goals using maven embedder. But for more references I am not getting much of material on maven Embedder. And at this point I am not able to decide how much stable is maven embedder to

Re: building a resources artifact

2008-07-25 Thread Jeff MAURY
Simply declare you POM with jar packaging. It tested it and it works. Jeff MAURY On 7/25/08, Julien CARSIQUE [EMAIL PROTECTED] wrote: Hi, I need to build an artifact containing only resources, no Java source. These resources are in scr/main/... in a project with pom packaging type. I

surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
Hello, I'm trying to setup surefire plugin to run GWTTestCase. This requires some custom setup as the hosted mode browser requires GWT to read the java source code : artifactIdmaven-surefire-plugin/artifactId configuration additionalClasspathElements

Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
Using useManifestOnlyJarfalse/useManifestOnlyJar makes things work better, as the full classpath is scanned for java source files by the GWT compiler, but now I get javax.servlet.ServletException: Class com.google.gwt.dev.shell.GWTShellServlet is not a Servlet (looks like a classloader conflict)

Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread Jeff MAURY
Using useManifestOnlyJarfalse/useManifestOnlyJar may lead to classpath too long for your environment and leading to ClassNotFoundException or ClassNotFoundError. May be this is what you have ? Jeff MAURY On 7/25/08, nicolas de loof [EMAIL PROTECTED] wrote: Using

Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
I tried to copy/paste the command line executed by surefire : java -Xmx256M -classpath blablablablalba org.apache.maven.surefire.booter.SurefireBooter C:\WINDOWS\TEMP\surefire17025tmp C:\WINDOWS\TEMP\surefire17026tmp As surefire executes, it seems the line is not too long (evn it is very long

surefire doesn't detect failed tests. (forkMode = always and jdk1.4)

2008-07-25 Thread Benoit Decherf
Hi When I execute mvn deploy (from continuum), The surefire reports show that there are errors, but the execution doesn't fail : In the output I have: Results : Failed tests: Tests in error: Tests run: 212, Failures: 24, Errors: 8, Skipped: 0 [INFO] [jar:jar] That's strange. It show

Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
I also tried to drastically reduce the command line (removing all unecessary dependencies) but have the same issue. 2008/7/25 Jeff MAURY [EMAIL PROTECTED]: Using useManifestOnlyJarfalse/useManifestOnlyJar may lead to classpath too long for your environment and leading to

Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
I trie to remove all classpath references from the surefiretmp file, that includes all my dependencies even when useManifestOnlyJar is set to false. I then cannot run the test anymore : org.apache.maven.surefire.booter.SurefireExecutionException: com/google/gwt/junit/client/GWTTestCase; nested

Is there a standard way to provide build time properties to an application?

2008-07-25 Thread Brewster, Richard
The general idea is to create a properties file and package it in the jar or war on the classpath, so it can be read at runtime. Thanks, Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640

RE: System dependencies as dependency management

2008-07-25 Thread Brian E. Fox
It most likely has to do with the changes to when the properties are resolved. -Original Message- From: jsoula [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2008 10:05 AM To: Maven Users List; Maven Developers List Subject: Re: System dependencies as dependency management I try the

Re: Is there a standard way to provide build time properties to an application?

2008-07-25 Thread Manuel EVENO
You mean dynamically create the properties file before packaging ? On Fri, Jul 25, 2008 at 4:05 PM, Brewster, Richard [EMAIL PROTECTED]wrote: The general idea is to create a properties file and package it in the jar or war on the classpath, so it can be read at runtime. Thanks, Richard

Merging applicationContexts

2008-07-25 Thread Matt Walsh
I'm a little new to Maven (about 3 weeks), so I apologize if this is a n00b question. I have a question about how to better structure my current application. Currently, the parent project has three modules: client, server, and common. Common depends on nothing. It simply hold beans and service

Re: Merging applicationContexts

2008-07-25 Thread Manuel EVENO
You can put xml or properties file in jar too. Simply add them into src/main/resources of your server module Manuel On Fri, Jul 25, 2008 at 5:02 PM, Matt Walsh [EMAIL PROTECTED] wrote: I'm a little new to Maven (about 3 weeks), so I apologize if this is a n00b question. I have a question

zip files/jars with maven2

2008-07-25 Thread MedElb
Hi all, i have a maven projet (multimodules) with parent pom, and all sub projects are jar's packaging with dependencies with them, now i need a way to get a zip file witch i'll get all jars thanks in advance best regards M.E

Re: zip files/jars with maven2

2008-07-25 Thread Mick Knutson
You need to create an assembly with the assembly plugin. --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com

Problem using Plugin Management

2008-07-25 Thread Jean-Marc Desprez
Hi, I have four projects under maven. I want to be able to run assembly:assembly on each projects with minimum effort. So I had create a main project with this configuration : ... modules module../aaa/module module../zzz/module module../eee/module

Re: zip files/jars with maven2

2008-07-25 Thread MedElb
thanks for your response, in any level i must configure the assemply plugin at the parent POM? at build ?? do u have an exemple thank you in advance 2008/7/25 Mick Knutson [EMAIL PROTECTED]: You need to create an assembly with the assembly plugin. --- Thank You… Mick Knutson BASE

Re: zip files/jars with maven2

2008-07-25 Thread Mick Knutson
http://maven.apache.org/plugins/maven-assembly-plugin/ --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com

Re: [m2] how to specify a tomcat context with the cargo plugin to run in maven?

2008-07-25 Thread Marc Schneider
Mick Knutson a écrit : I want to specify a test version of my tomcat context with my cargo plugin, but can't seem to find anything about that on the site. Is this possible? --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog:

Sonar

2008-07-25 Thread Yanko, Curtis
Anybody using Sonar? It's not clear to me how it works in conjunction with something like Site or does it replace it? == Curtis Yanko Application Developer Infrastructure Services Source-Build-Deploy This e-mail, including attachments, may include confidential and/or proprietary

Re: Merging applicationContexts

2008-07-25 Thread Matt Walsh
But when I go to war:war my client module, it's not going to find the web.xml and all related xml files and will fail. On Fri, Jul 25, 2008 at 10:15 AM, Manuel EVENO [EMAIL PROTECTED] wrote: You can put xml or properties file in jar too. Simply add them into src/main/resources of your server

Re: [m2] how to specify a tomcat context with the cargo plugin to run in maven?

2008-07-25 Thread Mick Knutson
So is this going to startup my local tomcat, verse embedded tomcat for testing? Then the local tomcat just needs to be configured with my proper context.xml...??? --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC

Re: Sonar

2008-07-25 Thread Scott Ryan
WE are using it during our autobuild process in Cruise Control and Maven 2. We are running Sonar as a seperate website and process so we use both site and sonar as both provide great information. Sonar is database based so you can get history which is awesome and we use mysql. Site is file

Re: Override an @component hint in the pom?

2008-07-25 Thread jaxzin
Thanks Jason, that's exactly what I'm looking for. Jason van Zyl-2 wrote: You can look at the enforcer plugin and the shade plugin for examples of letting users specify custom/specific implementations of components with their own configurations. On 24-Jul-08, at 9:50 PM, jaxzin

Embedded error: weblogic.utils.compiler.ToolFailureException: error in finding weblogic.Home - with nested exception:

2008-07-25 Thread David Brown
Hello Mavenites, I am building an SVN controlled project. I have checked out the most recent trunk and I am getting the following error condition. Obviously, this is Weblogic related but going to BEA is a waste of time. TIA and please advise, David. [ERROR] BUILD ERROR [INFO]

RE: Override an @component hint in the pom?

2008-07-25 Thread Brian E. Fox
Actually the enforcer doesn't show overriding the hint, but the ounce-maven-plugin does exactly that. I simply take hint as a parameter and use that in the container.lookUp() call. The trick is getting the container to use, you need to implement Contextualizable and then the method contextualize.

RE: Override an @component hint in the pom?

2008-07-25 Thread jaxzin
Thanks Brian for the alternative. I really do like how the custom enforcer rules work though, so I think I'm going to follow your lead with the enforcer rules but I'm glad to know that the role hint can be overridden. The fact that the implementation attribute is available out-of-the-box with

Any chance for maven and IDE (eclipse)?

2008-07-25 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody, I am using maven and eclipse for more than five years now. All I have to say is that bringing these two together was crappy from the start and still is. So far what I can tell: 1. maven-eclipse-plugin does an excellent job. However

Re: Enabling Eclipse 3.4.0 Ganymede in the maven repository

2008-07-25 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, | Does this mean if it would be the job of eclipse team to publish the | .pom files to the repository. Is there any way any other individual | contributor can contribute to this ? | | It means the latter. You can create a bundle and

Re: error plugin stage

2008-07-25 Thread Dan Tran
This problem is at archiva side where it returns the file list with one entry that contains a single space. and crashes the staging plugin. the work around for my case is to have httpd to host the staging. -D On Fri, Apr 11, 2008 at 7:48 AM, Dennis Lundberg [EMAIL PROTECTED] wrote: Please

Re: error plugin stage

2008-07-25 Thread Dan Tran
but it does not solve the problem at target side of course. -D On Fri, Jul 25, 2008 at 6:58 PM, Dan Tran [EMAIL PROTECTED] wrote: This problem is at archiva side where it returns the file list with one entry that contains a single space. and crashes the staging plugin. the work around for

Unable to override the value in pom's project properties in mojo

2008-07-25 Thread Dan Tran
I am writing a plugin to set the values of a given set of property key passing in by user. However if the user set the default values int pom.xml's properties, the plugin cant not overwrite them. Here is the source to the mojo