From: Maria Odea B. Ching Date: Sun, 15 Mar 2009 04:54:09 +0000 (+0000) Subject: [MRM-1099] X-Git-Tag: archiva-1.2~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=18bb01e2cdd6aa1a347042a22e988f1b2882a095;p=archiva.git [MRM-1099] submitted by Lani Sara o new documentation for Delete Artifact o updates on deploy, browse, find and upload artifact docs o made a few tweaks on the submitted patch git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@754614 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-docs/src/site/apt/userguide/browsing.apt b/archiva-docs/src/site/apt/userguide/browsing.apt index e73c11d6d..c07b2c7c2 100644 --- a/archiva-docs/src/site/apt/userguide/browsing.apt +++ b/archiva-docs/src/site/apt/userguide/browsing.apt @@ -3,7 +3,7 @@ ------ Maria Odea Ching ------ - 9 November 2007 + 23 February 2009 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one @@ -43,28 +43,32 @@ Browsing * Artifact Info - The Artifact Info page is divided into 5 views: + Items in the repositories are hyperlinked allowing you easy access to view more information. By clicking on the Group ID or Artifact ID you will be taken to the repository browser. The Artifact Info page is divided into six views: - 1. Info. Basic information about the artifact is displayed here. These are the groupId, artifactId, version and + 1. Info. Basic information about the artifact is displayed here. These are the groupId, artifactId, version and packaging. A dependency pom snippet is also available, which a user can just copy and paste in a pom file to declare the artifact as a dependency of the project. 2. Dependencies. The dependencies of the artifact will be listed here. The user can easily navigate to a specific - dependency by clicking on the groupId, artifactId or version link. The scope of the dependency is also shown. + dependency by clicking on the groupId, artifactId, or version link. The scope of the dependency is also shown. - 3. Dependency Tree. The dependencies of the artifact are displayed in a tree-like view, which can also be + 3. Dependency Tree. The dependencies of the artifact are displayed in a tree-like view, which can also be navigated. 4. Used By. Lists all the artifacts in the repository which use this artifact. 5. Mailing Lists. The project mailing lists available in the artifact's pom are displayed here. + + 6. Download. Clicking on this link will download the artifact to your local machine. * Downloading Artifacts Artifacts can be downloaded from the artifact info page. All files, except for the metadata.xml files, that are associated with the artifact are available in the download box. The size of the files in bytes are displayed at the right section of the download box. - + + Note: Upon downloading the artifact, you will be asked to enter your username and password for the repository where the artifact will be downloaded from. Only users with Global Repository Manager, Repository Manager, or Repository Observer roles for that repository can download the artifact. + \ No newline at end of file diff --git a/archiva-docs/src/site/apt/userguide/delete-artifact.apt b/archiva-docs/src/site/apt/userguide/delete-artifact.apt new file mode 100644 index 000000000..58f8bc487 --- /dev/null +++ b/archiva-docs/src/site/apt/userguide/delete-artifact.apt @@ -0,0 +1,32 @@ + ------ +Deleting an Artifact + ------ +25 February 2009 + ------ + +Deleting an Artifact + + The Delete Artifact feature allows artifacts to be deleted from the managed repositories. + +---- + User must have a Repository Manager role to a repository to be able to delete artifacts from it. +---- + + To delete artifacts, perform these steps: + + 1. From the left navigation menu, click <>. This displays the Delete Artifact page. + + 2. Supply the necessary values for the following fields: + + * Group Id: The group id of the artifact to be deleted. + + * Artifact Id:The name of the artifact to be deleted. + + * Version: The specific version of the artifact to be deleted. + + * Repository Id: Select from the drop-down list the name of the managed repository where the artifact is located. + + + 3. Click Submit. + + If the artifact exists in the specified repository, it will be overwritten and the metadata.xml will also be updated. diff --git a/archiva-docs/src/site/apt/userguide/deploy.apt b/archiva-docs/src/site/apt/userguide/deploy.apt index 006513eda..bf5291c70 100644 --- a/archiva-docs/src/site/apt/userguide/deploy.apt +++ b/archiva-docs/src/site/apt/userguide/deploy.apt @@ -164,10 +164,13 @@ mvn deploy:deploy-file -Dfile=filename.jar -DpomFile=filename.pom * Deploying via the {Web UI} Form - The easiest way to deploy in the repository is via the Web UI form, which can be accessed in the 'Upload Artifact' section. + The easiest way to deploy in the repository is via the Web UI form, which can be accessed in the <> section. Just follow these steps: - [[1]] Fill up the following required fields: + [[1]] In Archiva, click the <> option in the left menu. You should see a form similar to + the one at the end of this section. + + [[2]] Fill in the following required fields: * Group Id - the groupId of the artifact to be deployed. @@ -181,16 +184,16 @@ mvn deploy:deploy-file -Dfile=filename.jar -DpomFile=filename.pom [] - [[2]] Select the repository you want to deploy to. Please note that if you do not have write permission to the repository, - you will not be allowed to deploy in it. + [[3]] Select the repository you want to deploy to. Please note that if you do not have write permission to the repository, + you will not be allowed to deploy on it. - [[3]] Now, if you want Archiva to generate a pom for the artifact, check the Generate Maven 2 POM field. + [[4]] Now, if you want Archiva to generate a pom for the artifact, check the Generate Maven 2 POM field. (Right now, only Maven 2 poms can be generated.) Alternately, supply a POM file to be deployed alongside the artifact. - [[4]] Click Submit and a message will be displayed notifying you if the upload/deployment was successful or not. + [[5]] Click Submit and a message will be displayed notifying you if the upload/deployment was successful or not. [] - + These are the files that will be in your repository after deployment: * artifact @@ -202,5 +205,9 @@ mvn deploy:deploy-file -Dfile=filename.jar -DpomFile=filename.pom * maven-metadata.xml.sha1 and maven-metadata.xml.md5 (these will be generated for newly created maven-metadata.xml files, otherwise they will just be updated) + [] + +[../images/upload-artifact.jpg] Upload Artifact + ~~TODO: information for Maven 1, ant tasks, ivy, etc. diff --git a/archiva-docs/src/site/apt/userguide/find-artifact.apt b/archiva-docs/src/site/apt/userguide/find-artifact.apt index 8bdfb5aba..c807f1317 100644 --- a/archiva-docs/src/site/apt/userguide/find-artifact.apt +++ b/archiva-docs/src/site/apt/userguide/find-artifact.apt @@ -24,13 +24,26 @@ Identifying an Artifact [../images/find-artifact.png] Find Artifact - Once you submit the form Archiva will look to match the checksum: + To find an artifact, perform the following steps: - * If more than one artifact matches, a list of results are returned + [[1]] Click <> in the left navigation menu. - * If a unique match is found, the individual artifact information page is returned + [[2]] On the opened page, you will see a file-upload field. Upload any JAR file (or other artifact) from your local file system. You must enter an exact filename. In general, you would use the Browse button for entering the filename. - * If no match is found, a "no results" page is returned + [[3]] Click Search. + [[4]] The whole file is not uploaded, but the checksum is. It will search the remote repository for an exact match of the file you specified and display the result of the search. + + [] + + Once you submit the form, Archiva will look to match the checksum: + + * If more than one artifact matches, a list of results is returned. + + * If a unique match is found, the individual artifact information page is returned. + + * If no match is found, a "no results" page is returned. + + [] diff --git a/archiva-docs/src/site/resources/images/upload-artifact.jpg b/archiva-docs/src/site/resources/images/upload-artifact.jpg new file mode 100644 index 000000000..0556d2167 Binary files /dev/null and b/archiva-docs/src/site/resources/images/upload-artifact.jpg differ diff --git a/archiva-docs/src/site/site.xml b/archiva-docs/src/site/site.xml index d7870c291..9104d78e1 100644 --- a/archiva-docs/src/site/site.xml +++ b/archiva-docs/src/site/site.xml @@ -34,6 +34,7 @@ +