{"id":771,"date":"2019-05-01T21:32:52","date_gmt":"2019-05-01T09:32:52","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=771"},"modified":"2020-10-13T17:16:29","modified_gmt":"2020-10-13T04:16:29","slug":"configuring-archiva-with-mariadb-in-synology-diskstation","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=771","title":{"rendered":"Configuring Archiva with MariaDB in Synology Diskstation"},"content":{"rendered":"<ol>\n<li><a href=\"https:\/\/www.ronella.xyz\/?p=767\">Install Tomcat 7 package in Diskstation<\/a><\/li>\n<li>Download <strong>archiva war file<\/strong> from the following address:\n<pre>https:\/\/archiva.apache.org\/index.cgi<\/pre>\n<\/li>\n<li>Place the downloaded war file\u00a0<em>(e.g. apache-archiva-2.2.3.war)<\/em> into the following directory:\n<pre>\/volume1\/@appstore\/Tomcat7\/src\/webapps\/<\/pre>\n<\/li>\n<li>In <strong>MariaDB<\/strong>, add the following <strong>user<\/strong> with appropriate <strong>password<\/strong>.\n<pre>archivauser<\/pre>\n<p>and the following <strong>database<\/strong><\/p>\n<pre>archiva<\/pre>\n<\/li>\n<li>Download the following jar files:\n<pre><a href=\"https:\/\/mvnrepository.com\/artifact\/javax.mail\/mail\/1.4\">mail-1.4.jar<\/a> \r\n<a href=\"https:\/\/downloads.mariadb.org\/connector-java\/\">mariadb-java-client-1.5.x.jar<\/a><\/pre>\n<\/li>\n<li>Place the download jar files in the following directory:\n<pre>\/volume1\/@appstore\/Tomcat7\/src\/lib<\/pre>\n<\/li>\n<li>Create archiva.xml file in the following location:\n<pre>\/volume1\/@appstore\/Tomcat7\/src\/conf\/Catalina\/localhost<\/pre>\n<p>Add the following entries:<\/p>\n<pre>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;Context path=\"\/archiva\" docBase=\"\/volume1\/@appstore\/Tomcat7\/src\/webapps\/&lt;ARCHIVA_WAR_FILENAME&gt;\"&gt;\r\n&lt;Resource name=\"jdbc\/users\" auth=\"Container\" type=\"javax.sql.DataSource\"\r\n\tusername=\"archivauser\"\r\n\tpassword=\"&lt;PASSWORD_HERE&gt;\"\r\n\tdriverClassName=\"org.mariadb.jdbc.Driver\"\r\n\turl=\"jdbc:mariadb:\/\/&lt;MARIADB_HOST_IP&gt;:&lt;MARIADB_HOST_PORT\r\n\t\/archiva?autoReconnect=true\" \/&gt;\r\n&lt;Resource name=\"mail\/Session\" auth=\"Container\" \ttype=\"javax.mail.Session\" mail.smtp.host=\"localhost\"\/&gt;\r\n&lt;\/Context&gt;<\/pre>\n<p><em>Note: The &lt;ARCHIVA_WAR_FILENAME&gt;, &lt;PASSWORD_HERE&gt; &lt;MARIADB_HOST_IP&gt; and &lt;MARIADB_HOST_PORT tokens must be replaced by the downloaded war file from step 2, password used from step 4, IP address of MariaDB and port used by MariaDB repectively.<\/em><\/li>\n<li>Access archiva using the following address:\n<pre>http:\/\/&lt;DISKSTATION_HOST_IP&gt;:7070\/archiva<\/pre>\n<p><em>Note: Update the token &lt;DISKSTATION_HOST_IP&gt; with the IP of your Synology Diskstation.<\/em><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Install Tomcat 7 package in Diskstation Download archiva war file from the following address: https:\/\/archiva.apache.org\/index.cgi Place the downloaded war file\u00a0(e.g. apache-archiva-2.2.3.war) into the following directory: \/volume1\/@appstore\/Tomcat7\/src\/webapps\/ In MariaDB, add the following user with appropriate password. archivauser and the following database archiva Download the following jar files: mail-1.4.jar mariadb-java-client-1.5.x.jar Place the download jar files in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[45,44,28],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/771"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=771"}],"version-history":[{"count":9,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":1349,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/771\/revisions\/1349"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}