You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2016/05/30 11:32:05 UTC
svn commit: r1746105 - in /archiva/site-content/docs/2.2.1/adminguide:
customising-security.html repositories-content-storage.html
webservices/rest.html
Author: olamy
Date: Mon May 30 11:32:05 2016
New Revision: 1746105
URL: http://svn.apache.org/viewvc?rev=1746105&view=rev
Log:
Apache Archiva Versionned docs for 2.2.1
Modified:
archiva/site-content/docs/2.2.1/adminguide/customising-security.html
archiva/site-content/docs/2.2.1/adminguide/repositories-content-storage.html
archiva/site-content/docs/2.2.1/adminguide/webservices/rest.html
Modified: archiva/site-content/docs/2.2.1/adminguide/customising-security.html
URL: http://svn.apache.org/viewvc/archiva/site-content/docs/2.2.1/adminguide/customising-security.html?rev=1746105&r1=1746104&r2=1746105&view=diff
==============================================================================
--- archiva/site-content/docs/2.2.1/adminguide/customising-security.html (original)
+++ archiva/site-content/docs/2.2.1/adminguide/customising-security.html Mon May 30 11:32:05 2016
@@ -389,46 +389,7 @@ security.policy.password.rule.nowhitespa
<p><b>Note:</b> If installed standalone, Archiva's list of configuration files is <i>itself</i> configurable, and can be found in: <tt>apps/archiva/WEB-INF/applicationContext.xml</tt></p>
<p>Values from sources</p>
<div class="source">
-<pre><bean name="commons-configuration" class="org.apache.archiva.redback.components.registry.commons.CommonsConfigurationRegistry"
- init-method="initialize">
- <property name="properties">
- <value>
- <![CDATA[
- <configuration>
- <system/>
- <jndi prefix="java:comp/env" config-optional="true"/>
- <xml fileName="${user.home}/.m2/archiva.xml" config-optional="true"
- config-name="org.apache.archiva.user"
- config-at="org.apache.archiva"/>
- <xml fileName="${user.home}/.m2/shared.xml" config-optional="true"
- config-name="org.apache.maven.shared.app.user" config-at="org.apache.maven.shared.app"
- config-forceCreate="true"/>
- <properties fileName="${user.home}/.m2/security.properties" config-optional="true"
- config-at="org.apache.archiva.redback"/>
- <properties fileName="${user.home}/.m2/archiva.properties" config-optional="true"
- config-at="org.apache.archiva.redback"/>
- <xml fileName="${appserver.base}/conf/archiva.xml" config-optional="true"
- config-name="org.apache.archiva.base"
- config-at="org.apache.archiva"/>
- <xml fileName="${appserver.base}/conf/shared.xml" config-optional="true"
- config-name="org.apache.maven.shared.app.base" config-at="org.apache.maven.shared.app"/>
- <xml fileName="${appserver.base}/conf/common.xml" config-optional="true"/>
- <properties fileName="${appserver.base}/conf/security.properties" config-optional="true"
- config-at="org.apache.archiva.redback"/>
- <xml fileName="${appserver.home}/conf/archiva.xml" config-optional="true"
- config-at="org.apache.archiva"/>
- <xml fileName="${appserver.home}/conf/shared.xml" config-optional="true"
- config-at="org.apache.maven.shared.app"/>
- <xml fileName="${appserver.home}/conf/common.xml" config-optional="true"/>
- <properties fileName="${appserver.home}/conf/security.properties" config-optional="true"
- config-at="org.apache.archiva.redback"/>
- <properties fileName="org/apache/archiva/redback-security.properties" config-at="org.apache.archiva.redback"/>
- </configuration>
- ]]>
- </value>
- </property>
-</bean>
-</pre></div></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div></div>
</div>
</div>
</div>
Modified: archiva/site-content/docs/2.2.1/adminguide/repositories-content-storage.html
URL: http://svn.apache.org/viewvc/archiva/site-content/docs/2.2.1/adminguide/repositories-content-storage.html?rev=1746105&r1=1746104&r2=1746105&view=diff
==============================================================================
--- archiva/site-content/docs/2.2.1/adminguide/repositories-content-storage.html (original)
+++ archiva/site-content/docs/2.2.1/adminguide/repositories-content-storage.html Mon May 30 11:32:05 2016
@@ -350,44 +350,12 @@
<p>Prior to version 1.4-M1, repository content is now stored in a jcr repository (based on Apache Jackrabbit implementation).</p>
<p>A default Jackrabbit configuration is provided :</p>
<div class="source">
-<pre><Repository>
- <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
- <param name="path" value="${rep.home}/repository"/>
- </FileSystem>
- <Security appName="Jackrabbit">
- <SecurityManager class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" workspaceName="security"/>
- <AccessManager class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager"/>
- <LoginModule class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule"/>
- </Security>
- <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
- <Workspace name="${wsp.name}">
- <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
- <param name="path" value="${wsp.home}"/>
- </FileSystem>
- <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"/>
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${wsp.home}/index"/>
- </SearchIndex>
- </Workspace>
- <Versioning rootPath="${rep.home}/version">
- <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
- <param name="path" value="${rep.home}/version"/>
- </FileSystem>
- <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"/>
- </Versioning>
-</Repository>
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>You can use your own configuration by adding a file repository.xml in ${appserver.base}/conf.</p>
<p>By default, the Jcr repository is stored ${appserver.base}/data/jcr.</p>
<p>If you want to change this default location, you must edit the file WEB-INF/applicationContext.xml, uncomment/edit lines and change with your values:</p>
<div class="source">
-<pre><!--
-<bean id="jcr-config" class="org.apache.archiva.metadata.repository.jcr.ArchivaJcrRepositoryConfig" factory-method="create">
- <constructor-arg value="${appserver.base}/conf/repository.xml"/>
- <constructor-arg value="${appserver.base}/data/jcr"/>
-</bean>
--->
-</pre></div></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div></div>
<div class="section">
<h3><a name="Cassandra"></a>Cassandra</h3>
<p>With the distribution including the embeded Jetty, you can configure Cassandra runtime in the file conf/archiva-cassandra.properties.</p>
Modified: archiva/site-content/docs/2.2.1/adminguide/webservices/rest.html
URL: http://svn.apache.org/viewvc/archiva/site-content/docs/2.2.1/adminguide/webservices/rest.html?rev=1746105&r1=1746104&r2=1746105&view=diff
==============================================================================
--- archiva/site-content/docs/2.2.1/adminguide/webservices/rest.html (original)
+++ archiva/site-content/docs/2.2.1/adminguide/webservices/rest.html Mon May 30 11:32:05 2016
@@ -347,180 +347,52 @@
<h3><a name="Search_Service"></a>Search Service</h3>
<p>Authentication headers for connect to your Archiva instance :</p>
<div class="source">
-<pre> // guest with an empty password
- public static String guestAuthzHeader =
- "Basic " + org.apache.cxf.common.util.Base64Utility.encode( ( "guest" + ":" ).getBytes() );
-
- // with an other login/password
- //public String authzHeader =
- // "Basic " + org.apache.cxf.common.util.Base64Utility.encode( ( "login" + ":password" ).getBytes() );
-
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Get a Search Service Client :</p>
<div class="source">
<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Quick Search</p>
<div class="source">
-<pre>List<Artifact> artifacts = searchService.quickSearch( "commons-logging" );
-// return all artifacts with groupId OR artifactId OR version OR packaging OR className
-// NOTE : only artifacts with classifier empty are returned
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Search Artifacts Version : to search all availables version with a groupId and artifactId and packaging (if empty jar is used)</p>
<div class="source">
<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Search Service with a classifier :</p>
<div class="source">
-<pre> SearchRequest searchRequest = new SearchRequest();
- searchRequest.setGroupId( "commons-logging" );
- searchRequest.setArtifactId( "commons-logging" );
- searchRequest.setClassifier( "sources" );
-
- List<Artifact> artifacts = searchService.searchArtifacts( searchRequest );
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Search Service with a classifier :</p>
<div class="source">
-<pre> SearchRequest searchRequest = new SearchRequest();
- searchRequest.setGroupId( "commons-logging" );
- searchRequest.setArtifactId( "commons-logging" );
- searchRequest.setClassifier( "sources" );
-
- List<Artifact> artifacts = searchService.searchArtifacts( searchRequest );
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Copy Artifact from a repository to an other one :</p>
<p>For some reasons you want to use a test repository before moving your artifacts to a repository used by final users. To achieve this, you can use a service which can copy an artifact from a repository to an other one</p>
<div class="source">
-<pre>// configure the artifact you want to copy
-// if package ommited default will be jar
-ArtifactTransferRequest artifactTransferRequest = new ArtifactTransferRequest();
-artifactTransferRequest.setGroupId( "org.apache.karaf.features" );
-artifactTransferRequest.setArtifactId( "org.apache.karaf.features.core" );
-artifactTransferRequest.setVersion( "2.2.2" );
-artifactTransferRequest.setRepositoryId( SOURCE_REPO_ID );
-artifactTransferRequest.setTargetRepositoryId( TARGET_REPO_ID );
-// retrieve the service
-RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader );
-// copy the artifact
-Boolean res = repositoriesService.copyArtifact( artifactTransferRequest );
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>To know all the possible options, you can refer to the javadoc of SearchRequest class.</p></div>
<div class="section">
<h3><a name="Browse_Service"></a>Browse Service</h3>
<p>Get a Browse Service Client :</p>
<div class="source">
-<pre> BrowseService service =
- JAXRSClientFactory.create( getBaseUrl() + "/" + getRestServicesPath() + "/archivaServices/",
- BrowseService.class,
- Collections.singletonList( new JacksonJaxbJsonProvider() ) );
- // to add authentification
- if ( authzHeader != null )
- {
- WebClient.client( service ).header( "Authorization", authzHeader );
- }
-
- WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000000 );
- if ( useXml )
- {
- WebClient.client( service ).accept( MediaType.APPLICATION_XML_TYPE );
- WebClient.client( service ).type( MediaType.APPLICATION_XML_TYPE );
- }
- else
- {
- WebClient.client( service ).accept( MediaType.APPLICATION_JSON_TYPE );
- WebClient.client( service ).type( MediaType.APPLICATION_JSON_TYPE );
- }
- return service;
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Get artifacts based on project version metadata, generic metadata added previously in Archiva :</p>
<div class="source">
-<pre> BrowseService browseService = getBrowseService( authorizationHeader, true );
-
- browseService.addMetadata( "commons-cli", "commons-cli", "1.0", "wine", "bordeaux", TEST_REPO_ID );
-
- List<Artifact> artifactDownloadInfos =
- browseService.getArtifactsByProjectVersionMetadata( "wine", "bordeaux", TEST_REPO_ID );
-
- assertThat( artifactDownloadInfos ).isNotNull().isNotEmpty().hasSize( 3 );
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Get artifacts based on the artifact properties :</p>
<div class="source">
-<pre> BrowseService browseService = getBrowseService( authorizationHeader, true );
-
- List<Artifact> artifactDownloadInfos = browseService.getArtifactsByMetadata( "type", "pom", TEST_REPO_ID );
-
- assertThat( artifactDownloadInfos ).isNotNull().isNotEmpty().hasSize( 11 );
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Get artifacts based on the project properties from POM :</p>
<div class="source">
-<pre> BrowseService browseService = getBrowseService( authorizationHeader, true );
-
- List<Artifact> artifactDownloadInfos =
- browseService.getArtifactsByProperty( "org.name", "The Apache Software Foundation", TEST_REPO_ID );
-
- assertThat( artifactDownloadInfos ).isNotNull().isNotEmpty().hasSize( 7 );
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Searching by properties and metadata :</p>
<div class="source">
-<pre> BrowseService browseService = getBrowseService( authorizationHeader, true );
-
- List<Artifact> artifactDownloadInfos =
- browseService.searchArtifacts( "org.name", "The Apache Software Foundation", TEST_REPO_ID, true );
-
- assertThat( artifactDownloadInfos ).isNotNull().isNotEmpty().hasSize( 7 );
-</pre></div>
-<div class="source">
-<pre> BrowseService browseService = getBrowseService( authorizationHeader, true );
-
- List<Artifact> artifactDownloadInfos =
- browseService.searchArtifacts( "The Apache Software Foundation", TEST_REPO_ID, true );
-
- assertThat( artifactDownloadInfos ).isNotNull().isNotEmpty().hasSize( 7 );
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
+<div class="source">
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Get Search</p>
<div class="source">
-<pre>List<Artifact> artifacts = searchService.quickSearch( "commons-logging" );
-// return all artifacts with groupId OR artifactId OR version OR packaging OR className
-// NOTE : only artifacts with classifier empty are returned
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Dependencies to add in order to use those REST Services</p>
<div class="source">
-<pre> <dependency>
- <groupId>com.fasterxml.jackson.jaxrs</groupId>
- <artifactId>jackson-jaxrs-json-provider</artifactId>
- <version>${jacksonVersion}</version>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.jaxrs</groupId>
- <artifactId>jackson-jaxrs-xml-provider</artifactId>
- <version>${jacksonVersion}</version>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-annotations</artifactId>
- <version>${jacksonVersion}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxrs</artifactId>
- <version>${cxf.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-rs-client</artifactId>
- <version>${cxf.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-rs-extension-providers</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.archiva</groupId>
- <artifactId>archiva-rest-api</artifactId>
- <version>${project.version}</version>
- </dependency>
-</pre></div>
+<pre>Error during retrieving content skip as ignoreDownloadError activated.</pre></div>
<p>Current versions use in Apache Archiva:</p>
<ul>
<li>${project.version}: 2.2.1</li>