[ANN] JBoss Packaging Maven Plugin 2.1 Released

2009-08-10 Thread Paul Gier
The Mojo team is pleased to announce the release of the JBoss Packaging Maven Plugin version 2.1. http://mojo.codehaus.org/jboss-packaging-maven-plugin/ Some notable features in this release include handling for the par (process archive) format. To get this update, simply specify the

Re: Referencing properties in archetype-metadata.xml

2009-08-10 Thread Saritha SV
The variable properties are considered invalid reference in archetype-metadata.xml .. so one way is to include requiredProperty key=earname/ in archetype-metadata.xml .. and the ${earname} can be referenced in properties file (usually under src/main/resources) in the project ..

Maven for Non-Java Projects

2009-08-10 Thread Jan Wedel
Hi there! I already searched google for some help but it seems that it's not really common to use Maven for non-Java projects. However, we plan to be platform and language-independent by supporting e.g. embedded Java, C, C++ and Python. The question is if it is feasible to use Maven for all

Re: Maven for Non-Java Projects

2009-08-10 Thread David Hoffer
We are currently using it for flex in addition to java, for flex the builds work fine the only negative is the plugins that allow direct IDE integration are not as complete as they are for Java. Regarding C/C++ I have tried to use this in the past, I think I was using the nar plugin but can't be

maven-war-plugin - single jar in /WEB-INB/lib?

2009-08-10 Thread Comerford, Sean
I have a Maven 2.0.9 webapp build that uses the WAR plugin. My pom lists just a single dependency foo version 2.0. But when the plugin builds my WAR, the WEB-INF/lib directory contains all of the different jars that constitute the foo dependency. Is there a way to have JUST foo-2.0.jar show in

Build Works on my machine. Not on build (maven-antrun-plugin)

2009-08-10 Thread David Weintraub
I have a multi-module build that depends upon the maven-antrun-plugin. This module has to take a zip file and unzip it to a particular directory inside the war. It's pretty straight forward, and it works fine on my machine. Unfortunately, on our build system, the same build structure on the same

Re: maven-war-plugin - single jar in /WEB-INB/lib?

2009-08-10 Thread Heinrich Nirschl
On Mon, Aug 10, 2009 at 5:01 PM, Comerford, Seansean.comerf...@espn3.com wrote: I have a Maven 2.0.9 webapp build that uses the WAR plugin. Is there a way to have JUST foo-2.0.jar show in WEB-INF/lib instead of all the other jars? Yes, have a look at the packagingExclude and packagingInclude

Re: maven-war-plugin - single jar in /WEB-INB/lib?

2009-08-10 Thread Comerford, Sean
Sorry. I¹m didn¹t ask the question properly. Let me re-phrase: Artifact foo has a shade plugin based build that generates a single ³with-dependencies² jar containing all classes and dependent classes. I want that single jar (foo-2.0-with-dependencies.jar) to be placed in my WAR artifact¹s

Re: maven-war-plugin - single jar in /WEB-INB/lib?

2009-08-10 Thread Mick Knutson
scopeprovided/scope --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental:

maven deploy plugin

2009-08-10 Thread huser
Hi, I want to deploy a project POM file only. I added maven-deploy plugin as follows. When I run mvn dpeloy:deploy-file It still complains about missing modules directories. I dont want to build the modules. I want to generate the pom file only. How can I do this ? parent

Re: Build Works on my machine. Not on build (maven-antrun-plugin)

2009-08-10 Thread David Weintraub
I updated Maven on the build system to Maven 2.2.0, and that seemed to take care of this issue. The antrun tasks are running. On Mon, Aug 10, 2009 at 12:11 PM, David Weintraub qazw...@gmail.com wrote: I have a multi-module build that depends upon the maven-antrun-plugin. This module has to

Profile Activation Help?

2009-08-10 Thread David C. Hicks
I'm trying to get a profile to activate for my parent project but not for the children. Unfortunately, the children inherit from the parent to get dependency information. So, they also inherit everything else. My solution (or so I thought) was to use the project.artifactId property in my

Removing signed data from jar via maven-shade-plugin

2009-08-10 Thread Vitaliy Morarian
I'm using maven-shade-plugin to make executable JAR. But, some of artifacts are signed, and this is causes an exception Exception in thread main java.lang.SecurityException: Invalid signature file digest for Manifest main attributes So, how can I configure plugin for removing of such data?

RE: Profile Activation Help?

2009-08-10 Thread Jonathan Woods
${project.artifactId} might help. Jon -Original Message- From: David C. Hicks [mailto:dhi...@i-hicks.org] Sent: 10 August 2009 18:12 To: Maven Users Subject: Profile Activation Help? I'm trying to get a profile to activate for my parent project but not for the children.

Re: Profile Activation Help?

2009-08-10 Thread David C. Hicks
That would substitute the actual name of the artifact in the name tag, though, wouldn't it? Jonathan Woods wrote: ${project.artifactId} might help. Jon -Original Message- From: David C. Hicks [mailto:dhi...@i-hicks.org] Sent: 10 August 2009 18:12 To: Maven Users Subject:

Re: Debugging/releasing problems with multi-module projects/maven dependencies

2009-08-10 Thread Zac Thompson
I think it's probably a you issue. You refer to the top-level POM as the parent, and it may well be so, but as such it has nothing to do with the structure of the project or the relationship between the children (aside from dependencyManagement). As far as the multi-module nature is concerned,

Exclude web.xml from war packaging

2009-08-10 Thread Arun Gupta
I'd like to exclude web.xml from WAR packaging and tried packagingExcludesWEB-INF/*.xml/packagingExcludes and webResources resource directorysrc/directory excludes

RE: Exclude web.xml from war packaging

2009-08-10 Thread Martin Gainty
if web.xml is excluded from war to be deployed where would the container read the configuration servlet-mapping,welcome-file ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist

Dependency Scope Usage: Request for some precision

2009-08-10 Thread houzecl
Usage of dependency scope is critical for project build, and I'd like to make sure that I can use scopeimport/scope in a valid way. Maven site documentation states (http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope): import (only available

Re: Maven Webstart Plugin - unprocessed POM in WAR

2009-08-10 Thread bwarren
Yes I don't need the POM, just the dependencies. Jerome Lacoste-2 wrote: On Thu, Aug 6, 2009 at 2:57 AM, bwarrenbrad.war...@usairways.com wrote: I have a Webstart application that I'm generating a WAR file to deploy on JBoss using the Maven Webstart plugin. I have included the JBoss

RE: Exclude web.xml from war packaging

2009-08-10 Thread arungupta
Servlet 3.0 makes the web.xml completely optional and all of that information can be specified using annotations in the Servlet itself. I'm trying a Wicket sample and manually copy all the filter registration from web.xml to META-INF/web-fragment.xml of wicket-1.4.0.jar and then remove web.xml.

Re: Profile Activation Help?

2009-08-10 Thread David C. Hicks
I must have been blind when reading through my MDG last night. I found what I believe will be my solution. activation file existssrc/changes/changes.xml/exists /file /activation Since this is the only module that will have a changes.xml file, this should do the

Re: Profile Activation Help?

2009-08-10 Thread David C. Hicks
I take it back. That doesn't help me, either. I guess once the profile has been activated at the parent POM level, it stays that way for all the children. David C. Hicks wrote: I must have been blind when reading through my MDG last night. I found what I believe will be my solution.

RE: Exclude web.xml from war packaging

2009-08-10 Thread Edelson, Justin
I think you need to set failOnMissingWebXml to false in the plugin configuration. See http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#failOnMissingWebXml Justin -Original Message- From: arungupta [mailto:arun.gu...@gmail.com] Sent: Monday, August 10, 2009 2:15 PM To:

RE: Exclude web.xml from war packaging

2009-08-10 Thread arungupta
Thanks, just figured that out. Here is the exact fragment in case folks are wondering: configuration failOnMissingWebXmlfalse/failOnMissingWebXml /configuration -Arun justinedelson wrote: I think you need to set failOnMissingWebXml to

Re: maven-war-plugin - single jar in /WEB-INB/lib?

2009-08-10 Thread Comerford, Sean
Let me try to clarify again: We¹re currently using the shade plugin to generate a single, uber foo.jar containing all of foo¹s classses as well as the class files of ALL dependencies. I want to apply that same idea to my my Maven war build as far as the stuff going into /WEB-INF/lib That is,

Re: Profile Activation Help?

2009-08-10 Thread Stephen Connolly
Just define all the _*plugins*_ in your profile as inheritedfalse/inherited 2009/8/10 David C. Hicks dhi...@i-hicks.org I take it back. That doesn't help me, either. I guess once the profile has been activated at the parent POM level, it stays that way for all the children. David C. Hicks

Re: Maven Webstart Plugin - unprocessed POM in WAR

2009-08-10 Thread Jerome Lacoste
On Mon, Aug 10, 2009 at 8:12 PM, bwarrenbrad.war...@usairways.com wrote: Yes I don't need the POM, just the dependencies. Mmmm the code is supposed to only copy the artifacts of type jar or ejb-client String type = artifact.getType(); if ( jar.equals( type ) ||

Re: Profile Activation Help?

2009-08-10 Thread David C. Hicks
Hi Stephen, I tried that, but it didn't seem to work. The plugin still tried to execute for the sub-modules. I ended up punting. I run my changes:announcement-mail goal in a completely separate Maven run after my build is completed, but I give it the -N switch to keep it from running child

Re: Maven Webstart Plugin - unprocessed POM in WAR

2009-08-10 Thread bwarren
Just put some skeleton stuff around the 2 POM snippets in the original email and you should have it. I'm not sitting around and waiting or anything, it's more of an FYI. If I get a chance I'll try to cook one up. I decided I didn't want the whole world that comes with the JBoss client POM

Re: Profile Activation Help?

2009-08-10 Thread Benson Margulies
You may be walking into a trap in a multi-module project. It is my strong impression that activation decisions are not made module-by-module in the reactor, but only once. When I tried what you tried I found that, since the top-level project with the modules in it didn't have the file, the profile

Re: Maven for Non-Java Projects

2009-08-10 Thread Brett Randall
On Mon, Aug 10, 2009 at 10:50 PM, David Hoffer dhoff...@gmail.com wrote: We are currently using it for flex in addition to java, for flex the builds work fine the only negative is the plugins that allow direct IDE integration are not as complete as they are for Java. Regarding C/C++ I have

Re: Profile Activation Help?

2009-08-10 Thread David C. Hicks
Then my experience, I would say, confirms that for both of us. My file *is* in the top-level, and I found that the profile was activated for all modules. I had arrived at the same conclusion that they are evaluated once, at the start of execution. Benson Margulies wrote: You may be walking

Re: maven-war-plugin - single jar in /WEB-INB/lib?

2009-08-10 Thread Wayne Fay
We¹re currently using the shade plugin to generate a single, uber foo.jar containing all of foo¹s classses as well as the class files of ALL dependencies. Assuming you've installed the foo-2.0-with-dependencies.jar file to your repo, you should be able to depend on: groupId: ?? artifactId: foo