add a test case to illustrate why we have to make compile time dependencies transitive as compile, not runtime as we'd like.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@231142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-08-09 23:31:14 +00:00
parent acf7e6f1f8
commit d401ffe655
6 changed files with 38 additions and 0 deletions

View File

@ -131,6 +131,9 @@ it0045: Test non-reactor behavior when plugin declares "@requiresProject false"
it0046: Test fail-never reactor behavior. Forces an exception to be thrown in
the first module, but checks that the second modules is built.
it0047: Test the use case for having a compile time dependency be transitive: when you extend a class you need its
dependencies at compile time.
-------------------------------------------------------------------------------
- generated sources

View File

@ -1,3 +1,4 @@
it0047
it0046
it0045
it0044

View File

@ -0,0 +1 @@
target/classes/org/apache/maven/it0047/Person.class

View File

@ -0,0 +1 @@
compile

View File

@ -0,0 +1,13 @@
<model>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core-it0047</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>1.0-alpha-4</version>
</dependency>
</dependencies>
</model>

View File

@ -0,0 +1,19 @@
package org.apache.maven.it0047;
import org.codehaus.plexus.PlexusTestCase;
public class Person
extends PlexusTestCase
{
private String name;
public void setName( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
}