o Decoupled ITs from production versions of core plugins

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@697429 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-09-20 22:42:43 +00:00
parent f6a4e06028
commit 68e9b92b4e
10 changed files with 78 additions and 110 deletions

View File

@ -29,8 +29,8 @@ public class MavenIT0051Test
cliOptions.add( "--no-plugin-registry -DperformRelease=true" );
verifier.setCliOptions( cliOptions );
verifier.executeGoal( "package" );
verifier.assertFilePresent( "target/maven-it-it0051-1.0.jar" );
verifier.assertFilePresent( "target/maven-it-it0051-1.0-sources.jar" );
verifier.assertFilePresent( "target/source-jar.txt" );
verifier.assertFilePresent( "target/javadoc-jar.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -25,7 +25,8 @@ public class MavenIT0052Test
verifier.setCliOptions( cliOptions );
verifier.executeGoal( "package" );
verifier.assertFilePresent( "target/maven-it-it0052-1.0.jar" );
verifier.assertFileNotPresent( "target/maven-it-it0052-1.0-sources.jar" );
verifier.assertFileNotPresent( "target/source-jar.txt" );
verifier.assertFileNotPresent( "target/javadoc-jar.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -1,42 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0051</name>
<groupId>org.apache.maven.its.it0051</groupId>
<artifactId>maven-it-it0051</artifactId>
<description>Test source attachment when -DperformRelease=true is specified.</description>
<packaging>jar</packaging>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<packaging>jar</packaging>
<!-- NOTE: This build section has only a single function:
to upgrade the version of plexus-utils, so this test
can handle paths with spaces in them.
<name>Maven Integration Test :: it0051</name>
<description>Test source attachment when -DperformRelease=true is specified.</description>
Once a new release of the javadoc plugin takes care of
http://jira.codehaus.org/browse/MJAVADOC-144
we should be able to remove this section of the POM.
-->
<!-- NOTE: Use stub versions of the core plugins referenced by the release profile -->
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.4</version>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>1.5.4</version>
</dependency>
</dependencies>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0051;
public class Person
{
private String name;
public void setName( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
}

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0051;
import junit.framework.TestCase;
public class PersonTest
extends TestCase
{
public void testPerson()
{
Person person = new Person();
person.setName( "foo" );
assertEquals( "foo", person.getName() );
}
}

View File

@ -1,19 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0052</name>
<groupId>org.apache.maven.its.it0052</groupId>
<artifactId>maven-it-it0052</artifactId>
<description>Test that source attachment doesn't take place when
-DperformRelease=true is missing.</description>
<packaging>jar</packaging>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<packaging>jar</packaging>
<name>Maven Integration Test :: it0052</name>
<description>Test that source attachment doesn't take place when -DperformRelease=true is missing.</description>
<!-- NOTE: Use stub versions of the core plugins referenced by the release profile -->
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>0.1-stub-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0052;
public class Person
{
private String name;
public void setName( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
}

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0052;
import junit.framework.TestCase;
public class PersonTest
extends TestCase
{
public void testPerson()
{
Person person = new Person();
person.setName( "foo" );
assertEquals( "foo", person.getName() );
}
}