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" <[email protected]> wrote:

> This is what I do in grizzly and it works fine:
> 
>         <dependency>
>             <groupId>org.glassfish.grizzly</groupId>
>             <artifactId>grizzly-utils</artifactId>
>             <version>${project.version}</version>
>             <classifier>tests</classifier>
>             <scope>test</scope>
>         </dependency>
> 
> 
> On Sat, Jan 15, 2011 at 4:27 PM, Mahadev Konar <[email protected]>wrote:
> 
>> 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" <[email protected]>
>> 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" <[email protected]> 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>
>>>> <groupId>org.apache.maven.plugins</groupId>
>>>> <artifactId>maven-jar-plugin</artifactId>
>>>> <executions>
>>>> <execution>
>>>> <goals>
>>>> <goal>test-jar</goal>
>>>> </goals>
>>>> </execution>
>>>> </executions>
>>>> </plugin>
>>>> 
>>>> And in module B pom file I have the dependency on test-jar in module A.
>>>> 
>>>> <dependency>
>>>> <groupId>package-name</groupId>
>>>> <artifactId>Module-a</artifactId>
>>>> <version>version-string</version>
>>>> <type>test-jar</type>
>>>> <scope>test</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: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>> 
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
>> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to