mirror of https://github.com/apache/maven.git
o these are now fully separated
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491372 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e51bbe8ec
commit
267dec7af8
|
@ -1,142 +0,0 @@
|
|||
Notes:
|
||||
- today, 3 sets of integration tests, categorized by their ids (it0xxx, it1xxx, it2xxx).
|
||||
see below for what these groups represent
|
||||
- creating a new test:
|
||||
- you can add mojos to the integration-tests plugins/maven-core-it-plugin
|
||||
- add log.txt and target to your it test svn ignore list
|
||||
|
||||
|
||||
Format of tests:
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Any Maven project plus the following optional files
|
||||
|
||||
- goals.txt goals to run
|
||||
|
||||
- expected-results.txt path of files expected after build, use "!" as first char to mark it as not expected
|
||||
|
||||
Examples:
|
||||
target/maven-core-it0003-1.0.jar
|
||||
${artifact:org.apache.maven:maven-core-it0003:1.0:jar}
|
||||
!target/maven-core-it0016-1.0/WEB-INF/lib/servletapi-2.4-20040521.jar
|
||||
target/maven-core-it0057-1.0.jar!/it0001.properties
|
||||
|
||||
This means that
|
||||
we expect target/maven-core-it0003-1.0.jar
|
||||
we expect an artifact in the local repo under org.apache.maven groupId, maven-core-it0003 artifactId, 1.0 version and type jar
|
||||
we don't expect target/maven-core-it0016-1.0/WEB-INF/lib/servletapi-2.4-20040521.jar
|
||||
we don't expect it0001.properties inside target/maven-core-it0057-1.0.jar
|
||||
|
||||
|
||||
- prebuild-hook.txt comands to run before the invocation of mvn
|
||||
|
||||
Examples:
|
||||
rm ${artifact:org.apache.maven.plugins:maven-core-it-plugin:1.0:maven-plugin}
|
||||
rmdir ${basedir}/test project
|
||||
|
||||
- cli-options.txt options used in mvn command line
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
- generated sources
|
||||
- generated resources from sources
|
||||
- generated resources from generated sources
|
||||
- build that requires a plugin download
|
||||
- transitive dependencies
|
||||
- goal attainment not requiring depedency resolution
|
||||
- goal attainment where a POM is not required: this is a case where
|
||||
we are using mgen to create new applications and project structures
|
||||
which is used by the m2 geronimo plugin and tools like the "setup"
|
||||
goal which brings a project to life from scratch using something like:
|
||||
m2 --setup xstream --version 1.0
|
||||
|
||||
- write a small program to generate a massively nested build
|
||||
which which use the reactor and inheritence. we need to have
|
||||
integration tests that go far beyond what the average user
|
||||
would ever setup.
|
||||
|
||||
- project with a cyclic dependency
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
These are a set of builds that contain known errors. The errors should be
|
||||
captured and reported in a useful manner to the user. We will start at it1000
|
||||
for intentially flawed builds.
|
||||
-------------------------------------------------------------------------------
|
||||
it1000: A build which contains a malformed pom.xml. We have intentionally
|
||||
created a mismatch in the first element. We have:
|
||||
<projectX>...</project>
|
||||
-------------------------------------------------------------------------------
|
||||
it1001: A build whose pom.xml does not contain a <groupId/> element.
|
||||
-------------------------------------------------------------------------------
|
||||
it1002: A build with a syntax error in the first field declaration.
|
||||
-------------------------------------------------------------------------------
|
||||
it1003: A build with a simple test failure.
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
- checksum mismatch
|
||||
-------------------------------------------------------------------------------
|
||||
it1005: A build with two mojo java sources that declare the same goal.
|
||||
-------------------------------------------------------------------------------
|
||||
it1006: Tests collision on default execution id. Should throw an
|
||||
IllegalStateException, since the model is incorrect.
|
||||
-------------------------------------------------------------------------------
|
||||
it1007: Should fail due to requiring a future version of Maven.
|
||||
-------------------------------------------------------------------------------
|
||||
it1008: Should fail due to requiring a version range for junit that doesn't exist
|
||||
in the repository. Currently succeeds (MNG-614)
|
||||
-------------------------------------------------------------------------------
|
||||
it1009: Tests packaging from a plugin fails when extensions is not true.
|
||||
-------------------------------------------------------------------------------
|
||||
it1010: Tests a type from a plugin fails when extensions is not true.
|
||||
-------------------------------------------------------------------------------
|
||||
it1011: Tests the fail-at-end reactor behavior. First module fails, and second
|
||||
should also run but not fail. End result should be failure of the build.
|
||||
-------------------------------------------------------------------------------
|
||||
it1012: Test that the DefaultLifecycleExecutor will throw an exception when
|
||||
encountering an unknown packaging.
|
||||
|
||||
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
it1015: Test that expressions that self-reference within the POM result in an
|
||||
error during POM interpolation.
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
it1018: Test formatting of error caused by invalid profiles.xml syntax.
|
||||
-------------------------------------------------------------------------------
|
||||
it1019: A test that ensures that an exception is thrown when two artifacts
|
||||
with the same id are present in the reactor.
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
These are a set of builds that are more complex than single-project or reactor
|
||||
invocations. They follow a process external to maven itself, invoking
|
||||
different lifecycle phases and/or goals on multiple projects within each test
|
||||
directory in order to accomplish their aims.
|
||||
|
||||
NOTE: Currently, there is no automatic verification process for these...
|
||||
-------------------------------------------------------------------------------
|
||||
it2000: Test resolution of plugin by prefix from the first plugin repository
|
||||
in a list. This is accomplished by creating a local "remote" repo, and
|
||||
deploying a plugin there. Then, in another project, that plugin's goal
|
||||
is invoked directly with the plugin's groupId being included in the
|
||||
pluginGroups for the build. This second build should pickup the
|
||||
plugins.xml for the aforementioned plugin from the first repository
|
||||
and execute. This should resolve MNG-592.
|
||||
|
||||
it2001: Test that repositories are accumulated as the artifact resolution
|
||||
process traverses successive layers of transitive dependencies, such
|
||||
that transitive dependencies can be resolved from repositories defined
|
||||
in the top-level pom.xml. See MNG-757.
|
||||
|
||||
|
||||
it2002: Test the release plugin.
|
||||
|
||||
it2003: Test that versions specified in pluginManagement are used when plugins
|
||||
are resolved as direct command-line goals, or as implied lifecycle
|
||||
bindings.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
|
@ -1,292 +0,0 @@
|
|||
it0000: The simplest of builds. We have one application class and one test
|
||||
class. There are no resources, no source generation, no resource
|
||||
generation and a the super model is employed to provide the build
|
||||
information.
|
||||
|
||||
it0001: Builds upon it0000: we add an application resource that is packaged
|
||||
up in the resultant JAR.
|
||||
|
||||
it0002: Builds upon it0001: we add the download of a dependency. We delete
|
||||
the JAR from the local repository and make sure it is there post build.
|
||||
|
||||
it0003: Builds upon it0001: we add a jar installation step. We delete the JAR
|
||||
from the local repository to make sure it is there post build.
|
||||
|
||||
it0004: The simplest of pom installation. We have a pom and we install it in
|
||||
local repository.
|
||||
|
||||
it0005: The simplest of pom installation. We have a snapshot pom and we install
|
||||
it in local repository.
|
||||
|
||||
it0006: Integration test for the verifier plugin.
|
||||
|
||||
it0007: We specify a parent in the POM and make sure that it is downloaded as
|
||||
part of the process.
|
||||
|
||||
it0008: Simple goal decoration where a plugin binds to a phase and the plugin must
|
||||
be downloaded from a remote repository before it can be executed. This
|
||||
test also checks to make sure that mojo parameters are aligned to the
|
||||
project basedir when their type is "java.io.File".
|
||||
|
||||
it0009: Test plugin configuration and goal configuration that overrides what the
|
||||
mojo has specified.
|
||||
|
||||
it0010: Since the artifact resolution does not use the project builder, we must
|
||||
ensure that the full hierarchy of all dependencies is resolved. This
|
||||
includes the dependencies of the parent-pom's of dependencies. This test
|
||||
will check this, by depending on classworlds, which is a dependency of
|
||||
maven-component, which is the parent of maven-plugin, which is an
|
||||
explicit dependency of this test.
|
||||
# TODO: must correct the assumptions of this test
|
||||
|
||||
it0011: Test specification of dependency versions via <dependencyManagement/>.
|
||||
|
||||
it0012: Test simple POM interpolation
|
||||
|
||||
it0013: Test plugin-plugin, which tests maven-plugin-tools-api and
|
||||
maven-plugin-tools-java. This will generate a plugin descriptor from
|
||||
java-based mojo sources, install the plugin, and then use it.
|
||||
|
||||
it0014: Test POM configuration by settings the -source and -target for the
|
||||
compiler to 1.4
|
||||
|
||||
it0016: Test a WAR generation
|
||||
|
||||
it0017: Test an EJB generation
|
||||
|
||||
it0018: Ensure that managed dependencies for dependency POMs are calculated
|
||||
correctly when resolved. Removes commons-logging-1.0.3 and checks it is
|
||||
redownloaded.
|
||||
|
||||
it0019: Test that a version is managed by pluginManagement in the super POM
|
||||
|
||||
it0020: Test beanshell mojo support.
|
||||
|
||||
it0021: Test pom-level profile inclusion (this one is activated by system
|
||||
property).
|
||||
|
||||
it0022: Test profile inclusion from profiles.xml (this one is activated by system
|
||||
property).
|
||||
|
||||
it0023: Test profile inclusion from settings.xml (this one is activated by an id
|
||||
in the activeProfiles section).
|
||||
|
||||
it0024: Test usage of <executions/> inside a plugin rather than <goals/>
|
||||
that are directly inside th plugin.
|
||||
|
||||
it0025: Test multiple goal executions with different execution-level configs.
|
||||
|
||||
it0026: Test merging of global- and user-level settings.xml files.
|
||||
|
||||
it0027: Test @execute with a custom lifecycle, including configuration
|
||||
|
||||
it0028: Test that unused configuration parameters from the POM don't cause the
|
||||
mojo to fail...they will show up as warnings in the -X output instead.
|
||||
|
||||
it0029: Test for pluginManagement injection of plugin configuration.
|
||||
|
||||
it0030: Test for injection of dependencyManagement through parents of
|
||||
dependency poms.
|
||||
|
||||
it0031: Test usage of plugins.xml mapping file on the repository to resolve
|
||||
plugin artifactId from it's prefix using the pluginGroups in
|
||||
the provided settings.xml.
|
||||
|
||||
it0032: Tests that a specified Maven version requirement that is lower doesn't cause any problems
|
||||
|
||||
it0033: Test an EAR generation
|
||||
|
||||
it0034: Test version range junit [3.7,) resolves to 3.8.1
|
||||
|
||||
it0035: Test artifact relocation.
|
||||
|
||||
it0036: Test building from release-pom.xml when it's available
|
||||
|
||||
it0037: Test building with alternate pom file using '-f'
|
||||
|
||||
it0038: Test building project from outside the project directory using '-f'
|
||||
option
|
||||
|
||||
it0039: Test reactor for projects that have release-pom.xml in addition to
|
||||
pom.xml. The release-pom.xml file should be chosen above pom.xml for
|
||||
these projects in the build.
|
||||
|
||||
it0040: Test the use of a packaging from a plugin
|
||||
|
||||
it0041: Test the use of a new type from a plugin
|
||||
|
||||
it0042: Test that the reactor can establish the artifact location of known projects for dependencies
|
||||
|
||||
it0043: Test for repository inheritence - ensure using the same id overrides the defaults
|
||||
|
||||
it0044: Test --settings CLI option
|
||||
|
||||
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.
|
||||
|
||||
it0048: Verify that default values for mojo parameters are working (indirectly,
|
||||
by verifying that the Surefire mojo is functioning correctly).
|
||||
|
||||
it0049: Test parameter alias usage.
|
||||
|
||||
it0050: Test surefire inclusion/exclusions
|
||||
|
||||
it0051: Test source attachment when -DperformRelease=true is specified.
|
||||
|
||||
it0052: Test that source attachment doesn't take place when
|
||||
-DperformRelease=true is missing.
|
||||
|
||||
it0053: Test that attached artifacts have the same buildnumber and timestamp
|
||||
as the main artifact. This will not correctly verify until we have
|
||||
some way to pattern-match the buildnumber/timestamp...
|
||||
|
||||
it0054: Test resource filtering.
|
||||
|
||||
it0055: Test that source includes/excludes with in the compiler plugin config.
|
||||
This will test excludes and testExcludes...
|
||||
|
||||
it0056: Test that multiple executions of the compile goal with different
|
||||
includes/excludes will succeed.
|
||||
|
||||
it0057: Verify that scope == 'provided' dependencies are available to tests.
|
||||
|
||||
it0058: Verify that profiles from settings.xml do not pollute module lists
|
||||
across projects in a reactorized build.
|
||||
|
||||
it0059: Verify that maven-1 POMs will be ignored but not stop the resolution
|
||||
process.
|
||||
|
||||
it0060: Test aggregation of list configuration items when using
|
||||
'combine.children=append' attribute. Specifically, merge the list of
|
||||
excludes for the testCompile mojo.
|
||||
|
||||
it0061: Verify that deployment of artifacts to a legacy-layout repository
|
||||
results in a groupId directory of 'the.full.group.id' instead of
|
||||
'the/full/group/id'.
|
||||
|
||||
it0062: Test that a deployment of a snapshot falls back to a non-snapshot repository if no snapshot repository is
|
||||
specified.
|
||||
|
||||
it0063: Test the use of a system scoped dependency to tools.jar.
|
||||
|
||||
it0064: Test the use of a mojo that uses setters instead of private fields
|
||||
for the population of configuration values.
|
||||
|
||||
it0065: Test that the basedir of the parent is set correctly.
|
||||
|
||||
it0066: Test that nonstandard POM files will be installed correctly.
|
||||
|
||||
it0067: Test activation of a profile from the command line.
|
||||
|
||||
it0068: Test repository accumulation.
|
||||
|
||||
it0069: Test offline mode.
|
||||
|
||||
it0070: Test a RAR generation.
|
||||
|
||||
it0071: Verifies that dotted property references work within plugin
|
||||
configurations.
|
||||
|
||||
it0072: Verifies that property references with dotted notation work within
|
||||
POM interpolation.
|
||||
|
||||
it0073: Tests context passing between mojos in the same plugin.
|
||||
|
||||
it0074: Test that plugin-level configuration instances are not nullified by
|
||||
execution-level configuration instances.
|
||||
|
||||
it0075: Verify that direct invocation of a mojo from the command line still
|
||||
results in the processing of modules included via profiles.
|
||||
|
||||
it0076: Test that plugins in pluginManagement aren't included in the build
|
||||
unless they are referenced by groupId/artifactId within the plugins
|
||||
section of a pom.
|
||||
|
||||
it0077: Test test jar attachment.
|
||||
|
||||
it0078: Test that configuration for maven-compiler-plugin is injected from
|
||||
PluginManagement section even when it's not explicitly defined in the
|
||||
plugins section.
|
||||
|
||||
it0079: Test that source attachments have the same build number as the main
|
||||
artifact when deployed.
|
||||
|
||||
it0080: Test that depending on a WAR doesn't also get its dependencies
|
||||
transitively.
|
||||
|
||||
it0081: Test per-plugin dependencies.
|
||||
|
||||
it0082: Test that the reactor can establish the artifact location of known projects for dependencies
|
||||
using process-sources to see that it works even when they aren't compiled
|
||||
|
||||
it0083: Verify that overriding a compile time dependency as provided in a WAR ensures it is not included.
|
||||
|
||||
it0084: Verify that the collector selecting a particular version gets the correct subtree
|
||||
|
||||
it0085: Verify that system-scoped dependencies get resolved with system scope
|
||||
when they are resolved transitively via another (non-system)
|
||||
dependency. Inherited scope should not apply in the case of
|
||||
system-scoped dependencies, no matter where they are.
|
||||
|
||||
it0086: Verify that a plugin dependency class can be loaded from both the plugin classloader and the
|
||||
context classloader available to the plugin.
|
||||
|
||||
it0087: Verify that a project-level plugin dependency class can be loaded from both the plugin classloader
|
||||
and the context classloader available to the plugin.
|
||||
|
||||
it0088: Test path translation.
|
||||
|
||||
it0089: Test that Checkstyle PackageNamesLoader.loadModuleFactory(..) method will complete as-is with
|
||||
the context classloader available to the plugin.
|
||||
|
||||
it0090: Test that ensures that envars are interpolated correctly into plugin
|
||||
configurations.
|
||||
|
||||
it0091: Test that currently demonstrates that properties are not correctly
|
||||
interpolated into other areas in the POM. This may strictly be a boolean
|
||||
problem: I captured the problem as it was reported.
|
||||
|
||||
it0092: Test that legacy repositories with legacy snapshots download correctly.
|
||||
|
||||
it0094: Test classloading issues with mojos after 2.0 (MNG-1898).
|
||||
|
||||
it0095: Test URL calculation when modules are in sibling dirs of parent. (MNG-2006)
|
||||
|
||||
it0096: Test that plugin executions from >1 step of inheritance don't run multiple times.
|
||||
|
||||
it0097: Test that the implied relative path for the parent POM works, even two
|
||||
levels deep.
|
||||
|
||||
it0098: Test that quoted system properties are processed correctly. [MNG-1415]
|
||||
|
||||
it0099: Test that parent-POMs cached during a build are available as parents
|
||||
to other POMs in the multimodule build. [MNG-2130]
|
||||
|
||||
it0100: Test that ${parent.artifactId} resolves correctly. [MNG-2124]
|
||||
|
||||
it0101: Test that properties defined in an active profile in the user's
|
||||
settings are available for interpolation of systemPath in a dependency.
|
||||
[MNG-2052]
|
||||
|
||||
it0102: Test that <activeByDefault/> calculations for profile activation only
|
||||
use profiles defined in the POM. [MNG-2136]
|
||||
|
||||
it0103: Verify that multimodule builds where one project references another as
|
||||
a parent can build, even if that parent is not correctly referenced by
|
||||
<relativePath/> and is not in the local repository. [MNG-2196]
|
||||
|
||||
it0104: Verify that plugin configurations are resolved correctly, particularly
|
||||
when they contain ${project.build.directory} in the string value of a
|
||||
Map.Entry.
|
||||
|
||||
it0105: MRESOURCES-18
|
||||
|
||||
it0106: When a project has modules and its parent is not preinstalled [MNG-2318]
|
||||
|
||||
it0107: Verify that default implementation of an implementation for a complex object works as
|
||||
expected [MNG-2293]
|
|
@ -1,107 +0,0 @@
|
|||
#it0107 requires a snapshot version of maven-plugin-plugin, which indicates it doesn't belong here
|
||||
#it0106 MNG-2318 not yet fixed
|
||||
it0105
|
||||
#it0104 Commenting out, not fixed until post-2.0.4, due to dependency on new plexus-container-default version.
|
||||
it0103
|
||||
it0102
|
||||
it0101
|
||||
it0100
|
||||
it0099
|
||||
# it0098 - something started failing here, not yet identified. MNG-2322
|
||||
#it0097 MNG-870
|
||||
#it0096 MNG-870
|
||||
it0095
|
||||
it0094
|
||||
it0092
|
||||
# it0091 currrently fails. Not sure if there is an associated JIRA.
|
||||
it0090
|
||||
it0089
|
||||
it0088
|
||||
it0087
|
||||
it0086
|
||||
it0085
|
||||
it0084
|
||||
it0083
|
||||
it0082
|
||||
#it0081 MNG-2603
|
||||
it0080
|
||||
it0079
|
||||
it0078
|
||||
it0077
|
||||
it0076
|
||||
it0075
|
||||
it0074
|
||||
it0073
|
||||
it0072
|
||||
it0071
|
||||
it0070
|
||||
it0069
|
||||
it0068
|
||||
it0067
|
||||
it0066
|
||||
it0065
|
||||
it0064
|
||||
it0063
|
||||
it0062
|
||||
it0061
|
||||
it0060
|
||||
it0059
|
||||
it0058
|
||||
it0057
|
||||
it0056
|
||||
it0055
|
||||
it0054
|
||||
it0053
|
||||
it0052
|
||||
it0051
|
||||
it0050
|
||||
it0049
|
||||
it0048
|
||||
it0047
|
||||
it0046
|
||||
it0045
|
||||
it0044
|
||||
it0043
|
||||
#it0042 MNG-870
|
||||
it0041
|
||||
it0040
|
||||
it0039
|
||||
it0038
|
||||
it0037
|
||||
it0036
|
||||
it0035
|
||||
it0034
|
||||
it0033
|
||||
it0032
|
||||
it0031
|
||||
it0030
|
||||
it0029
|
||||
it0028
|
||||
it0027
|
||||
it0026
|
||||
it0025
|
||||
it0024
|
||||
it0023
|
||||
it0022
|
||||
it0021
|
||||
it0020
|
||||
it0019
|
||||
it0018
|
||||
it0017
|
||||
it0016
|
||||
# it0015 reserved in rememberance of Marmalade. We knew you so little.
|
||||
it0014
|
||||
it0013
|
||||
it0012
|
||||
it0011
|
||||
it0010
|
||||
it0009
|
||||
it0008
|
||||
it0007
|
||||
it0006
|
||||
it0005
|
||||
it0004
|
||||
it0003
|
||||
it0002
|
||||
it0001
|
||||
it0000
|
|
@ -1,4 +0,0 @@
|
|||
target/classes/org/apache/maven/it0000/Person.class
|
||||
target/test-classes/org/apache/maven/it0000/PersonTest.class
|
||||
target/maven-core-it0000-1.0.jar
|
||||
target/surefire-reports/org.apache.maven.it0000.PersonTest.txt
|
|
@ -1 +0,0 @@
|
|||
package
|
|
@ -1,20 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0000</artifactId>
|
||||
<description>The simplest of builds. We have one application class and one test
|
||||
class. There are no resources, no source generation, no resource
|
||||
generation and a the super model is employed to provide the build
|
||||
information.</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>
|
||||
</model>
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0000;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0000;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
target/classes/org/apache/maven/it0001/Person.class
|
||||
target/test-classes/org/apache/maven/it0001/PersonTest.class
|
||||
target/maven-core-it0001-1.0.jar
|
||||
target/maven-core-it0001-1.0.jar!/it0001.properties
|
|
@ -1 +0,0 @@
|
|||
package
|
|
@ -1,18 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0001</artifactId>
|
||||
<description>Builds upon it0000: we add an application resource that is packaged
|
||||
up in the resultant JAR.</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>
|
||||
</model>
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0001;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
name = jason
|
|
@ -1,16 +0,0 @@
|
|||
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() );
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
target/classes/org/apache/maven/it0002/Person.class
|
||||
target/test-classes/org/apache/maven/it0002/PersonTest.class
|
||||
target/maven-core-it0002-1.0.jar
|
||||
target/maven-core-it0002-1.0.jar!/it0002.properties
|
||||
${artifact:org.apache.maven:maven-core-it-support:1.0:jar}
|
|
@ -1 +0,0 @@
|
|||
package
|
|
@ -1,26 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0002</artifactId>
|
||||
<description>Builds upon it0001: we add the download of a dependency. We delete
|
||||
the JAR from the local repository and make sure it is there post build.
|
||||
</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>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it-support</artifactId>
|
||||
<version>1.0</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven:maven-core-it-support:1.0:jar}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0001;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0002;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
name = jason
|
|
@ -1 +0,0 @@
|
|||
name = jason
|
|
@ -1,16 +0,0 @@
|
|||
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() );
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0002;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
target/classes/org/apache/maven/it0003/Person.class
|
||||
target/test-classes/org/apache/maven/it0003/PersonTest.class
|
||||
target/maven-core-it0003-1.0.jar
|
||||
target/maven-core-it0003-1.0.jar!/it0003.properties
|
||||
${artifact:org.apache.maven:maven-core-it0003:1.0:jar}
|
|
@ -1 +0,0 @@
|
|||
install
|
|
@ -1,16 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0003</artifactId>
|
||||
<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>
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven:maven-core-it0003:1.0:jar}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0003;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
name = jason
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0003;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
${artifact:org.apache.maven:maven-core-it0004:1.0:pom}
|
|
@ -1 +0,0 @@
|
|||
install:install
|
|
@ -1,7 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0004</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0</version>
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven:maven-core-it0004:1.0:pom}
|
|
@ -1 +0,0 @@
|
|||
${artifact:org.apache.maven:maven-core-it0005:1.0-SNAPSHOT:pom}
|
|
@ -1 +0,0 @@
|
|||
install:install
|
|
@ -1,7 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0005</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven:maven-core-it0005:1.0-SNAPSHOT:pom}
|
|
@ -1 +0,0 @@
|
|||
integration-test
|
|
@ -1,21 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-verifier-plugin-test</artifactId>
|
||||
<name>Maven Verifier Plugin Test</name>
|
||||
<version>1.0-alpha-2-SNAPSHOT</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-verifier-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>verify</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</model>
|
|
@ -1,15 +0,0 @@
|
|||
<verifications>
|
||||
<files>
|
||||
<file>
|
||||
<location>src/test/verifier/verifications.xml</location>
|
||||
</file>
|
||||
<file>
|
||||
<location>src/test/verifier/invalidfile</location>
|
||||
<exists>false</exists>
|
||||
</file>
|
||||
<file>
|
||||
<location>pom.xml</location>
|
||||
<contains>Maven.*Plugin Test</contains>
|
||||
</file>
|
||||
</files>
|
||||
</verifications>
|
|
@ -1,5 +0,0 @@
|
|||
target/classes/org/apache/maven/it0007/Person.class
|
||||
target/test-classes/org/apache/maven/it0007/PersonTest.class
|
||||
target/maven-core-it0007-1.0.jar
|
||||
target/maven-core-it0007-1.0.jar!/it0007.properties
|
||||
${artifact:org.apache.maven.plugins:maven-plugin-parent:2.0:pom}
|
|
@ -1 +0,0 @@
|
|||
package
|
|
@ -1,13 +0,0 @@
|
|||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it-support-parent</artifactId>
|
||||
<version>1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it-support</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -1,20 +0,0 @@
|
|||
<model>
|
||||
<parent>
|
||||
<artifactId>maven-plugin-parent</artifactId>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<version>2.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>maven-core-it0007</artifactId>
|
||||
<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>
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven.plugins:maven-plugin-parent:2.0:pom}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0007;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
name = jason
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0007;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
target/touch.txt
|
||||
target/test-basedir-alignment/touch.txt
|
|
@ -1 +0,0 @@
|
|||
compile
|
|
@ -1,32 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0008</artifactId>
|
||||
<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>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-core-it-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>touch</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven.plugins:maven-core-it-plugin:1.0:maven-plugin}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0008;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0008;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
target/pluginItem
|
||||
target/goalItem
|
||||
!target/bad-item
|
|
@ -1 +0,0 @@
|
|||
generate-resources
|
|
@ -1,40 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0009</artifactId>
|
||||
<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>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-core-it-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<configuration>
|
||||
<pluginItem>pluginItem</pluginItem>
|
||||
<goalItem>bad-item</goalItem>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>touch</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<goalItem>goalItem</goalItem>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven.plugins:maven-core-it-plugin:1.0:maven-plugin}
|
|
@ -1 +0,0 @@
|
|||
target/classes/org/apache/maven/it0010/PersonFinder.class
|
|
@ -1 +0,0 @@
|
|||
compile
|
|
@ -1,23 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0010</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-plugin-api</artifactId>
|
||||
<version>2.0-beta-1</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<type>jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</model>
|
|
@ -1,11 +0,0 @@
|
|||
package org.apache.maven.it0010;
|
||||
|
||||
public class PersonFinder
|
||||
{
|
||||
public void findPerson()
|
||||
throws Exception
|
||||
{
|
||||
// look it up at runtime, but do not require it at compile time
|
||||
Class.forName( "org.codehaus.classworlds.ClassRealm" );
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package org.apache.maven.it0010;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonFinderTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testFindPerson()
|
||||
throws Exception
|
||||
{
|
||||
// should be no exceptions
|
||||
new PersonFinder().findPerson();
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
target/classes/org/apache/maven/it0011/PersonFinder.class
|
|
@ -1 +0,0 @@
|
|||
compile
|
|
@ -1,39 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0011</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-plugin-api</artifactId>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-plugin-api</artifactId>
|
||||
<version>2.0-beta-1</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<type>jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
</model>
|
|
@ -1,6 +0,0 @@
|
|||
package org.apache.maven.it0011;
|
||||
|
||||
public class PersonFinder
|
||||
{
|
||||
org.apache.maven.plugin.Mojo mojo;
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0012-child-project</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>3.0.3</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-core-it-plugin</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<configuration>
|
||||
<outputDirectory>${basedir}/target/</outputDirectory>
|
||||
<pluginFile>child-touch-${version}.txt</pluginFile>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</model>
|
|
@ -1,2 +0,0 @@
|
|||
target/touch-3.8.1.txt
|
||||
child-project/target/child-touch-3.0.3.txt
|
|
@ -1 +0,0 @@
|
|||
core-it:touch
|
|
@ -1,21 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0012</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>3.8.1</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-core-it-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<configuration>
|
||||
<pluginFile>touch-${version}.txt</pluginFile>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<modules>
|
||||
<module>child-project</module>
|
||||
</modules>
|
||||
</model>
|
|
@ -1,2 +0,0 @@
|
|||
target/maven-it0013-plugin-1.0-SNAPSHOT.jar
|
||||
target/it0013-verify
|
|
@ -1,2 +0,0 @@
|
|||
install
|
||||
it0013:it0013
|
|
@ -1,30 +0,0 @@
|
|||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-it0013-plugin</artifactId>
|
||||
<packaging>maven-plugin</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-plugin-api</artifactId>
|
||||
<version>2.0-beta-1</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<type>jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
<name>Test Repository</name>
|
||||
<url>file:/tmp/testRepo</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</project>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:org.apache.maven.plugins:maven-it0013-plugin:1.0-SNAPSHOT:maven-plugin}
|
|
@ -1,70 +0,0 @@
|
|||
package org.apache.maven.plugin.coreit;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2004 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
import org.apache.maven.plugin.AbstractMojo;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @goal it0013
|
||||
*
|
||||
* @description touches a test file
|
||||
*
|
||||
*/
|
||||
public class CoreIt0013Mojo
|
||||
extends AbstractMojo
|
||||
{
|
||||
private static final int DELETE_RETRY_SLEEP_MILLIS = 10;
|
||||
|
||||
/**
|
||||
* @parameter expression="${project.build.directory}"
|
||||
* @required
|
||||
*/
|
||||
private String outputDirectory;
|
||||
|
||||
public void execute()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
getLog().info( "outputDirectory = " + outputDirectory );
|
||||
|
||||
File f = new File( outputDirectory );
|
||||
|
||||
if ( !f.exists() )
|
||||
{
|
||||
f.mkdirs();
|
||||
}
|
||||
|
||||
File touch = new File( f, "it0013-verify" );
|
||||
|
||||
try
|
||||
{
|
||||
FileWriter w = new FileWriter( touch );
|
||||
|
||||
w.write( "it0013-verify" );
|
||||
|
||||
w.close();
|
||||
}
|
||||
catch ( IOException e )
|
||||
{
|
||||
throw new MojoExecutionException( "Error writing verification file.", e );
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
target/classes/org/apache/maven/it0001/Person.class
|
|
@ -1 +0,0 @@
|
|||
test
|
|
@ -1,28 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0014</artifactId>
|
||||
<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>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.4</source>
|
||||
<target>1.4</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</model>
|
|
@ -1,18 +0,0 @@
|
|||
package org.apache.maven.it0001;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
|
||||
assert true;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
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() );
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
target/classes/org/apache/maven/it0016/Person.class
|
||||
target/maven-core-it0016-1.0/index.html
|
||||
target/maven-core-it0016-1.0/WEB-INF/classes/org/apache/maven/it0016/Person.class
|
||||
target/maven-core-it0016-1.0/WEB-INF/lib/commons-logging-1.0.3.jar
|
||||
!target/maven-core-it0016-1.0/WEB-INF/lib/servletapi-2.4-20040521.jar
|
||||
target/maven-core-it0016-1.0.war
|
||||
target/maven-core-it0016-1.0.war!/index.html
|
||||
target/maven-core-it0016-1.0.war!/WEB-INF/classes/org/apache/maven/it0016/Person.class
|
||||
target/maven-core-it0016-1.0.war!/WEB-INF/lib/commons-logging-1.0.3.jar
|
|
@ -1 +0,0 @@
|
|||
package
|
|
@ -1,36 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0016</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>1.0</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<version>2.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.0.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</model>
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0016;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||
|
||||
<web-app >
|
||||
</web-app>
|
|
@ -1,5 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
Hello World
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +0,0 @@
|
|||
target/classes/org/apache/maven/it0017/Person.class
|
||||
target/maven-core-it0017-1.0.jar
|
||||
target/maven-core-it0017-1.0.jar!/META-INF/ejb-jar.xml
|
||||
target/maven-core-it0017-1.0.jar!/org/apache/maven/it0017/Person.class
|
|
@ -1 +0,0 @@
|
|||
package
|
|
@ -1,19 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0017</artifactId>
|
||||
<packaging>ejb</packaging>
|
||||
<version>1.0</version>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-ejb-plugin</artifactId>
|
||||
<configuration>
|
||||
<generateClient>true</generateClient>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</model>
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0017;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ejb-jar>
|
||||
<enterprise-beans>
|
||||
<session>
|
||||
<ejb-name>Hello</ejb-name>
|
||||
<home>org.apache.maven.it0017.HelloHome</home>
|
||||
<remote>org.apache.maven.it0017.Hello</remote>
|
||||
<ejb-class>org.apache.maven.it0017.HelloBean</ejb-class>
|
||||
<session-type>Stateless</session-type>
|
||||
<transaction-type>Container</transaction-type>
|
||||
</session>
|
||||
</enterprise-beans>
|
||||
<assembly-descriptor>
|
||||
<container-transaction>
|
||||
<method>
|
||||
<ejb-name>Hello</ejb-name>
|
||||
<method-name>*</method-name>
|
||||
</method>
|
||||
<trans-attribute>Required</trans-attribute>
|
||||
</container-transaction>
|
||||
</assembly-descriptor>
|
||||
</ejb-jar>
|
|
@ -1,2 +0,0 @@
|
|||
# TODO: I would like to build some small core-it artifacts for this purpose instead
|
||||
${artifact:commons-logging:commons-logging:1.0.3:jar}
|
|
@ -1 +0,0 @@
|
|||
package
|
|
@ -1,27 +0,0 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0018</artifactId>
|
||||
<version>1.0</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>marmalade</groupId>
|
||||
<artifactId>marmalade-el-commons</artifactId>
|
||||
<version>1.0-alpha-2</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>servletapi</groupId>
|
||||
<artifactId>servletapi</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</model>
|
|
@ -1 +0,0 @@
|
|||
rm ${artifact:commons-logging:commons-logging:1.0.3:jar}
|
|
@ -1 +0,0 @@
|
|||
target/classes/org/apache/maven/it0019/Person.class
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue