mirror of https://github.com/apache/maven.git
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:
parent
acf7e6f1f8
commit
d401ffe655
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
it0047
|
||||
it0046
|
||||
it0045
|
||||
it0044
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
target/classes/org/apache/maven/it0047/Person.class
|
|
@ -0,0 +1 @@
|
|||
compile
|
|
@ -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>
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue