diff --git a/maven-site/src/site/apt/guides/mini/guide-attached-tests.apt b/maven-site/src/site/apt/guides/mini/guide-attached-tests.apt new file mode 100644 index 0000000000..c023683eaf --- /dev/null +++ b/maven-site/src/site/apt/guides/mini/guide-attached-tests.apt @@ -0,0 +1,80 @@ + ------ + Guide to using attached tests + ------ + Jason van Zyl + ------ + 12 October 2005 + ------ + +Guide to using attached tests + + Many times you may want to resuse the tests that you have created for a project in another. For example if you have + written <<>> and it contains test code in the <<<${basedir}/src/test/java>>> it would be useful to package + up those compiled tests in a JAR and deploy them for general resuse. To do this you would configure the + <<>> as follows: + ++----+ + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + test-jar + + + + + + + + ++----+ + +* Installing the attached test JAR + + In order to install the attached test JAR you simply use the standard install phase by executing + the following command: + ++----+ + +m2 install + ++----+ + +* Deploying the attached test JAR + + In order to deploy the attached test JAR you simply use the standard deploy phase by executing + the following command: + ++----+ + +m2 deploy + ++----+ + +* Using the attached test JAR + + In order to use the attached test JAR that was created above you simply specify a dependency on the main + artifact with a specified type of <<>>: + ++----+ + + + ... + + + + + 1.0-SNAPSHOT + tests + + + ... + + ++----+ diff --git a/maven-site/src/site/apt/guides/mini/guide-deploy-ftp.apt b/maven-site/src/site/apt/guides/mini/guide-deploy-ftp.apt index c18d473308..61409588e4 100644 --- a/maven-site/src/site/apt/guides/mini/guide-deploy-ftp.apt +++ b/maven-site/src/site/apt/guides/mini/guide-deploy-ftp.apt @@ -40,7 +40,7 @@ Guide to deploying with FTP ftp-repository - ftp://repository.mycompany.com + ftp://repository.mycompany.com/repository diff --git a/maven-site/src/site/apt/guides/mini/guide-deploy-ssh-external.apt b/maven-site/src/site/apt/guides/mini/guide-deploy-ssh-external.apt new file mode 100644 index 0000000000..aeae06cc42 --- /dev/null +++ b/maven-site/src/site/apt/guides/mini/guide-deploy-ssh-external.apt @@ -0,0 +1,72 @@ + ------ + Guide to deploying with an external SSH command + ------ + Jason van Zyl + ------ + 12 October 2005 + ------ + +Guide to deploying with an external SSH command + + In order to deploy artifacts using FTP you must first specify the use of an FTP server in the + <> element of your POM as well as specifying an <<>> in your + <<>> element which will pull in the FTP artifacts required to deploy with FTP: + ++----+ + + + + com.stchome + mavenFull + 1.0 + + 4.0.0 + com.mycompany + my-app + jar + 1.1-SNAPSHOT + Maven Quick Start Archetype + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + + + + + ssh-repository + scp://repository.mycompany.com/repository + + + + + + + org.apache.maven.wagon + wagon-ssh-external + 1.0-alpha-4 + + + + + + ++----+ + + Using the external ssh command means you don't need any additional configuration in your <<>> + file as everything will be taken from the environment. + + You should, of course, make sure that you can login into the specified SSH server by hand before attempting the + deployment with Maven. Once you have verified that everything is setup correctly you can now deploy your artifacts + using Maven: + ++----+ + +m2 deploy + ++----+