generating multiple artifacts

2010-03-16 Thread monkeyden

I have an ejb project for which I need to generate an EJB jar (bean and
interfaces) and a client jar (containing only the interfaces).  I looked
into moduleSets using assemblies but that seems better suited for
completely different filesets/modules.  Can anyone shed some light on the
right approach?

Thanks
-- 
View this message in context: 
http://n2.nabble.com/generating-multiple-artifacts-tp4744752p4744752.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



maven-war-plugin: including jars

2009-12-01 Thread monkeyden

I am trying to include several jars into my war file's WEB-INF/lib directory. 
They are set to the default scope, which I believe is compile.  The build
runs without errors but only one is included in the resulting war.  Is there
something similar to webModule or ejbModule I should be using?  My
understanding is that intransitive dependencies would be included when their
scope is compile, and any transitive dependencies would be subject to the
rules of the table shown here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

a subset of the dependencies
dependencies
!--Axis2 Jars--  *INCLUDED CORRECTLY
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2/artifactId
version1.3/version
/dependency
dependency *NOT INCLUDED
groupIdorg.apache.ws.commons.axiom/groupId
artifactIdaxiom-api/artifactId
version1.2.5/version
/dependency

/dependencies

and the build
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.1-alpha-1/version
configuration
webResources
webResource

directory${basedir}/src/main/webapp/WEB-INF/directory
includes

includecomponents.xml/include

includepages.xml/include
/includes
targetPathWEB-INF/targetPath
filteringtrue/filtering
/webResource
/webResources
/configuration
/plugin
/plugins
/build


Thanks
-- 
View this message in context: 
http://old.nabble.com/maven-war-plugin%3A-including-jars-tp26594796p26594796.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-war-plugin: including jars

2009-12-01 Thread monkeyden

Thanks for replying (again) Wayne.  You seem to be here all the time.  :) 
Alas, it was an oversight on my part.  I had another entry with scope
provided which was overriding.  Thanks again.


Wayne Fay wrote:
 
 They are set to the default scope, which I believe is compile.  The
 build
 runs without errors but only one is included in the resulting war.  Is
 there
 
 What does mvn help:effective-pom show? There may be a parent pom or
 depMgmt section that is preventing the axiom-api artifact from landing
 in your WAR as you expect.
 
 You could also just add scopecompile/scope to the dependency
 declaration in your WAR project.
 
 Wayne
 
 -
 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://old.nabble.com/maven-war-plugin%3A-including-jars-tp26594796p26597320.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: File system repo

2009-12-01 Thread monkeyden

Hi Wayne.  I have my build working fine, it's just not including the system
scoped jars in my war's WEB-INF/lib directory.  It seems the system scope
does not include them.  Any idea how I can get them into the resulting
artifact?

Thanks, as always



Wayne Fay wrote:
 
 System scope is/soon will be deprecated.

 That really can't be true, can it?  I have found that very useful in any
 number of situations.
 
 I suppose we'd need someone from the Maven PMC to weigh in to know for
 sure... but this is my understanding. Of course, I haven't seen
 anything yet about this being removed from Maven3, so who knows about
 the timing etc.
 
 Having said that, except for VERY few situations, the system scope is
 wrong to use.
 
 Wayne
 
 -
 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://old.nabble.com/File-system-repo-tp26271810p26597393.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: File system repo

2009-12-01 Thread monkeyden

So I guess the question is, how then can you get a jar file, which is not
installed in any repository, onto the compile classpath then into your
ear/war file?


Wayne Fay wrote:
 
 Hi Wayne.  I have my build working fine, it's just not including the
 system
 scoped jars in my war's WEB-INF/lib directory.  It seems the system scope
 does not include them.  Any idea how I can get them into the resulting
 artifact?
 
 This is exactly how system scope is supposed to work -- it means this
 artifact will be provided by the system therefore Maven does not
 include them in packages it builds.
 
 Add the artifacts to your corporate repo/local repo cache, and change
 scope to compile if you need them included.
 
 As I've said before in this thread, do NOT use system scope.
 
 Wayne
 
 -
 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://old.nabble.com/File-system-repo-tp26271810p26599512.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: File system repo

2009-11-11 Thread monkeyden

I own and have read the book.  Perhaps repo is overstating what I'm trying
to do here.  I'm really just trying to pull 2 arbitrary jars into my build. 
The phrase file system repo just seemed to do what I wanted.  Apparently,
it doesn't mean what I took it to mean.  There is nothing in the book
describing how to do this, to my knowledge.


Anders Hammar wrote:
 
 I would also argue that you should read up on Maven and how it uses repos.
 It's much easier if you actually understand the core Maven stuff, than us
 telling you what to do. Less misunderstandings for one thing.
 http://www.sonatype.com/documentation/books/maven-defguide
 
 /Anders
 
 On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
 
 On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:

  These are simply directories in my maven project.  They are
  created manually and they each contain a jar file and a pom file.  If
 this
  isn't possible then what is a file system repository, if anything?  Is
 it
  just the local maven repo (in the .m2 folder)?

 A file system repo is a remote repo that happens to be on the file
 system and uses a file:// url.  It is not the same as your local repo.

 For anyone to help you figure out what's wrong, we'll need more
 details.  If you've manually created the repo, then there's a chance
 you haven't done it right and that's why it's not working.  What
 exactly is the structure and contents under the 'lib' directory?

 --
 Wendy

 -
 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://old.nabble.com/File-system-repo-tp26271810p26304294.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: File system repo

2009-11-11 Thread monkeyden

exactly what I was looking for.  thanks Adam.


Adam Leggett (UPCO) wrote:
 
 Have you considered/tried specifying the arbitrary jars as system scoped
 dependencies?
 
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
 
 On Wed, 2009-11-11 at 08:34 -0800, monkeyden wrote:
 I own and have read the book.  Perhaps repo is overstating what I'm
 trying
 to do here.  I'm really just trying to pull 2 arbitrary jars into my
 build. 
 The phrase file system repo just seemed to do what I wanted. 
 Apparently,
 it doesn't mean what I took it to mean.  There is nothing in the book
 describing how to do this, to my knowledge.
 
 
 Anders Hammar wrote:
  
  I would also argue that you should read up on Maven and how it uses
 repos.
  It's much easier if you actually understand the core Maven stuff, than
 us
  telling you what to do. Less misunderstandings for one thing.
  http://www.sonatype.com/documentation/books/maven-defguide
  
  /Anders
  
  On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
  
  On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com
 wrote:
 
   These are simply directories in my maven project.  They are
   created manually and they each contain a jar file and a pom file. 
 If
  this
   isn't possible then what is a file system repository, if anything? 
 Is
  it
   just the local maven repo (in the .m2 folder)?
 
  A file system repo is a remote repo that happens to be on the file
  system and uses a file:// url.  It is not the same as your local repo.
 
  For anyone to help you figure out what's wrong, we'll need more
  details.  If you've manually created the repo, then there's a chance
  you haven't done it right and that's why it's not working.  What
  exactly is the structure and contents under the 'lib' directory?
 
  --
  Wendy
 
  -
  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://old.nabble.com/File-system-repo-tp26271810p26309300.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: File system repo

2009-11-10 Thread monkeyden

Hi Wendy, thanks for the response.  This is the error I get for each of the 2
jars:

Error message: Missing:
--
1) com.mycompany:ProjectNextQuattro:jar:1.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
  mvn install:install-file -DgroupId=com.mycompany
-DartifactId=ProjectNextQuattro -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there: 
  mvn deploy:deploy-file -DgroupId=com.mycompany
-DartifactId=ProjectNextQuattro -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
1)
com.mycompany.ids.authenticationservice:authentication-service:war:1.0-SNAPSHOT
2) com.mycompany:ProjectNextQuattro:jar:1.0

Is there an install command for file system repos, like there is for
installation to the default local repo (~/.m2/..)?  

Thanks!


Wendy Smoak-3 wrote:
 
 On Mon, Nov 9, 2009 at 12:00 PM, monkeyden monk...@monkeyden.com wrote:
 
 I have several projects which can't be converted over to maven right now,
 mostly because of time constraints.  The artifacts of these projects will
 be
 used in a maven project.  I'd prefer not to install them into my
 repository,
 so I am trying to create a file system repository which points to a
 directory of the current (maven) project.
 
 Looks okay at a quick glance... what problem are you having?
 
 -- 
 Wendy
 
 -
 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://old.nabble.com/File-system-repo-tp26271810p26280046.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: File system repo

2009-11-10 Thread monkeyden

Right, it only refers to the default local maven repo, not this local one. 
After having added the following paths to my project:

com/mycompany/ProjectNextQuattro/1.0
com/mycompany/ProjectNextPojos/1.0

with the following dependencies:

dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextQuattro/artifactId
version1.0/version
/dependency
dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextPojos/artifactId
version1.0/version
/dependency

I get the same errors.  Any ideas?  Thanks.


Wayne Fay wrote:
 
 Is there an install command for file system repos, like there is for
 installation to the default local repo (~/.m2/..)?
 
 Did you read the error message??
 
  Alternatively, if you host your own repository you can deploy the file
 there:
  mvn deploy:deploy-file -DgroupId=com.mycompany
 -DartifactId=ProjectNextQuattro -Dversion=1.0 -Dpackaging=jar
 -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 
 How exactly to make that work with a file system repo is left to the
 reader...
 
 Wayne
 
 -
 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://old.nabble.com/File-system-repo-tp26271810p26288280.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: File system repo

2009-11-10 Thread monkeyden

As I said, for a couple different reasons, we can't convert these projects to
maven just yet.  These are simply directories in my maven project.  They are
created manually and they each contain a jar file and a pom file.  If this
isn't possible then what is a file system repository, if anything?  Is it
just the local maven repo (in the .m2 folder)?


Wendy Smoak-3 wrote:
 
 On Tue, Nov 10, 2009 at 12:01 PM, monkeyden monk...@monkeyden.com wrote:
 
 Right, it only refers to the default local maven repo, not this local
 one.
 
 As Anders pointed out, you have exactly one local repository,
 usually in ~/.m2/repository (though it can be moved.)
 
 This repo you're trying to create in the 'lib' directory is a remote
 repository as far as Maven is concerned, even though it's right there
 on disk.
 
 After having added the following paths to my project:

 com/mycompany/ProjectNextQuattro/1.0
 com/mycompany/ProjectNextPojos/1.0
 
 How did these directories get created?  Is there anything in the
 directories?
 
 You should use the 'mvn deploy:deploy-file ...' command to construct
 this remote repository.  In your case, it will be on the file system
 rather than at some url, so you'd use -Durl=file:///path/to/repo when
 deploying.
 
 If this is a multi-module project, you might have to define the repo
 at each level because ${basedir} changes for each module.
 
 If you're still having trouble, let us know more information about
 your project structure and exactly what you've tried so far.
 
 -- 
 Wendy
 
 -
 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://old.nabble.com/File-system-repo-tp26271810p26292575.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



File system repo

2009-11-09 Thread monkeyden

I have several projects which can't be converted over to maven right now,
mostly because of time constraints.  The artifacts of these projects will be
used in a maven project.  I'd prefer not to install them into my repository,
so I am trying to create a file system repository which points to a
directory of the current (maven) project.  I have seen this post, which was
left unanswered.  

http://old.nabble.com/file-system-repo-not-work-ts16355485.html#a16355485

I have the following repository configured in my pom:

repositories

repository
idlocal jars/id
namelocal jars/name
urlfile://${basedir}/lib/url
/repository
/repositories


I have the following dependencies also:

dependencies
dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextQuattro/artifactId
version1.0/version
/dependency
dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextPojos/artifactId
version1.0/version
/dependency
dependencies
and the jars are in ${basedir}/lib/com/mycompany


Any help is appreicated 
Thanks
-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26271810.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



jaxws-maven-plugin issues

2009-08-07 Thread monkeyden

Does anyone have working example of the jaxws-maven-plugin?  I have seen many
posts on the web and all seem to have problems with it. They all seem to
relate to a version problem with the jaxws-api dependency and the repository
in which it is found.  The central repo apparently has an incorrect version. 
It seems we have to cobble this thing together to get it to work.

I think just the plugin declaration and the repositories used should be
enough.  Here is what I have so far


repositories
!-- needed to retrieve a working jaxws-api-2.1.pom --
repository
idjava.net - Dev/id
urlhttps://maven-repository.dev.java.net/repository/url
layoutlegacy/layout
/repository
!-- needed for the jaxws-maven-plugin --
repository
idjava.net - Maven2/id
urlhttp://download.java.net/maven/2/url
layoutlegacy/layout
/repository
/repositories


plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
version1.7/version
executions
execution
goals
goalwsgen/goal
/goals
configuration
seicom.symcare.intouch.test.HelloWorld/sei
genWsdltrue/genWsdl
verbosetrue/verbose
/configuration
/execution
/executions
/plugin
-- 
View this message in context: 
http://www.nabble.com/jaxws-maven-plugin-issues-tp24869071p24869071.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: jaxws-maven-plugin issues

2009-08-07 Thread monkeyden

So now I'm getting this error, which I think is fixable.  

[INFO] [jaxws:wsgen {execution: default}]
Class not found: com.mycompany.intouch.test.HelloWorld

How do I go about running the compiler in a phase prior to the jaxws-plugin
running, so the class is available for WS wiring?


monkeyden wrote:
 
 Does anyone have working example of the jaxws-maven-plugin?  I have seen
 many posts on the web and all seem to have problems with it. They all seem
 to relate to a version problem with the jaxws-api dependency and the
 repository in which it is found.  The central repo apparently has an
 incorrect version.  It seems we have to cobble this thing together to get
 it to work.
 
 I think just the plugin declaration and the repositories used should be
 enough.  Here is what I have so far
 
 
 repositories
 !-- needed to retrieve a working jaxws-api-2.1.pom --
 repository
 idjava.net - Dev/id
 urlhttps://maven-repository.dev.java.net/repository/url
 layoutlegacy/layout
 /repository
 !-- needed for the jaxws-maven-plugin --
 repository
 idjava.net - Maven2/id
 urlhttp://download.java.net/maven/2/url
 layoutlegacy/layout
 /repository
 /repositories
 
 
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.7/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 configuration
 seicom.symcare.intouch.test.HelloWorld/sei
 genWsdltrue/genWsdl
 verbosetrue/verbose
 /configuration
 /execution
 /executions
 /plugin
 

-- 
View this message in context: 
http://www.nabble.com/jaxws-maven-plugin-issues-tp24869071p24869452.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: jaxws-maven-plugin issues

2009-08-07 Thread monkeyden

Thanks for the reply Wes.  I'm not completely in business, but I think I've
progressed thanks to you.  At least it's trying to execute wsgen.  I now get
this error, which I've seen elsewherealso without a solution.

Embedded error: javax/jws/WebService
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
wsgen
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute
wsgen
at
org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:102)
at
org.codehaus.mojo.jaxws.MainWsGenMojo.execute(MainWsGenMojo.java:14)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: java.lang.NoClassDefFoundError: javax/jws/WebService
at
com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass(WsgenOptions.java:215)
at
com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions.java:197)
at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:118)
at com.sun.tools.ws.WsGen.doMain(WsGen.java:69)
at
org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:97)
... 19 more



Wes Wannemacher wrote:
 
 Try attaching it to a phase that happens after compile, maybe
 process-classes -
 
 plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdjaxws-maven-plugin/artifactId
  version1.7/version
  executions
  execution
  goals
  goalwsgen/goal
  /goals
  phaseprocess-classes/phase
  configuration
  seicom.symcare.intouch.test.HelloWorld/sei
  genWsdltrue/genWsdl
  verbosetrue/verbose
  /configuration
  /execution
  /executions
  /plugin
 
 
 
 On Fri, Aug 7, 2009 at 2:02 PM, monkeydenmonk...@monkeyden.com wrote:

 So now I'm getting this error, which I think is fixable.

 [INFO] [jaxws:wsgen {execution: default}]
 Class not found: com.mycompany.intouch.test.HelloWorld

 How do I go about running the compiler in a phase prior to the
 jaxws-plugin
 running, so the class is available for WS wiring?


 monkeyden wrote:

 Does anyone have working example of the jaxws-maven-plugin?  I have seen
 many posts on the web and all seem to have problems with it. They all
 seem
 to relate to a version problem with the jaxws-api dependency and the
 repository in which it is found.  The central repo apparently has an
 incorrect version.  It seems we have to cobble this thing together to
 get
 it to work.

 I think just the plugin declaration and the repositories used should be
 enough.  Here is what I have so far


 repositories
         !-- needed to retrieve a working jaxws-api-2.1.pom --
         repository
             idjava.net - Dev/id
             urlhttps://maven-repository.dev.java.net/repository/url
             layoutlegacy/layout
         /repository
         !-- needed for the jaxws-maven-plugin --
         repository
             idjava.net - Maven2/id
             urlhttp://download.java.net/maven/2/url
             layoutlegacy/layout
         /repository
     /repositories


 plugin
     groupIdorg.codehaus.mojo/groupId
     artifactIdjaxws-maven-plugin

RE: Primary and secondary dependencies

2009-07-27 Thread monkeyden

Thanks for the reply Jonathan.  Here (below) is an example.  Ant 1.6.5 is a
transitive dependency of my ejb jar module.  As you can see, it's set to
provided all the way through, yet it ends up in my ear.  Based on my
(quite possibly wrong) understanding of dependency scope, it shouldn't be. 
Thanks.



+- com.mycompany.myapp.ws:ids-seam-ws-ejb:ejb:1.0:provided
[INFO] |  +- quartz:quartz:jar:1.5.2:provided
[INFO] |  +- org.jboss.portal.portlet:portlet-portlet:jar:2.0.4:provided
[INFO] |  |  +- javax.portlet:portlet-api:jar:2.0:provided
[INFO] |  |  +- org.jboss.portal.common:common-portal:jar:1.2.2:provided
[INFO] |  |  +- org.jboss.portal.web:web-web:jar:1.2.2:provided
[INFO] |  |  |  +- org.jboss.portal.common:common-common:jar:1.2.2:provided
[INFO] |  |  |  |  +- javax.activation:activation:jar:1.1:provided
[INFO] |  |  |  |  +- jboss:jboss-j2ee:jar:4.2.0.GA:provided
[INFO] |  |  |  |  +- ant:ant:jar:1.6.5:provided





Jonathan Woods wrote:
 
 I find the phrase they are not transitive a bit confusing here.  Anyway,
 the way it should work is shown in the table at
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mecha
 nism.html#Dependency_Scope, which shows that the scope of dependencies
 contributed by your 'provided' dependency should never be greater than
 'provided'.  In other words, you shouldn't be getting the transitive deps
 either... but I have no explanation as to why you might be!  Are you sure
 some other dependency which is tighter than 'provided' isn't bringing them
 in?
 
 Try running   mvn dependency:tree  on your project and seeing what it
 tells
 you.
 
 Jon
 
 -Original Message-
 From: monkeyden [mailto:monk...@monkeyden.com] 
 Sent: 24 July 2009 17:50
 To: users@maven.apache.org
 Subject: Re: Primary and secondary dependencies
 
 
 Based on this definition, which comes from the maven docs, I 
 should NOT get the primary dependency in my build, but what 
 about the transitive dependencies?  Do you suggest I should 
 not be seeing this behavior when the primary dependency is 
 provided?  thanks again.
 
 provided
 provided dependencies are used when you expect the JDK or a 
 container to provide them. For example, if you were 
 developing a web application, you would need the Servlet API 
 available on the compile classpath to compile a servlet, but 
 you wouldn't want to include the Servlet API in the packaged 
 WAR; the Servlet API JAR is supplied by your application 
 server or servlet container. provided dependencies are 
 available on the compilation classpath (not runtime). They 
 are not transitive, nor are they packaged.
 
 
 
 
 Juven Xu wrote:
  
  they are _transitive_ dependencies :) but you name them _secondary_ 
  dependencies :)
  
  you would want to read this document:
  
 http://www.sonatype.com/books/maven-book/reference/pom-relationships-s
  ect-project-dependencies.html
  
  On Sat, Jul 25, 2009 at 12:41 AM, monkeyden 
 monk...@monkeyden.com wrote:
  
 
  I have the scope of some 3rd party dependencies set to provided, 
  but keep getting all the secondary dependencies in my 
 build.  I have 
  3 versions of ant, when I don't even need 1.
 
  How best to prevent secondary dependencies from being 
 added to the build?
 
  Do the secondary dependencies inherit scope from the primary 
  dependency or do they sneak in?  I'd prefer not to 
 explicitly do any 
  of this for secondaries.
 
  thanks
  --
  View this message in context:
  
 http://www.nabble.com/Primary-and-secondary-dependencies-tp24647841p2
  4647841.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
 
 
  
  
  --
  - juven
  
  
 
 --
 View this message in context: 
 http://www.nabble.com/Primary-and-secondary-dependencies-tp246
 47841p24647985.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/Primary-and-secondary-dependencies-tp24647841p24682509.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



Primary and secondary dependencies

2009-07-24 Thread monkeyden

I have the scope of some 3rd party dependencies set to provided, but keep
getting all the secondary dependencies in my build.  I have 3 versions of
ant, when I don't even need 1.

How best to prevent secondary dependencies from being added to the build?  

Do the secondary dependencies inherit scope from the primary dependency or
do they sneak in?  I'd prefer not to explicitly do any of this for
secondaries.

thanks
-- 
View this message in context: 
http://www.nabble.com/Primary-and-secondary-dependencies-tp24647841p24647841.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: Primary and secondary dependencies

2009-07-24 Thread monkeyden

Based on this definition, which comes from the maven docs, I should NOT get
the primary dependency in my build, but what about the transitive
dependencies?  Do you suggest I should not be seeing this behavior when the
primary dependency is provided?  thanks again.

provided
provided dependencies are used when you expect the JDK or a container to
provide them. For example, if you were developing a web application, you
would need the Servlet API available on the compile classpath to compile a
servlet, but you wouldn’t want to include the Servlet API in the packaged
WAR; the Servlet API JAR is supplied by your application server or servlet
container. provided dependencies are available on the compilation classpath
(not runtime). They are not transitive, nor are they packaged.




Juven Xu wrote:
 
 they are _transitive_ dependencies :) but you name them _secondary_
 dependencies :)
 
 you would want to read this document:
 http://www.sonatype.com/books/maven-book/reference/pom-relationships-sect-project-dependencies.html
 
 On Sat, Jul 25, 2009 at 12:41 AM, monkeyden monk...@monkeyden.com wrote:
 

 I have the scope of some 3rd party dependencies set to provided, but
 keep
 getting all the secondary dependencies in my build.  I have 3 versions of
 ant, when I don't even need 1.

 How best to prevent secondary dependencies from being added to the build?

 Do the secondary dependencies inherit scope from the primary dependency
 or
 do they sneak in?  I'd prefer not to explicitly do any of this for
 secondaries.

 thanks
 --
 View this message in context:
 http://www.nabble.com/Primary-and-secondary-dependencies-tp24647841p24647841.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


 
 
 -- 
 - juven
 
 

-- 
View this message in context: 
http://www.nabble.com/Primary-and-secondary-dependencies-tp24647841p24647985.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



surefire with jboss embedded

2009-02-03 Thread monkeyden

project structure:
main pom 
\-ear
\-ejb
\-war

I have the ejb pom set up to run surfire, like so:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version${surefire.version}/version
configuration
systemProperties
property
nameuser.timezone/name
valueEtc/UTC/value
/property
property
namejava.protocol.handler.pkgs/name
valueorg.jboss.virtual.protocol/value
/property
property
namesun.lang.ClassLoader.allowArraySyntax/name
valuetrue/value
/property
/systemProperties 
argLine
-Xms128m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=256m
/argLine
parallelfalse/parallel
forkModeonce/forkMode
paralleltests/parallel
threadCount1/threadCount
suiteXmlFiles
suiteXmlFile
${basedir}/src/test/resources/testng.xml
/suiteXmlFile
/suiteXmlFiles
additionalClasspathElements
additionalClasspathElement
${basedir}/bootstrap
/additionalClasspathElement
additionalClasspathElement
${basedir}/bootstrap/deploy/quartz-ra.rar/quartz-ra.jar
/additionalClasspathElement
/additionalClasspathElements
reportFormatplain/reportFormat
trimStackTracefalse/trimStackTrace
/configuration
/plugin

I'm getting this error when I run mvn test.  Not sure what the error is,
and there is nothing on the web with this error message.  I do have the
jboss-embedded bootstrap directory setup for the project.  Can someone
translate this error for a maven noob?  Thanks!

---
 T E S T S
---
Running TestSuite
org.apache.maven.surefire.booter.SurefireExecutionException: Cannot set
option parallel with value tests; nested exception is java.lang.refl
ect.InvocationTargetException: null; nested exception is
org.apache.maven.surefire.util.NestedRuntimeException: Cannot set option
parallel w
ith value tests; nested exception is
java.lang.reflect.InvocationTargetException: null
org.apache.maven.surefire.util.NestedRuntimeException: Cannot set option
parallel with value tests; nested exception is java.lang.reflect.In
vocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator$Setter.invoke(AbstractDirectConfigurator.java:87)
at
org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator.configure(AbstractDirectConfigurator.java:58)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:73)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
Caused by: java.lang.NullPointerException
at org.testng.TestNG.setParallel(TestNG.java:345)
... 15 more
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] There are test failures.

Please refer to
E:\workspace\testproject\seam-full\admin\admin-ejb\target\surefire-reports
for the individual test results.
[INFO]

[DEBUG] Trace
org.apache.maven.BuildFailureException: There are test failures.

Please refer to
E:\workspace\testproject\seam-full\admin\admin-ejb\target\surefire-reports
for the individual test results.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at

Re: surefire with jboss embedded

2009-02-03 Thread monkeyden

So after getting past this I ran into some more errors and realized that I'm
a little confused as to how maven+surefire+testng works with jboss embedded. 
All of the example projects I have seen make no mention of a tomcat
installation, nor do they reference a tomcat/jboss deploy directory in the
configuration of the surfire plugin.  

I also have noticed that all of the projects only have the jboss-embedded
files in the ejb module, not the ear module, where you can integration test
everything.  Suppose I had a client of an EJB in my war and wanted to test
that?

Any direction on this is very much appreciated.

Thanks
-- 
View this message in context: 
http://www.nabble.com/surefire-with-jboss-embedded-tp21814900p21816476.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: surefire with jboss embedded

2009-02-03 Thread monkeyden

Hi Wayne.  Thanks for your reply.  I did notice that and removed it.  I was
also able to find this jira:

http://jira.codehaus.org/browse/SUREFIRE-361
http://jira.codehaus.org/browse/SUREFIRE-361 

Upgrading to testng 5.7 did the trick.  Unfortunately it's like walking down
path, and it revealed some other errors.


Thanks


Wayne Fay wrote:
 
argLine
-Xms128m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=256m
/argLine
parallelfalse/parallel
forkModeonce/forkMode
paralleltests/parallel
threadCount1/threadCount
 
 I'm no Surefire expert, but I assume the parallel values tests and
 false cannot be set simultaneously.
 
 Wayne
 
 -
 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/surefire-with-jboss-embedded-tp21814900p21816442.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: surefire with jboss embedded

2009-02-03 Thread monkeyden

Is there an example out there which shows how these are supposed to work
together?  I'm seeing one issue after another.  This whole thing has been
incredibly frustrating.



monkeyden wrote:
 
 project structure:
 main pom 
 \-ear
 \-ejb
 \-war
 
 I have the ejb pom set up to run surefire and testng, like so:
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version${surefire.version}/version
 configuration
 systemProperties
 property
 nameuser.timezone/name
 valueEtc/UTC/value
 /property
 property
 namejava.protocol.handler.pkgs/name
 valueorg.jboss.virtual.protocol/value
 /property
 property
 namesun.lang.ClassLoader.allowArraySyntax/name
 valuetrue/value
 /property
 /systemProperties 
 argLine
 -Xms128m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=256m
 /argLine
 parallelfalse/parallel
 forkModeonce/forkMode
 paralleltests/parallel
 threadCount1/threadCount
 suiteXmlFiles
 suiteXmlFile
 ${basedir}/src/test/resources/testng.xml
 /suiteXmlFile
 /suiteXmlFiles
 additionalClasspathElements
 additionalClasspathElement
 ${basedir}/bootstrap
 /additionalClasspathElement
 additionalClasspathElement
 ${basedir}/bootstrap/deploy/quartz-ra.rar/quartz-ra.jar
 /additionalClasspathElement
 /additionalClasspathElements
 reportFormatplain/reportFormat
 trimStackTracefalse/trimStackTrace
 /configuration
 /plugin
 
 dependencies
 ...
 dependency
 groupIdorg.testng/groupId
   artifactIdtestng/artifactId
 version${testng.version}/version
 classifierjdk15/classifier
   scopetest/scope
 /dependency
 /dependencies
 
 I'm getting this error when I run mvn test.  Not sure what the error is,
 and there is nothing on the web with this error message.  I do have the
 jboss-embedded bootstrap directory setup for the project.  Can someone
 translate this error for a maven noob?  Thanks!
 
 ---
  T E S T S
 ---
 Running TestSuite
 org.apache.maven.surefire.booter.SurefireExecutionException: Cannot set
 option parallel with value tests; nested exception is java.lang.refl
 ect.InvocationTargetException: null; nested exception is
 org.apache.maven.surefire.util.NestedRuntimeException: Cannot set option
 parallel w
 ith value tests; nested exception is
 java.lang.reflect.InvocationTargetException: null
 org.apache.maven.surefire.util.NestedRuntimeException: Cannot set option
 parallel with value tests; nested exception is java.lang.reflect.In
 vocationTargetException: null
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator$Setter.invoke(AbstractDirectConfigurator.java:87)
 at
 org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator.configure(AbstractDirectConfigurator.java:58)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:73)
 at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
 at
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
 Caused by: java.lang.NullPointerException
 at org.testng.TestNG.setParallel(TestNG.java:345)
 ... 15 more
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] There are test failures.
 
 Please refer to
 E:\workspace\testproject\seam-full\admin\admin-ejb\target\surefire-reports
 for the individual test results.
 [INFO]
 
 [DEBUG

Forward invocation to child module

2009-01-30 Thread monkeyden

Is there a way to invoke a goal on a parent pom and forward that on to a
child module?  I want to use jboss:deploy at the parent level, but I have a
child ear project which contains the *.ear file.  The jboss:deploy depends
on the ear file being in the the target directory, but it does not exist at
the parent level.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Forward-invocation-to-child-module-tp21748845p21748845.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



Resource Filtering and targetPath

2009-01-26 Thread monkeyden

I have the following code in a pom with packaging=war:


build
filters
filtersrc/main/filters/common-filter.properties/filter

filtersrc/main/filters/${environment.type}-filter.properties/filter
/filters
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0/version
configuration
webResources
resource

directory${basedir}/src/main/webapp/WEB-INF/directory
filteringtrue/filtering
includes
include*.xml/include
/includes
targetPathWEB-INF/targetPath
/resource
/webResources
/configuration
/plugin
/plugins
/build

I want all the xml files to be filtered and copied to the WEB-INF directory
(targetPath).  Neither of those are happening.  All the xml files are being
copied, unfiltered, to the war root.  Am I missing something or is this the
way it's supposed to work?

Also, this is a child of the main POM.  Is the value of directory relative
to this projects POM or the parents POM?  I can't seem to get a reference to
this projects ./src directory without using ${basedir}.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Resource-Filtering-and-targetPath-tp21679278p21679278.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: Resource Filtering and targetPath - SOLVED

2009-01-26 Thread monkeyden

Upgrading to maven-war-plugin 2.1-alpha-1 solved it.

http://www.nabble.com/War-Plugin-Filtering-td17541883.html
http://www.nabble.com/War-Plugin-Filtering-td17541883.html 


monkeyden wrote:
 
 I have the following code in a pom with packaging=war:
 
 
 build
   filters
   filtersrc/main/filters/common-filter.properties/filter
   
 filtersrc/main/filters/${environment.type}-filter.properties/filter
   /filters
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-war-plugin/artifactId
   version2.0/version
   configuration
   webResources
   resource
   
 directory${basedir}/src/main/webapp/WEB-INF/directory
   filteringtrue/filtering
   includes
   include*.xml/include
   /includes
   targetPathWEB-INF/targetPath
   /resource
   /webResources
   /configuration
   /plugin
   /plugins
 /build
 
 I want all the xml files to be filtered and copied to the WEB-INF
 directory (targetPath).  Neither of those are happening.  All the xml
 files are being copied, unfiltered, to the war root.  Am I missing
 something or is this the way it's supposed to work?
 
 Also, this is a child of the main POM.  Is the value of directory
 relative to this projects POM or the parents POM?  I can't seem to get a
 reference to this projects ./src directory without using ${basedir}.
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/Resource-Filtering-and-targetPath-tp21679278p21680262.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: Configuration by exception?

2009-01-22 Thread monkeyden

Let me clarify.  I am using maven-ear-plugin, and all of my compile-time
transitive dependencies are being dumped into the root of the ear.  Do I
have to declaratively exclude all of them like so:

jarModule
  groupIdorg.apache.ant/groupId
  artifactIdant/artifactId
  excludedtrue/excluded
/jarModule

...or does this signify a bug I've created in my build process?

Thanks for any help


monkeyden wrote:
 
 When I define a dependency do I really need to arduously and declaratively
 exclude each of it's dependencies?  Naturally I'd rather just say don't
 include any dependencies except these...
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/Configuration-by-exception--tp21592144p21610678.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



Configuration by exception?

2009-01-21 Thread monkeyden

When I define a dependency do I really need to arduously and decoratively
exclude each of it's dependencies?  Naturally I'd rather just say don't
include any dependencies except these...

Thanks
-- 
View this message in context: 
http://www.nabble.com/Configuration-by-exception--tp21592144p21592144.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 inheritence works with 2.1-SNAPSHOT but not with 2.0.9

2009-01-21 Thread monkeyden

Don't mean to interrupt but mine is using pom packaging and inheritance does
not work with 2.0.9.  Is this a known issue?

FYI - I'm basically using Michael Yuan's seam parent example located here:
http://www.michaelyuan.com/blog/2007/10/09/jboss-seam-project-setup-with-maven-%E2%80%94-part-2-ear-deployment/
http://www.michaelyuan.com/blog/2007/10/09/jboss-seam-project-setup-with-maven-%E2%80%94-part-2-ear-deployment/
 

With the parent element in *my* main pom being:
parent
 groupIdorg.jboss.seam/groupId
 artifactIdroot/artifactId
 version2.1.1.GA/version
/parent

Would this create an issue?

Thanks


Brian E Fox wrote:
 
 You found a bug in 2.1-SNAPSHOT. The parents must be pom packaging types.
 
 If you want to share checkstyle, just bundle it into a jar with assembly,
 and then you can add that jar as a dependency to your checkstyle config.
 You
 don't need to inherit from the checkstyle jar itself, Checkstyle will find
 the xml on the classpath. I wrote some examples about this here:
 http://blogs.sonatype.com/people/2008/04/how-to-share-resources-across-proje
 cts-in-maven/
 
 http://blogs.sonatype.com/people/2008/04/how-to-override-a-plugins-dependenc
 y-in-maven/
 
 --Brian 
 
 On 1/20/09 8:03 AM, kukudas kukuda...@googlemail.com wrote:
 
 Hi,
 
 i have a problem and i hope somebody can help me. I'm kinda new to this
 things so maybe my approach is generaly wrong.
 
 i'm having a parent for example like this:
 
 modelVersion4.0.0/modelVersion
 groupIdorg.test/groupId
 artifactIdparent/artifactId
 version1/version
 build
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 dependencies
 dependency
 groupId${pom.parent.groupId}/groupId
 artifactId${pom.parent.artifactId}/artifactId
 version${pom.parent.version}/version
 /dependency
 /dependencies
 /plugin
 reporting
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 configuration
 configLocationcheckstyle.xml/configLocation
 /configuration
 /plugin
 /plugins
 /reporting
 /project
 
 And a child like this:
 
 parent
 groupIdorg.test/groupId
 artifactIdparent/artifactId
 version1/version
 /parent
 
 modelVersion4.0.0/modelVersion
 groupIdorg.test/groupId
 artifactIdchild/artifactId
 
 When i use Maven 2.0.9 i get the error that parent packaging has to be
 pom.
 But it has to be jar so my child can access the checkstyle.xml which is
 in
 the parent projects resource folder.
 With Maven 2.1-SNAPSHOT it works as expected (checkstyle runs with my
 rules
 which are in the parents resource folder). Is there maybe a better way to
 solve this or somehow make it work with both versions? I don't want to
 use
 packaging jar, run clean install for my parent and then change it to pom
 so
 that it will work with 2.0.9.
 
 
 Thanks in advance
 
 kukudas
 
 
 -
 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-inheritence-works-with-2.1-SNAPSHOT-but-not-with-2.0.9-tp21562721p21598594.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