[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 version in your project's plugin
configuration:

 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdjboss-packaging-maven-plugin/artifactId
   version2.1/version
 /plugin

A comprehensive list of changes is attached at the end of this mail.

Regards,

The Mojo team.


Release Notes - Maven 2.x JBoss Packaging Plugin - Version 2.1

** Bug
  * [MJBOSSPACK-17] - deploymentDescriptorFile option needs to be explicitly set

** Improvement
  * [MJBOSSPACK-25] - Add archiver mappings for each type
  * [MJBOSSPACK-26] - Create an example in the site docs about how to create a 
sar using the assembly plugin


** New Feature
  * [MJBOSSPACK-19] - Create a Par archive for deployable jbpm processes








-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 ..
http://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files
has some egs for including reference in properties file .

Thanks
Saritha SV

On Thu, Aug 6, 2009 at 3:56 PM, Xenofon Papadopoulos xpa...@gmail.comwrote:

 I have already seen the file. However I understood enable not to ask as
 an
 option, whose behavior would be something like:

 Define value for context-root [default-value]:

 I guess 'enable not to ask' means 'enforce not to ask' :)

 Also what about the substitution? Is it impossible to have access to the
 default properties (${artifactId} etc) or previous defined properties in
 subsequent defaultValue ?


 On Thu, Aug 6, 2009 at 12:04 PM, Saritha SV saritha.ma...@gmail.com
 wrote:

  Please see configurations used in archetype-metadata.xml in :
 
 
 http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-metadata.html
 
  When  additional properties are defined that must be valued before the
 file
  generation. The additional properties can be provided with default
 values,
  which enable not to ask the user for there values.
 
  So here the value for context-root will not be asked since a default
 value
  is provided ..
 
  Thanks
  Saritha SV
 
 
 
  On Thu, Aug 6, 2009 at 12:06 PM, Xenofon Papadopoulos xpa...@gmail.com
  wrote:
 
   Hello, I'm using trying to create an archetype, and I want to use some
   properties. However defaultValue doesn't reference the included
  property
   if it's already define, as I thought would be the norm. Here's an
  example:
  
   ?xml version=1.0 encoding=UTF-8?
   archetype-descriptor name=basic
fileSets
  [...]
/fileSets
  
requiredProperties
  requiredProperty key=earname/
  requiredProperty key=context-root
defaultValue${earname}/defaultValue
  /requiredProperty
/requiredProperties
   /archetype-descriptor
  
   When I generate this project, I am asked for earname, but never for
   context-root, and inside my project files ${context-root} will explode
 to
   the ${earname} literal.
   Any ideas?
  
 



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 projects?
I found the maven-native-plugin and maven-nar-plugin but I'm not really 
sure if it supports everything that's needed. We are looking for a 
server-based central repository maintaining different projects and 
libraries in various languages.

Can anybody who uses or used any of these or other plug-ins to support 
non-Java projects please respond with some comments, hints, suggestions, 
pro and cons etc. that might be helpful?

Thanks a lot!

Jan

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 sure.  There were a couple of road-blocking
bugs/missing-features that prevented us from using maven for these types of
projects.  If I recall correctly the issues were that it did not have
support for the new universal OSX binaries and on Windows you couldn't
specify the compiler version.  I.e. it would use whatever MSVC version it
found on the system, and we had to support multiple versions (this is
probably true on other platforms as well).  You could probably modify the
plugins when you find issues like these but I didn't go down that path.
(This was a couple+ years ago so if these are kept current they may be fixed
by now.)

-Dave

On Mon, Aug 10, 2009 at 5:58 AM, Jan Wedel jan.we...@ettex.de wrote:

 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 projects?
 I found the maven-native-plugin and maven-nar-plugin but I'm not really
 sure if it supports everything that's needed. We are looking for a
 server-based central repository maintaining different projects and
 libraries in various languages.

 Can anybody who uses or used any of these or other plug-ins to support
 non-Java projects please respond with some comments, hints, suggestions,
 pro and cons etc. that might be helpful?

 Thanks a lot!

 Jan

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 WEB-INF/lib instead of all
the other jars?

-- 
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454Cell: 860.951.6973



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
source code doesn't unzip the zipfile to the needed directory. As far as I
can tell, it does nothing.

There are several differences on the build machine and mine which might make
a difference. I am running Maven 2.1.0 while my build system is running
Maven 2.0.8. I am also using Subversion 1.6 while the build machine uses
1.3. My version of Ant is 1.7.1 while the build machine's version of Ant is
1.7.

Any idea what the issue could be?

-- 
David Weintraub
qazw...@gmail.com


pom.xml.tar.gz
Description: GNU Zip compressed data

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

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 parameters in
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

But I do not understand why you would like to have this.

- Henry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 WEB-INF/lib folder.

Is that possible (other than doing something manual like unpack)?

Thanks,
Sean

On 8/10/09 12:18 PM, Heinrich Nirschl heinrich.nirs...@gmail.com wrote:

 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 parameters in
 http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
 
 But I do not understand why you would like to have this.
 
 - Henry
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 

-- 
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454Cell: 860.951.6973



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: http://tahoe.baselogic.com
---



On Mon, Aug 10, 2009 at 12:18 PM, Heinrich Nirschl 
heinrich.nirs...@gmail.com wrote:

 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 parameters in
 http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

 But I do not understand why you would like to have this.

 - Henry

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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

groupIdcom.abc/groupId
artifactIdabc-parent/artifactId
version2.4/version
/parent
groupIdcom.abc.t3/groupId
artifactIdt3/artifactId
version1.1/version
packagingpom/packaging
nameABC T3 /name
build

plugins

plugin
groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-deploy-plugin/artifactId
   version2.4/version
/plugin
/plugins

/build

-- 
View this message in context: 
http://www.nabble.com/maven-deploy-plugin-tp24902976p24902976.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 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
 source code doesn't unzip the zipfile to the needed directory. As far as I
 can tell, it does nothing.

 There are several differences on the build machine and mine which might
 make a difference. I am running Maven 2.1.0 while my build system is running
 Maven 2.0.8. I am also using Subversion 1.6 while the build machine uses
 1.3. My version of Ant is 1.7.1 while the build machine's version of Ant is
 1.7.

 Any idea what the issue could be?

 --
 David Weintraub
 qazw...@gmail.com




-- 
David Weintraub
qazw...@gmail.com


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 activation section...

activation
activeByDefaultfalse/activeByDefault
property
nameproject.artifactId/name
valuesalient/value
/property
/activation

Since only the parent project has this artifact Id, I assumed that it
would activate only for the parent.  However, there was no activation of
this profile at all.

My overall goal is to try to get the maven-changes-plugin to do an
announcement email using changes.xml in the parent project.  I do not
want announcements for all of the children, though.

Any help?
Thanks,
Dave


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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? I've tried to use
in filters exclude, but it doesn't help. Looks like I missing something
important

filter

artifact*:*/artifact

excludes

excludeMETA-INF/eclipse.sf/exclude

excludeMETA-INF/eclipse.rsa/exclude

excludeMETA-INF/eclipse.inf/exclude

/excludes

/filter

 

 



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.  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 activation section...
 
 activation
 activeByDefaultfalse/activeByDefault
 property
 nameproject.artifactId/name
 valuesalient/value
 /property
 /activation
 
 Since only the parent project has this artifact Id, I assumed 
 that it would activate only for the parent.  However, there 
 was no activation of this profile at all.
 
 My overall goal is to try to get the maven-changes-plugin to 
 do an announcement email using changes.xml in the parent 
 project.  I do not want announcements for all of the children, though.
 
 Any help?
 Thanks,
 Dave
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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: Profile Activation Help?

 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 activation section...

 activation
 activeByDefaultfalse/activeByDefault
 property
 nameproject.artifactId/name
 valuesalient/value
 /property
 /activation

 Since only the parent project has this artifact Id, I assumed 
 that it would activate only for the parent.  However, there 
 was no activation of this profile at all.

 My overall goal is to try to get the maven-changes-plugin to 
 do an announcement email using changes.xml in the parent 
 project.  I do not want announcements for all of the children, though.

 Any help?
 Thanks,
 Dave


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

 


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

   

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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, the more significant role of that
POM is as an *aggregator*.  As such, it is merely a convenient
container for the following *independent* components (I added the
SNAPSHOT part, assuming it is correct):

a 1.2-SNAPSHOT
b 1.3-SNAPSHOT - a 1.1
c 1.1-SNAPSHOT - b 1.2

I call them independent because they are completely discrete sets of
versions.  I think you should pay close attention to what is happening
when you start your code for debugging ... I would suspect you are
starting an object method that lives in the 'c' project, which
probably means that it is using the older jars at runtime; the
development code you are writing for the 'b' and 'a' SNAPSHOT versions
is probably not getting used at all.  The fact that later versions of
'a' and 'b' exist is irrelevant to the project ('c') that you are
working with.  'c' depends on 'b 1.2', and that is the version of code
that your IDE finds for you.

As for the release step, you seem to want to be developing based on
the latest version of the dependencies, but still allow yourself the
option of releasing updates that are dependent on the older versions.
How did you plan to manage this?  Think about how the code will be
used after deployment, not just how you are using it during
development.

Zac

On Wed, Jul 29, 2009 at 10:29 PM, Mark Derricuttm...@talios.com wrote:
...
 We have a multi-module project, and when single stepping through code,
 or clicking through stack traces IDEA insists on sending the editor to
 .java files inside -sources.jars rather than the versions currently in
 the project.  From what I can tell, the problem lines in that our poms
 currently look like:

 - parent
   - module a v 1.2
   - module b v 1.3
     - depends on a v 1.1
   - module c v 1.1
     - depends on b v 1.2
...
 Initially I changed our parent pom to include a dependencyManagement
 section, pinning all the versions of each module which worked for
 debugging/strack-trace clicking, as the project only knows about b:1.3
 - however, this means we can no longer do a maven release of b, if the
 parent pom currently refers to a SNAPSHOT of a or c, and we end up
 putting version elements back in our module poms.
...

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
exclude**/*.xml/exclude
/excludes
/resource
/webResources

but Maven seems to complain:

Caused by: org.apache.maven.plugin.MojoExecutionException: Error
assembling WAR: Deployment descriptor:
/Users/arungupta/samples/running/helloworld/target/helloworld-1.0-SNAPSHOT/WEB-INF/web.xml
does not exist.
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:146)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more

Any idea on how can I exclude web.xml from WAR packaging ?

-Arun

-- 
Need Application Server ? - Download glassfish.org
Blog: http://blogs.sun.com/arungupta

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Mon, 10 Aug 2009 10:50:01 -0700
 Subject: Exclude web.xml from war packaging
 From: arun.gu...@gmail.com
 To: users@maven.apache.org
 
 I'd like to exclude web.xml from WAR packaging and tried
 
 packagingExcludesWEB-INF/*.xml/packagingExcludes
 
 and
 
 webResources
 resource
 directorysrc/directory
 excludes
 exclude**/*.xml/exclude
 /excludes
 /resource
 /webResources
 
 but Maven seems to complain:
 
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 assembling WAR: Deployment descriptor:
 /Users/arungupta/samples/running/helloworld/target/helloworld-1.0-SNAPSHOT/WEB-INF/web.xml
 does not exist.
 at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:146)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
 ... 16 more
 
 Any idea on how can I exclude web.xml from WAR packaging ?
 
 -Arun
 
 -- 
 Need Application Server ? - Download glassfish.org
 Blog: http://blogs.sun.com/arungupta
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

_
Get free photo software from Windows Live
http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009

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 in Maven 2.0.9 or later)
This scope is only used on a dependency of type pom in the
dependencyManagement section. It indicates that the specified POM should
be replaced with the dependencies in that POM's dependencyManagement
section. 

However Maven does not prevent to build a project with a pom contains
something like this, outside of the dependencyManagement section:

dependencies

dependency
artifactIdpom_my_libraries/artifactId
groupIdcompany.libraries/groupId
typepom/type
versionx.y.z-SNAPSHOT/version
scopeimport/scope
/dependency

The result is very different from inserting such a dependency within the 
dependencyManagement section. One should think that all dependencies
specified in the imported pom would be inserted as is 
However, it does not seem to be the case: e.g. most of the compile
dependencies turn to runtime. The rules that affect transitive
dependencies does not seem to apply here.

Therefore my questions are:

1) is it valid to use scope import outside of the dependencyManagement
section ?

and if yes:

2) what are the rules applied on imported dependencies scopes in that case ?

Thanks,

Christian-Luc
-- 
View this message in context: 
http://www.nabble.com/Dependency-Scope-Usage%3A-Request-for-some-precision-tp24904584p24904584.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 client POM in my application POM to grab the
 JBoss
 client dependencies for JNDI and EJB.  When the plugin creates the WAR
 file,
 it is including the POM with unprocessed_ prepended to the file name.
  The
 plugin is also putting the POM in as a jar dependency in the JNLP file.

 So when the JNLP download servlet goes to pull the JAR dependencies for
 my
 webstart application, it tries to grab the POM, which has been renamed,
 and
 fails.  Does anyone know why that file is getting renamed?  I saw some
 emails about JARs getting unprocessed stuck in the name when signing is
 turned off.  It appears that the plugin isn't designed for POM
 dependencies.

 Here's the JBoss client dependency in my webstart application's POM:

    dependency
      groupIdorg.jboss.jbossas/groupId
      artifactIdjboss-as-client/artifactId
      version5.0.1.GA/version
      scopecompile/scope
      typepom/type
    /dependency

 I included that POM because it has dependencies to the client JARs I need
 to
 call over to JBoss.  Reference -
 https://jira.jboss.org/jira/browse/JBAS-6320

 Here's the webstart plugin config from my WAR POM:

    plugins
      plugin
        groupIdorg.codehaus.mojo.webstart/groupId
        artifactIdwebstart-maven-plugin/artifactId
        executions
          execution
            phaseprocess-resources/phase
            goals
              goaljnlp-download-servlet/goal
            /goals
          /execution
        /executions
        configuration
          outputDirectoryNameapplication/outputDirectoryName
          outputFilenamelaunch.jnlp/outputFilename
          jnlpFiles
            jnlpFile
              templateFilenamejnlp-template.vm/templateFilename
              jarResources
                jarResource
                  groupIdcom.usairways.cbro/groupId
                  artifactIdreal-time-departure-swing/artifactId
                  version1.0.0.a2/version
                  mainClasscom.usairways.cbro.rtd.swing.Main/mainClass
                /jarResource
              /jarResources
            /jnlpFile
          /jnlpFiles
        /configuration
      /plugin
    /plugins

 How can I get it to not rename the jboss-as-client POM to
 unprocessed_jboss-as-client?  Or alternatively, how do I keep it from
 adding
 the jboss-as-client POM as a JAR dependency in the JNLP, but keep the
 transitive dependencies of the jboss-as-client POM in there?
 
 If the POM file isn't added to the target directory but the transitive
 dependencies added, that should fix it for you, right ?
 
 Jerome
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-Webstart-Plugin---unprocessed-POM-in-WAR-tp24838690p24904634.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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.
GlassFish v3 (which is Servlet 3.0 compliant) seems to handle it fine.

Just trying to understand if all of this can be automated using the default
pom.xml generated by the Wicket quickstart.

-Arun


mgainty wrote:
 
 
 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 vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
 destinataire prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
 copie de ceci est interdite. Ce message sert à l'information seulement et
 n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
 les email peuvent facilement être sujets à la manipulation, nous ne
 pouvons accepter aucune responsabilité pour le contenu fourni.
 
 
 
 
 Date: Mon, 10 Aug 2009 10:50:01 -0700
 Subject: Exclude web.xml from war packaging
 From: arun.gu...@gmail.com
 To: users@maven.apache.org
 
 I'd like to exclude web.xml from WAR packaging and tried
 
 packagingExcludesWEB-INF/*.xml/packagingExcludes
 
 and
 
 webResources
 resource
 directorysrc/directory
 excludes
 exclude**/*.xml/exclude
 /excludes
 /resource
 /webResources
 
 but Maven seems to complain:
 
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 assembling WAR: Deployment descriptor:
 /Users/arungupta/samples/running/helloworld/target/helloworld-1.0-SNAPSHOT/WEB-INF/web.xml
 does not exist.
 at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:146)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
 ... 16 more
 
 Any idea on how can I exclude web.xml from WAR packaging ?
 
 -Arun
 
 -- 
 Need Application Server ? - Download glassfish.org
 Blog: http://blogs.sun.com/arungupta
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 _
 Get free photo software from Windows Live
 http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009
 

-- 
View this message in context: 
http://www.nabble.com/Exclude-%22web.xml%22-from-war-packaging-tp24904301p24904690.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 trick for me.  I thought I'd share what I found for posterity.
Dave

David C. Hicks wrote:
 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 activation section...

 activation
 activeByDefaultfalse/activeByDefault
 property
 nameproject.artifactId/name
 valuesalient/value
 /property
 /activation

 Since only the parent project has this artifact Id, I assumed that it
 would activate only for the parent.  However, there was no activation of
 this profile at all.

 My overall goal is to try to get the maven-changes-plugin to do an
 announcement email using changes.xml in the parent project.  I do not
 want announcements for all of the children, though.

 Any help?
 Thanks,
 Dave

   

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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.

 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 trick for me.  I thought I'd share what I found for posterity.
 Dave

 David C. Hicks wrote:
   
 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 activation section...

 activation
 activeByDefaultfalse/activeByDefault
 property
 nameproject.artifactId/name
 valuesalient/value
 /property
 /activation

 Since only the parent project has this artifact Id, I assumed that it
 would activate only for the parent.  However, there was no activation of
 this profile at all.

 My overall goal is to try to get the maven-changes-plugin to do an
 announcement email using changes.xml in the parent project.  I do not
 want announcements for all of the children, though.

 Any help?
 Thanks,
 Dave

   
 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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: users@maven.apache.org
Subject: RE: Exclude web.xml from war packaging


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.
GlassFish v3 (which is Servlet 3.0 compliant) seems to handle it fine.

Just trying to understand if all of this can be automated using the default 
pom.xml generated by the Wicket quickstart.

-Arun


mgainty wrote:
 
 
 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 vertraulich. Sollten Sie nicht der vorgesehene 
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede 
 unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. 
 Diese Nachricht dient lediglich dem Austausch von Informationen und 
 entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten 
 Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt 
 uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes 
 pas le destinataire prévu, nous te demandons avec bonté que pour 
 satisfaire informez l'expéditeur. N'importe quelle diffusion non 
 autorisée ou la copie de ceci est interdite. Ce message sert à 
 l'information seulement et n'aura pas n'importe quel effet légalement 
 obligatoire. Étant donné que les email peuvent facilement être sujets 
 à la manipulation, nous ne pouvons accepter aucune responsabilité pour le 
 contenu fourni.
 
 
 
 
 Date: Mon, 10 Aug 2009 10:50:01 -0700
 Subject: Exclude web.xml from war packaging
 From: arun.gu...@gmail.com
 To: users@maven.apache.org
 
 I'd like to exclude web.xml from WAR packaging and tried
 
 packagingExcludesWEB-INF/*.xml/packagingExcludes
 
 and
 
 webResources
 resource
 directorysrc/directory
 excludes
 exclude**/*.xml/exclude
 /excludes
 /resource
 /webResources
 
 but Maven seems to complain:
 
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error 
 assembling WAR: Deployment descriptor:
 /Users/arungupta/samples/running/helloworld/target/helloworld-1.0-SNA
 PSHOT/WEB-INF/web.xml
 does not exist.
 at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:146)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
 ... 16 more
 
 Any idea on how can I exclude web.xml from WAR packaging ?
 
 -Arun
 
 --
 Need Application Server ? - Download glassfish.org
 Blog: http://blogs.sun.com/arungupta
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 _
 Get free photo software from Windows Live
 http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:W
 L:en-US:SI_PH_software:082009
 

--
View this message in context: 
http://www.nabble.com/Exclude-%22web.xml%22-from-war-packaging-tp24904301p24904690.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 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: users@maven.apache.org
 Subject: RE: Exclude web.xml from war packaging
 
 
 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.
 GlassFish v3 (which is Servlet 3.0 compliant) seems to handle it fine.
 
 Just trying to understand if all of this can be automated using the
 default pom.xml generated by the Wicket quickstart.
 
 -Arun
 
 
 mgainty wrote:
 
 
 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 vertraulich. Sollten Sie nicht der vorgesehene 
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede 
 unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. 
 Diese Nachricht dient lediglich dem Austausch von Informationen und 
 entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten 
 Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt
 uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes 
 pas le destinataire prévu, nous te demandons avec bonté que pour 
 satisfaire informez l'expéditeur. N'importe quelle diffusion non 
 autorisée ou la copie de ceci est interdite. Ce message sert à 
 l'information seulement et n'aura pas n'importe quel effet légalement 
 obligatoire. Étant donné que les email peuvent facilement être sujets 
 à la manipulation, nous ne pouvons accepter aucune responsabilité pour le
 contenu fourni.
 
 
 
 
 Date: Mon, 10 Aug 2009 10:50:01 -0700
 Subject: Exclude web.xml from war packaging
 From: arun.gu...@gmail.com
 To: users@maven.apache.org
 
 I'd like to exclude web.xml from WAR packaging and tried
 
 packagingExcludesWEB-INF/*.xml/packagingExcludes
 
 and
 
 webResources
 resource
 directorysrc/directory
 excludes
 exclude**/*.xml/exclude
 /excludes
 /resource
 /webResources
 
 but Maven seems to complain:
 
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error 
 assembling WAR: Deployment descriptor:
 /Users/arungupta/samples/running/helloworld/target/helloworld-1.0-SNA
 PSHOT/WEB-INF/web.xml
 does not exist.
 at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:146)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
 ... 16 more
 
 Any idea on how can I exclude web.xml from WAR packaging ?
 
 -Arun
 
 --
 Need Application Server ? - Download glassfish.org
 Blog: http://blogs.sun.com/arungupta
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 _
 Get free photo software from Windows Live
 http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:W
 L:en-US:SI_PH_software:082009
 
 
 --
 View this message in context:
 http://www.nabble.com/Exclude-%22web.xml%22-from-war-packaging-tp24904301p24904690.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Exclude-%22web.xml%22-from-war-packaging-tp24904301p24906682.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For 

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, instead of having 10 different jars (foo.jar and all of its
dependency jars) in my WAR¹s WEB-INF/lib folder, I just want it to contain
the uber foo-with-dependencies.jar artifact.

Maven¹s war plugin seems to automatically expand all dependencies and suck
in the individual jars instead.

Unless I¹m missing something, provided scope is just something that tells
Maven to exclude a dependency from the output.

I¹m actually using that (for example) on the servlet-api dependency b/c app
servers don¹t let you deploy your own copy of javax.servlet.

On 8/10/09 12:25 PM, Mick Knutson mickknut...@gmail.com wrote:

 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: http://tahoe.baselogic.com
 ---
 
 
 
 On Mon, Aug 10, 2009 at 12:18 PM, Heinrich Nirschl 
 heinrich.nirs...@gmail.com wrote:
 
  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 parameters in
  http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
 
  But I do not understand why you would like to have this.
 
  - Henry
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454Cell: 860.951.6973



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 wrote:
  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 trick for me.  I thought I'd share what I found for
 posterity.
  Dave
 
  David C. Hicks wrote:
 
  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 activation section...
 
  activation
  activeByDefaultfalse/activeByDefault
  property
  nameproject.artifactId/name
  valuesalient/value
  /property
  /activation
 
  Since only the parent project has this artifact Id, I assumed that it
  would activate only for the parent.  However, there was no activation of
  this profile at all.
 
  My overall goal is to try to get the maven-changes-plugin to do an
  announcement email using changes.xml in the parent project.  I do not
  want announcements for all of the children, though.
 
  Any help?
  Thanks,
  Dave
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 ) || ejb-client.equals( type ) )
{

cf 
webstart/webstart-maven-plugin/src/main/java/org/codehaus/mojo/webstart/AbstractJnlpMojo.java

I need more time to test this properly and I am extremely busy this
week. Are you able to provide an small test case ?

If you could write one along those found under

webstart/webstart-maven-plugin/src/it/itxxx/

jerome

PS: the webstart mojo is usualy supported on the mojo user list (cf.
mojo.codehaus.org)

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 modules.

Dave

PS - maybe there is a bug that I should write up a JIRA for?  I'm
uncomfortable doing that since I don't know for sure that I had things
configured correctly. 

Stephen Connolly wrote:
 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 wrote:
 
 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 trick for me.  I thought I'd share what I found for
   
 posterity.
 
 Dave

 David C. Hicks wrote:

   
 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 activation section...

 activation
 activeByDefaultfalse/activeByDefault
 property
 nameproject.artifactId/name
 valuesalient/value
 /property
 /activation

 Since only the parent project has this artifact Id, I assumed that it
 would activate only for the parent.  However, there was no activation of
 this profile at all.

 My overall goal is to try to get the maven-changes-plugin to do an
 announcement email using changes.xml in the parent project.  I do not
 want announcements for all of the children, though.

 Any help?
 Thanks,
 Dave



 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 

   


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
included in my webstart download anyway.  I was able to distill everything
in that POM down to 3 dependencies that I actually needed so I just
reference those directly.  My download size shrank significantly.


Jerome Lacoste-2 wrote:
 
 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 ) || ejb-client.equals( type ) )
 {
 
 cf
 webstart/webstart-maven-plugin/src/main/java/org/codehaus/mojo/webstart/AbstractJnlpMojo.java
 
 I need more time to test this properly and I am extremely busy this
 week. Are you able to provide an small test case ?
 
 If you could write one along those found under
 
 webstart/webstart-maven-plugin/src/it/itxxx/
 
 jerome
 
 PS: the webstart mojo is usualy supported on the mojo user list (cf.
 mojo.codehaus.org)
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-Webstart-Plugin---unprocessed-POM-in-WAR-tp24838690p24909428.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 was never active when running maven
from top-level.

On Mon, Aug 10, 2009 at 3:28 PM, David C. Hicksdhi...@i-hicks.org wrote:
 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 trick for me.  I thought I'd share what I found for posterity.
 Dave

 David C. Hicks wrote:
 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 activation section...

                 activation
                     activeByDefaultfalse/activeByDefault
                     property
                         nameproject.artifactId/name
                         valuesalient/value
                     /property
                 /activation

 Since only the parent project has this artifact Id, I assumed that it
 would activate only for the parent.  However, there was no activation of
 this profile at all.

 My overall goal is to try to get the maven-changes-plugin to do an
 announcement email using changes.xml in the parent project.  I do not
 want announcements for all of the children, though.

 Any help?
 Thanks,
 Dave



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 tried to use this in the past, I think I was using
 the nar plugin but can't be sure.  There were a couple of road-blocking
 bugs/missing-features that prevented us from using maven for these types of
 projects.  If I recall correctly the issues were that it did not have
 support for the new universal OSX binaries and on Windows you couldn't
 specify the compiler version.  I.e. it would use whatever MSVC version it
 found on the system, and we had to support multiple versions (this is
 probably true on other platforms as well).  You could probably modify the
 plugins when you find issues like these but I didn't go down that path.
 (This was a couple+ years ago so if these are kept current they may be
 fixed
 by now.)

 -Dave

 On Mon, Aug 10, 2009 at 5:58 AM, Jan Wedel jan.we...@ettex.de wrote:

  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 projects?
  I found the maven-native-plugin and maven-nar-plugin but I'm not really
  sure if it supports everything that's needed. We are looking for a
  server-based central repository maintaining different projects and
  libraries in various languages.
 
  Can anybody who uses or used any of these or other plug-ins to support
  non-Java projects please respond with some comments, hints, suggestions,
  pro and cons etc. that might be helpful?
 
  Thanks a lot!
 
  Jan
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 


I haven't yet had much joy with Maven-plugins for building Windows-native
DLLs from C++ using the MSVC compiler, so if anyone would like to nominate
their favorite plugin there.  native-mave-plugin seems out-of date or not
maintained for latest MSVC compiler versions?

Brett


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 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 was never active when running maven
 from top-level.

 On Mon, Aug 10, 2009 at 3:28 PM, David C. Hicksdhi...@i-hicks.org wrote:
   
 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 trick for me.  I thought I'd share what I found for posterity.
 Dave

 David C. Hicks wrote:
 
 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 activation section...

 activation
 activeByDefaultfalse/activeByDefault
 property
 nameproject.artifactId/name
 valuesalient/value
 /property
 /activation

 Since only the parent project has this artifact Id, I assumed that it
 would activate only for the parent.  However, there was no activation of
 this profile at all.

 My overall goal is to try to get the maven-changes-plugin to do an
 announcement email using changes.xml in the parent project.  I do not
 want announcements for all of the children, though.

 Any help?
 Thanks,
 Dave


   
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

   


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
version: 2.0
classifier: with-dependencies

But this whole discussion is silly IMO. Stop fighting Maven, and
follow the convention...

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org