Wrapper.logfile=/var/log/archiva/wrapper-YYYYMMDD.logĪpps/archiva/WEB-INF/classes/log4j2.xml /var/log/archiva Create Service 3=-Djetty.logs=/var/log/archivaĪnd this line also #wrapper.logfile=%ARCHIVA_BASE%/logs/wrapper-YYYYMMDD.log This takes modification of several files in the ‘conf’ directory.Ĭonf/nf #.3=-Djetty.logs=%ARCHIVA_BASE%/logs We need to change this so that it goes to the standard Debian location in ‘/var/log’. #RUN_AS_USERīy default, all logging is going to a subdirectory named ‘logs’ directly in the Archiva directory. This line is commented out by default, set it as shown below. Modify the startup script at ‘bin/archiva’ so that the service runs as our designated user, ‘archivasvc’. $ cd apache-archiva-2.2.3 Configure for Service
HOW TO INSTALL MAVEN IN UBUNTU 14.04 DOWNLOAD
The download page is here, and from your browser you can get the mirror link and use it to download the latest version directly to your host.ĭownload the standalone version of Archiva, and unzip it. The standalone version uses Jetty as an app server and Derby as the backing database. With the JDK installed, now download the latest standalone version of Archiva which is 2.2.3 at the time of this writing. $ sudo chown archivasvc:adm /var/log/archivaĪs the final prerequisite, make sure port 8080 is open on the host firewall so that the service is externally accessible.
Then create a directory for the logs with the correct ownership: $ sudo mkdir -p /var/log/archiva $ sudo useradd archivasvc -s /bin/bash -M sbin/nologin), but a valid shell is required for the wrapper this service will run under. We will create a user named “archivaservice”, we would usually not allow this user to have a shell (e.g.
Since this will be an Ubuntu service, it should have an independent user for its process and logs. On Ubuntu 16.04 this is easier since OpenJDK 1.8 is in the Ubuntu repository. $ sudo add-apt-repository ppa:openjdk-r/ppa -y On Ubuntu 14.04, this is not part of the standard Ubuntu repository, so we use a ppa. The first step is to install Java JDK 1.7+ as a prerequisite, we will go with OpenJDK Java 1.8.
An essential part of the standard build process for Java applications is having a repository where project artifacts are stored.Īrtifact curation provides the ability to manage dependencies, quickly rollback releases, support compatibility of downstream projects, do QA promotion from test to production, support a continuous build pipeline, and provides auditability.Īrchiva from the Apache foundation is open-source and can serve as the repository manager for popular build tools such as Maven and Jenkins.