]> source.dussan.org Git - archiva.git/commitdiff
ability to work offline when writing documentation
authorOlivier Lamy <olamy@apache.org>
Mon, 10 Sep 2012 19:13:33 +0000 (19:13 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 10 Sep 2012 19:13:33 +0000 (19:13 +0000)
see DOXIA-478

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1383059 13f79535-47bb-0310-9956-ffa450edef68

archiva-docs/pom.xml
archiva-docs/src/site/apt/adminguide/customising-security.apt
archiva-docs/src/site/apt/adminguide/repositories-content-storage.apt
archiva-docs/src/site/apt/adminguide/webservices/rest.apt.vm

index 3cff952fecb62ff4257a1bca8e4fb5abba2be9fb..692e046a85956be49bd59f469fe0369842606fd7 100644 (file)
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>offline</id>
+      <activation>
+        <property>
+          <name>offline</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <dependencies>
+                <dependency>
+                  <groupId>org.apache.maven.doxia</groupId>
+                  <artifactId>doxia-core</artifactId>
+                  <version>1.4-SNAPSHOT</version>
+                </dependency>
+              </dependencies>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
   </profiles>
 </project>
index 3ed7961b0f4084cda5d15b33f4b9ca0b76a04e41..ec38460694c2cdcdd626b6e4edc6735dbca612bb 100644 (file)
@@ -74,7 +74,7 @@ security.policy.password.rule.nowhitespace.enabled=true
 
   Values from sources
 
-%{snippet|id=configuration-files-list|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml}
+%{snippet|id=configuration-files-list|ignoreDownloadError=true|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml}
 
 
 
index fc2f58471586f462ea3a51b08ce86b9b134ad5a4..fee2bce516e63de5fc94ccba3d9055bc603fc294 100644 (file)
@@ -32,7 +32,7 @@ Repositories Content Storage
 
  A default Jackrabbit configuration is provided :
 
-%{snippet|id=default-repository|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/plugins/metadata-store-jcr/src/main/resources/org/apache/archiva/metadata/repository/jcr/repository.xml}
+%{snippet|id=default-repository|ignoreDownloadError=true|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/plugins/metadata-store-jcr/src/main/resources/org/apache/archiva/metadata/repository/jcr/repository.xml}
 
  You can use your own configuration by adding a file repository.xml in $\{appserver.base}/conf.
 
@@ -40,4 +40,4 @@ Repositories Content Storage
 
  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:
 
-%{snippet|id=jcr-location|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml}
\ No newline at end of file
+%{snippet|id=jcr-location|ignoreDownloadError=true|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml}
\ No newline at end of file
index f75437eb83ab8483111f1b88a85780df8dbb7c4b..2f649a46c47eb7d8b145afd8932714951faf7d68 100644 (file)
@@ -36,42 +36,42 @@ Using REST Services
 
    Authentication headers for connect to your Archiva instance :
 
-%{snippet|id=authz-header|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
+%{snippet|id=authz-header|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
 
 
    Get a Search Service Client :
 
-%{snippet|id=cxf-searchservice-creation|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
+%{snippet|id=cxf-searchservice-creation|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
 
    Quick Search
 
-%{snippet|id=quick-search|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
+%{snippet|id=quick-search|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
 
    Search Artifacts Version : to search all availables version with a groupId and artifactId and packaging (if empty jar is used)
 
-%{snippet|id=searchservice-artifact-versions|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
+%{snippet|id=searchservice-artifact-versions|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
 
   Search Service with a classifier :
 
-%{snippet|id=searchservice-with-classifier|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
+%{snippet|id=searchservice-with-classifier|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
 
   Search Service with a classifier :
 
-%{snippet|id=searchservice-with-classifier|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
+%{snippet|id=searchservice-with-classifier|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
 
   Copy Artifact from a repository to an other one :
 
   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
 
-%{snippet|id=copy-artifact|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/CopyArtifactTest.java}
+%{snippet|id=copy-artifact|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/CopyArtifactTest.java}
 
 
   To know all the possible options, you can refer to the javadoc of SearchRequest class.
 
   Dependencies to add in order to use those REST Services
 
-%{snippet|id=rest-dependencies|url=https://svn.apache.org/repos/asf/archiva/trunk/pom.xml}
+%{snippet|id=rest-dependencies|ignoreDownloadError=true|url=https://svn.apache.org/repos/asf/archiva/trunk/pom.xml}
 
   Current versions use in Apache Archiva: