Re: Resolving test interdependency with maven.

2011-01-15 Thread Stephen Connolly
you need to invoke at least as far as the package phase to get what you are
trying to do to work.

- Stephen

---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to type on the
screen
On 15 Jan 2011 21:18, Mahadev Konar maha...@yahoo-inc.com wrote:
 Hi all,
 I am beginner at using maven.

 I am using
 Maven version: 2.0.9
 Java version: 1.6.0_13
 OS name: mac os x version: 10.5.7 arch: x86_64 Family: mac

 I have a very basic question, it would be great if someone can help me out
 with this. Thanks in advance.

 I have the following scenario:

 Module A has some tests which Module B depends on.

 So I did this in my module A pom file I have:
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 executions
 execution
 goals
 goaltest-jar/goal
 /goals
 /execution
 /executions
 /plugin

 And in module B pom file I have the dependency on test-jar in module A.

 dependency
 groupIdpackage-name/groupId
 artifactIdModule-a/artifactId
 versionversion-string/version
 typetest-jar/type
 scopetest/scope
 /dependency


 Both these modules are part of my project.

 Now from the top level pom.xml if I do mvn clean test, then the test phase
 for module B fails saying that its not able to find the test-jar for
module
 A. Is there something I am missing, most of the documentation I read said
 that this is how its done? Do I have to run maven install before I run
maven
 test to get the test-jar installed?

 Thanks
 Mahadev


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



Re: Resolving test interdependency with maven.

2011-01-15 Thread Mahadev Konar
Hi Stephen,
 Thanks for your email. I tried mvn clean package but that fails as well
with the same error. Is there something I am doing wrong? Is the maven
version on that I am running on mac doesn't support this?

 Also, is there anyway I can have dependency from module B to module A tests
without running the package phase?


Thanks
mahadev


On 1/15/11 1:22 PM, Stephen Connolly stephen.alan.conno...@gmail.com
wrote:

 you need to invoke at least as far as the package phase to get what you are
 trying to do to work.
 
 - Stephen
 
 ---
 Sent from my Android phone, so random spelling mistakes, random nonsense
 words and other nonsense are a direct result of using swype to type on the
 screen
 On 15 Jan 2011 21:18, Mahadev Konar maha...@yahoo-inc.com wrote:
 Hi all,
 I am beginner at using maven.
 
 I am using
 Maven version: 2.0.9
 Java version: 1.6.0_13
 OS name: mac os x version: 10.5.7 arch: x86_64 Family: mac
 
 I have a very basic question, it would be great if someone can help me out
 with this. Thanks in advance.
 
 I have the following scenario:
 
 Module A has some tests which Module B depends on.
 
 So I did this in my module A pom file I have:
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 executions
 execution
 goals
 goaltest-jar/goal
 /goals
 /execution
 /executions
 /plugin
 
 And in module B pom file I have the dependency on test-jar in module A.
 
 dependency
 groupIdpackage-name/groupId
 artifactIdModule-a/artifactId
 versionversion-string/version
 typetest-jar/type
 scopetest/scope
 /dependency
 
 
 Both these modules are part of my project.
 
 Now from the top level pom.xml if I do mvn clean test, then the test phase
 for module B fails saying that its not able to find the test-jar for
 module
 A. Is there something I am missing, most of the documentation I read said
 that this is how its done? Do I have to run maven install before I run
 maven
 test to get the test-jar installed?
 
 Thanks
 Mahadev
 
 
 -
 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: Resolving test interdependency with maven.

2011-01-15 Thread Justin Lee
This is what I do in grizzly and it works fine:

dependency
groupIdorg.glassfish.grizzly/groupId
artifactIdgrizzly-utils/artifactId
version${project.version}/version
classifiertests/classifier
scopetest/scope
/dependency


On Sat, Jan 15, 2011 at 4:27 PM, Mahadev Konar maha...@yahoo-inc.comwrote:

 Hi Stephen,
  Thanks for your email. I tried mvn clean package but that fails as well
 with the same error. Is there something I am doing wrong? Is the maven
 version on that I am running on mac doesn't support this?

  Also, is there anyway I can have dependency from module B to module A
 tests
 without running the package phase?


 Thanks
 mahadev


 On 1/15/11 1:22 PM, Stephen Connolly stephen.alan.conno...@gmail.com
 wrote:

  you need to invoke at least as far as the package phase to get what you
 are
  trying to do to work.
 
  - Stephen
 
  ---
  Sent from my Android phone, so random spelling mistakes, random nonsense
  words and other nonsense are a direct result of using swype to type on
 the
  screen
  On 15 Jan 2011 21:18, Mahadev Konar maha...@yahoo-inc.com wrote:
  Hi all,
  I am beginner at using maven.
 
  I am using
  Maven version: 2.0.9
  Java version: 1.6.0_13
  OS name: mac os x version: 10.5.7 arch: x86_64 Family: mac
 
  I have a very basic question, it would be great if someone can help me
 out
  with this. Thanks in advance.
 
  I have the following scenario:
 
  Module A has some tests which Module B depends on.
 
  So I did this in my module A pom file I have:
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  executions
  execution
  goals
  goaltest-jar/goal
  /goals
  /execution
  /executions
  /plugin
 
  And in module B pom file I have the dependency on test-jar in module A.
 
  dependency
  groupIdpackage-name/groupId
  artifactIdModule-a/artifactId
  versionversion-string/version
  typetest-jar/type
  scopetest/scope
  /dependency
 
 
  Both these modules are part of my project.
 
  Now from the top level pom.xml if I do mvn clean test, then the test
 phase
  for module B fails saying that its not able to find the test-jar for
  module
  A. Is there something I am missing, most of the documentation I read
 said
  that this is how its done? Do I have to run maven install before I run
  maven
  test to get the test-jar installed?
 
  Thanks
  Mahadev
 
 
  -
  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: Resolving test interdependency with maven.

2011-01-15 Thread Mahadev Konar
Thanks Justin,
 I had tried that as well before mailing on the list. Now, I am pretty
confused why this isnt working for me.
 
Thanks
mahadev


On 1/15/11 1:49 PM, Justin Lee evancho...@gmail.com wrote:

 This is what I do in grizzly and it works fine:
 
 dependency
 groupIdorg.glassfish.grizzly/groupId
 artifactIdgrizzly-utils/artifactId
 version${project.version}/version
 classifiertests/classifier
 scopetest/scope
 /dependency
 
 
 On Sat, Jan 15, 2011 at 4:27 PM, Mahadev Konar maha...@yahoo-inc.comwrote:
 
 Hi Stephen,
  Thanks for your email. I tried mvn clean package but that fails as well
 with the same error. Is there something I am doing wrong? Is the maven
 version on that I am running on mac doesn't support this?
 
  Also, is there anyway I can have dependency from module B to module A
 tests
 without running the package phase?
 
 
 Thanks
 mahadev
 
 
 On 1/15/11 1:22 PM, Stephen Connolly stephen.alan.conno...@gmail.com
 wrote:
 
 you need to invoke at least as far as the package phase to get what you
 are
 trying to do to work.
 
 - Stephen
 
 ---
 Sent from my Android phone, so random spelling mistakes, random nonsense
 words and other nonsense are a direct result of using swype to type on
 the
 screen
 On 15 Jan 2011 21:18, Mahadev Konar maha...@yahoo-inc.com wrote:
 Hi all,
 I am beginner at using maven.
 
 I am using
 Maven version: 2.0.9
 Java version: 1.6.0_13
 OS name: mac os x version: 10.5.7 arch: x86_64 Family: mac
 
 I have a very basic question, it would be great if someone can help me
 out
 with this. Thanks in advance.
 
 I have the following scenario:
 
 Module A has some tests which Module B depends on.
 
 So I did this in my module A pom file I have:
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 executions
 execution
 goals
 goaltest-jar/goal
 /goals
 /execution
 /executions
 /plugin
 
 And in module B pom file I have the dependency on test-jar in module A.
 
 dependency
 groupIdpackage-name/groupId
 artifactIdModule-a/artifactId
 versionversion-string/version
 typetest-jar/type
 scopetest/scope
 /dependency
 
 
 Both these modules are part of my project.
 
 Now from the top level pom.xml if I do mvn clean test, then the test
 phase
 for module B fails saying that its not able to find the test-jar for
 module
 A. Is there something I am missing, most of the documentation I read
 said
 that this is how its done? Do I have to run maven install before I run
 maven
 test to get the test-jar installed?
 
 Thanks
 Mahadev
 
 
 -
 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