mirror of https://github.com/apache/maven.git
o adding IT it0058
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@465832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bfd88e833a
commit
46c71c1b08
|
@ -0,0 +1,13 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0058</artifactId>
|
||||
<description>Verify that profiles from settings.xml do not pollute module lists
|
||||
across projects in a reactorized build.</description>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0</version>
|
||||
|
||||
<modules>
|
||||
<module>subproject</module>
|
||||
</modules>
|
||||
</model>
|
|
@ -0,0 +1,19 @@
|
|||
<settings>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>test-repo</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>test-repo</id>
|
||||
<url>file:../../test-repo</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<activeProfiles>
|
||||
<activeProfile>test-repo</activeProfile>
|
||||
</activeProfiles>
|
||||
|
||||
</settings>
|
|
@ -0,0 +1,18 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0058</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
<artifactId>maven-core-it0058-subproject</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<type>jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</model>
|
|
@ -0,0 +1,16 @@
|
|||
package org.apache.maven.it0001;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
name = jason
|
|
@ -0,0 +1,16 @@
|
|||
package org.apache.maven.it0001;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue