Moved sample inside src/plugin-test for proper plugin testing. Now testing the dashboard can be done by running "maven plugin:test". Note that this uses a new tag I've committed in the plugin plugin.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114373 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a79c8c2e62
commit
bf63a2852c
@ -1,65 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
|
||||
<!-- the version of maven's project object model -->
|
||||
<pomVersion>3</pomVersion>
|
||||
|
||||
<!-- a unique name for this project -->
|
||||
<id>maven-dashboard-sample</id>
|
||||
|
||||
<!-- a short but descriptive name for the project -->
|
||||
<name>Dashboard Sample</name>
|
||||
|
||||
<!-- The version of the project under development, e.g.
|
||||
1.1, 1.2, 2.0-dev -->
|
||||
<currentVersion>1.0</currentVersion>
|
||||
|
||||
<!-- details about the organization that 'owns' the project -->
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://jakarta.apache.org/</url>
|
||||
</organization>
|
||||
|
||||
<!-- the year the project started -->
|
||||
<inceptionYear>2003</inceptionYear>
|
||||
|
||||
<!-- the top level of java packages that this project defines
|
||||
e.g. if your project contains the packages
|
||||
com.mycompany.accounts.reports, com.mycompany.accounts.reports
|
||||
and com.mycompany.accounts.utils, the package would be
|
||||
'com.mycompany.accounts' -->
|
||||
<package>org.apache.maven.dashboard.sample</package>
|
||||
|
||||
<!-- a short description of what the project does -->
|
||||
<shortDescription>A sample project using the Dashboard report</shortDescription>
|
||||
|
||||
<!-- the project home page -->
|
||||
<url>http://maven.apache.org/</url>
|
||||
|
||||
<!-- the version control repository and http url for online access
|
||||
the connection element has the form:
|
||||
scm:<system>:<system specific connection string> -->
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/</url>
|
||||
</repository>
|
||||
|
||||
<!-- any mailing lists for the project -->
|
||||
<mailingLists/>
|
||||
|
||||
<!-- who the developers are for the project -->
|
||||
<developers/>
|
||||
|
||||
<!-- jar files the project is dependent on -->
|
||||
<dependencies/>
|
||||
|
||||
<!-- build information for the project -->
|
||||
<build>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
</build>
|
||||
|
||||
<reports>
|
||||
<report>maven-dashboard-plugin</report>
|
||||
</reports>
|
||||
|
||||
</project>
|
||||
@ -1,72 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
|
||||
<!-- the version of maven's project object model -->
|
||||
<pomVersion>3</pomVersion>
|
||||
|
||||
<!-- a unique name for this project -->
|
||||
<id>maven-dashboard-sample-subproject1</id>
|
||||
|
||||
<!-- a short but descriptive name for the project -->
|
||||
<name>Dashboard Sample Subproject1</name>
|
||||
|
||||
<!-- The version of the project under development, e.g.
|
||||
1.1, 1.2, 2.0-dev -->
|
||||
<currentVersion>1.0</currentVersion>
|
||||
|
||||
<!-- details about the organization that 'owns' the project -->
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://jakarta.apache.org/</url>
|
||||
</organization>
|
||||
|
||||
<!-- the year the project started -->
|
||||
<inceptionYear>2003</inceptionYear>
|
||||
|
||||
<!-- the top level of java packages that this project defines
|
||||
e.g. if your project contains the packages
|
||||
com.mycompany.accounts.reports, com.mycompany.accounts.reports
|
||||
and com.mycompany.accounts.utils, the package would be
|
||||
'com.mycompany.accounts' -->
|
||||
<package>org.apache.maven.dashboard.sample.subproject1</package>
|
||||
|
||||
<!-- a short description of what the project does -->
|
||||
<shortDescription>A sample project using the Dashboard report</shortDescription>
|
||||
|
||||
<!-- the project home page -->
|
||||
<url>http://maven.apache.org/</url>
|
||||
|
||||
<!-- the version control repository and http url for online access
|
||||
the connection element has the form:
|
||||
scm:<system>:<system specific connection string> -->
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/</url>
|
||||
</repository>
|
||||
|
||||
<!-- any mailing lists for the project -->
|
||||
<mailingLists/>
|
||||
|
||||
<!-- who the developers are for the project -->
|
||||
<developers/>
|
||||
|
||||
<!-- jar files the project is dependent on -->
|
||||
<dependencies/>
|
||||
|
||||
<!-- build information for the project -->
|
||||
<build>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
|
||||
<unitTest>
|
||||
<includes>
|
||||
<include>**/Test*.java</include>
|
||||
</includes>
|
||||
</unitTest>
|
||||
</build>
|
||||
|
||||
<reports>
|
||||
<report>maven-checkstyle-plugin</report>
|
||||
<report>maven-clover-plugin</report>
|
||||
</reports>
|
||||
|
||||
</project>
|
||||
@ -1,65 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
|
||||
<!-- the version of maven's project object model -->
|
||||
<pomVersion>3</pomVersion>
|
||||
|
||||
<!-- a unique name for this project -->
|
||||
<id>maven-dashboard-sample-subproject2</id>
|
||||
|
||||
<!-- a short but descriptive name for the project -->
|
||||
<name>Dashboard Sample Subproject2</name>
|
||||
|
||||
<!-- The version of the project under development, e.g.
|
||||
1.1, 1.2, 2.0-dev -->
|
||||
<currentVersion>1.0</currentVersion>
|
||||
|
||||
<!-- details about the organization that 'owns' the project -->
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://jakarta.apache.org/</url>
|
||||
</organization>
|
||||
|
||||
<!-- the year the project started -->
|
||||
<inceptionYear>2003</inceptionYear>
|
||||
|
||||
<!-- the top level of java packages that this project defines
|
||||
e.g. if your project contains the packages
|
||||
com.mycompany.accounts.reports, com.mycompany.accounts.reports
|
||||
and com.mycompany.accounts.utils, the package would be
|
||||
'com.mycompany.accounts' -->
|
||||
<package>org.apache.maven.dashboard.sample.subproject2</package>
|
||||
|
||||
<!-- a short description of what the project does -->
|
||||
<shortDescription>A sample project using the Dashboard report</shortDescription>
|
||||
|
||||
<!-- the project home page -->
|
||||
<url>http://maven.apache.org/</url>
|
||||
|
||||
<!-- the version control repository and http url for online access
|
||||
the connection element has the form:
|
||||
scm:<system>:<system specific connection string> -->
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/</url>
|
||||
</repository>
|
||||
|
||||
<!-- any mailing lists for the project -->
|
||||
<mailingLists/>
|
||||
|
||||
<!-- who the developers are for the project -->
|
||||
<developers/>
|
||||
|
||||
<!-- jar files the project is dependent on -->
|
||||
<dependencies/>
|
||||
|
||||
<!-- build information for the project -->
|
||||
<build>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
</build>
|
||||
|
||||
<reports>
|
||||
<report>maven-checkstyle-plugin</report>
|
||||
</reports>
|
||||
|
||||
</project>
|
||||
@ -1,59 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
|
||||
<!-- the version of maven's project object model -->
|
||||
<pomVersion>3</pomVersion>
|
||||
|
||||
<!-- a unique name for this project -->
|
||||
<id>maven-dashboard-sample-subproject3</id>
|
||||
|
||||
<!-- a short but descriptive name for the project -->
|
||||
<name>Dashboard Sample Subproject3</name>
|
||||
|
||||
<!-- The version of the project under development, e.g.
|
||||
1.1, 1.2, 2.0-dev -->
|
||||
<currentVersion>1.0</currentVersion>
|
||||
|
||||
<!-- details about the organization that 'owns' the project -->
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://jakarta.apache.org/</url>
|
||||
</organization>
|
||||
|
||||
<!-- the year the project started -->
|
||||
<inceptionYear>2003</inceptionYear>
|
||||
|
||||
<!-- the top level of java packages that this project defines
|
||||
e.g. if your project contains the packages
|
||||
com.mycompany.accounts.reports, com.mycompany.accounts.reports
|
||||
and com.mycompany.accounts.utils, the package would be
|
||||
'com.mycompany.accounts' -->
|
||||
<package>org.apache.maven.dashboard.sample.subproject3</package>
|
||||
|
||||
<!-- a short description of what the project does -->
|
||||
<shortDescription>A sample project using the Dashboard report</shortDescription>
|
||||
|
||||
<!-- the project home page -->
|
||||
<url>http://maven.apache.org/</url>
|
||||
|
||||
<!-- the version control repository and http url for online access
|
||||
the connection element has the form:
|
||||
scm:<system>:<system specific connection string> -->
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/</url>
|
||||
</repository>
|
||||
|
||||
<!-- any mailing lists for the project -->
|
||||
<mailingLists/>
|
||||
|
||||
<!-- who the developers are for the project -->
|
||||
<developers/>
|
||||
|
||||
<!-- jar files the project is dependent on -->
|
||||
<dependencies/>
|
||||
|
||||
<!-- build information for the project -->
|
||||
<build/>
|
||||
|
||||
</project>
|
||||
0
dashboard/src/plugin-test/LICENSE.txt
Normal file
0
dashboard/src/plugin-test/LICENSE.txt
Normal file
21
dashboard/src/plugin-test/maven.xml
Normal file
21
dashboard/src/plugin-test/maven.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<project
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:ant="jelly:ant"
|
||||
xmlns:assert="assert">
|
||||
|
||||
<goal name="testPlugin">
|
||||
|
||||
<!-- Fixture -->
|
||||
<j:set var="goal" value="clean"/>
|
||||
<attainGoal name="multiproject:goal"/>
|
||||
|
||||
<!-- Call goal to test -->
|
||||
<attainGoal name="site"/>
|
||||
|
||||
<!-- Verifications -->
|
||||
<assert:assertFileExists file="${maven.gen.docs}/dashboard-report.xml"/>
|
||||
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
@ -3,6 +3,8 @@
|
||||
# -------------------------------------------------------------------
|
||||
maven.xdoc.date=left
|
||||
maven.xdoc.version=${pom.currentVersion}
|
||||
maven.checkstyle.header.file = ${basedir}/../../LICENSE.txt
|
||||
maven.checkstyle.header.file = ${basedir}/LICENSE.txt
|
||||
|
||||
maven.dashboard.aggregators = csall,cserrors,cswarnings,clovertpc,cloverloc,cloverncloc
|
||||
|
||||
offline=true
|
||||
35
dashboard/src/plugin-test/project.xml
Normal file
35
dashboard/src/plugin-test/project.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>test-maven-dashboard-plugin</id>
|
||||
<name>Maven Dashboard plugin test</name>
|
||||
<groupId>maven</groupId>
|
||||
<currentVersion>1.0</currentVersion>
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://jakarta.apache.org/</url>
|
||||
</organization>
|
||||
<inceptionYear>2003</inceptionYear>
|
||||
<package>org.apache.maven.dashboard.test</package>
|
||||
<shortDescription>Test project for Maven Dashboard plugin</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/dashboard/</url>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/dashboard/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven-plugins/dashboard/</url>
|
||||
</repository>
|
||||
<mailingLists/>
|
||||
<developers/>
|
||||
<dependencies/>
|
||||
<build>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
|
||||
<unitTest>
|
||||
<includes>
|
||||
<include>**/Test*.java</include>
|
||||
</includes>
|
||||
</unitTest>
|
||||
</build>
|
||||
<reports>
|
||||
<report>maven-dashboard-plugin</report>
|
||||
</reports>
|
||||
</project>
|
||||
@ -3,4 +3,4 @@
|
||||
# -------------------------------------------------------------------
|
||||
maven.xdoc.date=left
|
||||
maven.xdoc.version=${pom.currentVersion}
|
||||
maven.checkstyle.header.file = ${basedir}/../../../LICENSE.txt
|
||||
maven.checkstyle.header.file = ${basedir}/../LICENSE.txt
|
||||
10
dashboard/src/plugin-test/subproject1/project.xml
Normal file
10
dashboard/src/plugin-test/subproject1/project.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
<extend>${basedir}/../project.xml</extend>
|
||||
<id>test-maven-dashboard-plugin-subproject1</id>
|
||||
<name>Maven Dashboard plugin test - Subproject1</name>
|
||||
<reports>
|
||||
<report>maven-checkstyle-plugin</report>
|
||||
<report>maven-clover-plugin</report>
|
||||
</reports>
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package org.apache.maven.dashboard.sample.subproject1;
|
||||
package org.apache.maven.dashboard.test.subproject1;
|
||||
|
||||
/* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
@ -61,7 +61,7 @@ package org.apache.maven.dashboard.sample.subproject1;
|
||||
*
|
||||
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
||||
*
|
||||
* @version $Id: Sample.java,v 1.2 2003/11/05 19:26:58 vmassol Exp $
|
||||
* @version $Id: Sample.java,v 1.1 2003/11/17 21:36:58 vmassol Exp $
|
||||
*/
|
||||
public class Sample
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
package org.apache.maven.dashboard.sample.subproject1;
|
||||
package org.apache.maven.dashboard.test.subproject1;
|
||||
|
||||
/* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
@ -63,7 +63,7 @@ import junit.framework.TestCase;
|
||||
*
|
||||
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
||||
*
|
||||
* @version $Id: TestSample.java,v 1.1 2003/11/05 19:26:58 vmassol Exp $
|
||||
* @version $Id: TestSample.java,v 1.1 2003/11/17 21:37:00 vmassol Exp $
|
||||
*/
|
||||
public class TestSample extends TestCase
|
||||
{
|
||||
@ -3,4 +3,4 @@
|
||||
# -------------------------------------------------------------------
|
||||
maven.xdoc.date=left
|
||||
maven.xdoc.version=${pom.currentVersion}
|
||||
maven.checkstyle.header.file = ${basedir}/../../../LICENSE.txt
|
||||
maven.checkstyle.header.file = ${basedir}/../LICENSE.txt
|
||||
9
dashboard/src/plugin-test/subproject2/project.xml
Normal file
9
dashboard/src/plugin-test/subproject2/project.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
<extend>${basedir}/../project.xml</extend>
|
||||
<id>test-maven-dashboard-plugin-subproject2</id>
|
||||
<name>Maven Dashboard plugin test - Subproject2</name>
|
||||
<reports>
|
||||
<report>maven-checkstyle-plugin</report>
|
||||
</reports>
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package org.apache.maven.dashboard.sample.subproject2;
|
||||
package org.apache.maven.dashboard.test.subproject2;
|
||||
|
||||
/* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
@ -61,7 +61,7 @@ package org.apache.maven.dashboard.sample.subproject2;
|
||||
*
|
||||
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
||||
*
|
||||
* @version $Id: Sample.java,v 1.1 2003/11/04 21:11:32 vmassol Exp $
|
||||
* @version $Id: Sample.java,v 1.1 2003/11/17 21:37:00 vmassol Exp $
|
||||
*/
|
||||
public class Sample
|
||||
{
|
||||
@ -3,4 +3,4 @@
|
||||
# -------------------------------------------------------------------
|
||||
maven.xdoc.date=left
|
||||
maven.xdoc.version=${pom.currentVersion}
|
||||
maven.checkstyle.header.file = ${basedir}/../../../LICENSE.txt
|
||||
maven.checkstyle.header.file = ${basedir}/../LICENSE.txt
|
||||
6
dashboard/src/plugin-test/subproject3/project.xml
Normal file
6
dashboard/src/plugin-test/subproject3/project.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
<extend>${basedir}/../project.xml</extend>
|
||||
<id>test-maven-dashboard-plugin-subproject3</id>
|
||||
<name>Maven Dashboard plugin test - Subproject3</name>
|
||||
</project>
|
||||
Loading…
x
Reference in New Issue
Block a user