Discussion:
Basic Install Question
Mark Faine
2015-09-10 21:19:35 UTC
Permalink
Tomcat 7
Archiva 2.2.0

What I want to do should be very simple, however, I cannot for the life of
me figure out how.

1. Installation of Archiva as a deployed (exploded) web application under
/opt/tomcat/webapps

2. The repository ,data, groups and other folders are being created in
$CATALINA_HOME, this is not where they should be, I have tried to find a
way to set another location but I cannot figure it out. How can I set the
location where the folders should be created?

I have my context setup in /opt/tomcat/conf/Catalina/localhost/archiva.xml

3. The instructions state:

url="jdbc:derby:/path/to/database/archiva;create=true" />


Does /path/to/database need to be canonical, can it be relative? If
so, relative to what?



tl;dr Essentially, I want the archiva app at the path
/opt/tomcat/webapps/archiva and all of the resources that are
generated from the app at /opt/archiva However, I can't seem to
figure out any configuration that will result in this outcome.



Also, I'm getting a file created with the file name
/opt/tomcat/conf/archiva.xml that contains some configuration for archiva,
it should stay with archiva webapp, or at least with the archiva created
resources in /opt/archiva
Olivier Lamy
2015-09-14 07:18:22 UTC
Permalink
Hi,
Not sure about relative to what. IMHO to $CATALINA_BASE/bin.

Note you can use interpolation in tomcat context file.
So url can contains reference to an env var using ${ } annotation.

something like:
url="jdbc:derby:${ARCHIVA_DB}/archiva;create=true" />
Post by Mark Faine
Tomcat 7
Archiva 2.2.0
What I want to do should be very simple, however, I cannot for the life of
me figure out how.
1. Installation of Archiva as a deployed (exploded) web application under
/opt/tomcat/webapps
2. The repository ,data, groups and other folders are being created in
$CATALINA_HOME, this is not where they should be, I have tried to find a
way to set another location but I cannot figure it out. How can I set the
location where the folders should be created?
I have my context setup in /opt/tomcat/conf/Catalina/localhost/archiva.xml
url="jdbc:derby:/path/to/database/archiva;create=true" />
Does /path/to/database need to be canonical, can it be relative? If
so, relative to what?
tl;dr Essentially, I want the archiva app at the path
/opt/tomcat/webapps/archiva and all of the resources that are
generated from the app at /opt/archiva However, I can't seem to
figure out any configuration that will result in this outcome.
Also, I'm getting a file created with the file name
/opt/tomcat/conf/archiva.xml that contains some configuration for archiva,
it should stay with archiva webapp, or at least with the archiva created
resources in /opt/archiva
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Loading...