Re: How to bundle the dependant jars with in the lib folder of war module?

2009-04-22 Thread Kyle Bober
Try these two links -

http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html
http://docs.codehaus.org/display/MAVENUSER/Solving+the+Skinny+Wars+problem

-Kyle

On Tue, Apr 21, 2009 at 11:39 PM, RaviPotnuru ravi_mai...@yahoo.co.inwrote:


 I have an EAR project for which the poms were already written, now i want
 jars to be bundled with war modules lib folder and those shouldn't be part
 of the EAR module, can some one please help me in this regard. Briefly I
 want all my dependancies should be bundled with in the war and they
 shouldn,t be at ear level. Your help in this regard is greatly
 appreciated... thank you.
 --
 View this message in context:
 http://www.nabble.com/How-to-bundle-the-dependant-jars-with-in-the-lib-folder-of-war-module--tp23169133p23169133.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




-- 
-Act as if it were impossible to fail


EJB Client JAR - Overriding default exclusions

2009-04-09 Thread Kyle Bober
I have a project which I am converting from ANT to Maven. One of the
artifacts is an EJB project. I am trying to create the ejb-client jar
artifact and it is excluding some of my class files due to the default
exclusion **/*Bean.class set on the maven-ejb-pluign. At the current time I
can not refactor the Class name due to some poor designed. Is there a way to
turn off the default exclusions. I tried the following ::

clientIncludes
  clientInclude**/SomeBean.class/clientInclude
/clientIncludes

But since exclusion have higher priority and there are default exclusions it
will not add the class to the ejb-client jar file.

-Kyle


Re: EJB Client JAR - Overriding default exclusions

2009-04-09 Thread Kyle Bober
Ignore this post. I just answered my own problem. I needed also include a
clientExcludes element to override the default exclusions ::

clientExcludes
 clientExclude**/*CMP.class/clientExclude
 clientExclude**/*Session.class/clientExclude
 clientExclude**/package.html/clientExclude
 /clientExcludes

This override the default exclusion **/*Bean.class but keeps the others.

-Kyle

On Thu, Apr 9, 2009 at 1:03 PM, Kyle Bober kyle.bo...@gmail.com wrote:

 I have a project which I am converting from ANT to Maven. One of the
 artifacts is an EJB project. I am trying to create the ejb-client jar
 artifact and it is excluding some of my class files due to the default
 exclusion **/*Bean.class set on the maven-ejb-pluign. At the current time I
 can not refactor the Class name due to some poor designed. Is there a way to
 turn off the default exclusions. I tried the following ::

 clientIncludes
   clientInclude**/SomeBean.class/clientInclude
 /clientIncludes

 But since exclusion have higher priority and there are default exclusions
 it will not add the class to the ejb-client jar file.

 -Kyle





-- 
-Act as if it were impossible to fail


Re: Packaging of provided Dependencie in war

2009-04-08 Thread Kyle Bober
That should work the way you have it configured. Did you run the clean goal
after you changed the dependency scope to provided. This will make sure that
a previous build that may have contained the dependencies is completely
removed.

-Kyle

On Wed, Apr 8, 2009 at 5:22 AM, Robert Einsle rob...@einsle.de wrote:

  Hy List,

 i've configured dependencies (libraries) als Scope provided, and would
 aspect they are not packed to the destination war-File.

 --- cut ---
 dependency
   groupIdjavax.servlet/groupId
   artifactIdservlet-api/artifactId
   version2.2/version
   scopeprovided/scope
 /dependency
 dependency
   groupIdjavax.mail/groupId
   artifactIdmail/artifactId
   version1.4/version
   scopeprovided/scope
 /dependency
 dependency
   groupIdjavax.activation/groupId
   artifactIdactivation/artifactId
   version1.1/version
   scopeprovided/scope
 /dependency
 --- cut ---

 but these 3 Libraries are in my destination war-File.



 How can i configure this Dependencies in right way that they are provided
 for compile, but are not in my destination war-File??

 Thanks a lot.

 Robert




-- 
-Act as if it were impossible to fail


Re: Packaging of provided Dependencie in war

2009-04-08 Thread Kyle Bober
Restarting you development environment will not remove the maven target
directory and artifacts. Try running the following Maven command 'mvn clean
package'  and check the contents of the
target/war_file_directory/WEB-INF/lib

-Kyle

On Wed, Apr 8, 2009 at 9:27 AM, Robert Einsle rob...@einsle.de wrote:

 Hy,

 i think i run it several times, incl restart of my Developementenvironment.

 Robert

 Kyle Bober schrieb:
  That should work the way you have it configured. Did you run the clean
  goal after you changed the dependency scope to provided. This will
  make sure that a previous build that may have contained the
  dependencies is completely removed.
 
  -Kyle
 
  On Wed, Apr 8, 2009 at 5:22 AM, Robert Einsle rob...@einsle.de
  mailto:rob...@einsle.de wrote:
 
  Hy List,
 
  i've configured dependencies (libraries) als Scope provided, and
  would aspect they are not packed to the destination war-File.
 
  --- cut ---
  dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.2/version
scopeprovided/scope
  /dependency
  dependency
groupIdjavax.mail/groupId
artifactIdmail/artifactId
version1.4/version
scopeprovided/scope
  /dependency
  dependency
groupIdjavax.activation/groupId
artifactIdactivation/artifactId
version1.1/version
scopeprovided/scope
  /dependency
  --- cut ---
 
  but these 3 Libraries are in my destination war-File.
 
 
 
  How can i configure this Dependencies in right way that they are
  provided for compile, but are not in my destination war-File??
 
  Thanks a lot.
 
  Robert
 
 
 
 
  --
  -Act as if it were impossible to fail




-- 
-Act as if it were impossible to fail


Re: Looking for a Maven report

2009-04-08 Thread Kyle Bober
Just noticed there is a plugin maven-overview-pluing at
http://code.google.com/p/maven-overview-plugin/ Looks like it creates a
graphic report of the dependencies. Not sure if it supports the version
numbers yet. Also, the m2Eclipse plugin has a nice view that shows the
dependency graph of artifacts for a module.

-Kyle

On Wed, Apr 8, 2009 at 12:20 PM, solo1970
sonia.lodoviche...@ericsson.comwrote:


 Hello everyone,

 I am looking for a reposrt that could provide me with the following
 functionality:
 -In a multimodule project, list all the artifacts of the project with
 their
 version
 -Be able to filter that list based on classifier, groupId,

 Anything of the sort out there???

 Sonia
 --
 View this message in context:
 http://www.nabble.com/Looking-for-a-Maven-report-tp22954236p22954236.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




-- 
-Act as if it were impossible to fail