mirror of https://github.com/apache/archiva.git
[MRM-688]
-added config for mail session and archiva and users db in jetty.xml -unpack webapp included in tar ball git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@633367 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e47c303a0c
commit
f929f8ce6e
|
@ -114,7 +114,7 @@
|
|||
</fileSets>
|
||||
<dependencySets>
|
||||
<dependencySet>
|
||||
<unpack>false</unpack>
|
||||
<unpack>true</unpack>
|
||||
<outputDirectory>apps/archiva</outputDirectory>
|
||||
<includes>
|
||||
<include>org.apache.maven.archiva:archiva-webapp</include>
|
||||
|
|
|
@ -305,4 +305,72 @@
|
|||
<Arg type="boolean">False</Arg>
|
||||
</Call>
|
||||
|
||||
|
||||
<!-- ARCHIVA CONFIG -->
|
||||
|
||||
<New id="validation_mail" class="org.mortbay.jetty.plus.naming.Resource">
|
||||
<Arg>mail/Session</Arg>
|
||||
<Arg>
|
||||
<New class="org.mortbay.naming.factories.MailSessionReference">
|
||||
<Set name="user"></Set>
|
||||
<Set name="password"></Set>
|
||||
<Set name="properties">
|
||||
<New class="java.util.Properties">
|
||||
<Put name="mail.smtp.host">localhost</Put>
|
||||
<Put name="mail.from">archiva@localhost</Put>
|
||||
<Put name="mail.senderName">Archiva</Put>
|
||||
<Put name="mail.debug">true</Put>
|
||||
</New>
|
||||
</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</New>
|
||||
|
||||
<!-- Archiva database -->
|
||||
|
||||
<New id="archiva" class="org.mortbay.jetty.plus.naming.Resource">
|
||||
<Arg>jdbc/archiva</Arg>
|
||||
<Arg>
|
||||
<New class="org.apache.derby.jdbc.EmbeddedDataSource">
|
||||
<Set name="DatabaseName">../databases/archiva</Set>
|
||||
<Set name="user">sa</Set>
|
||||
<Set name="createDatabase">create</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</New>
|
||||
|
||||
<New id="archivaShutdown" class="org.mortbay.jetty.plus.naming.Resource">
|
||||
<Arg>jdbc/archivaShutdown</Arg>
|
||||
<Arg>
|
||||
<New class="org.apache.derby.jdbc.EmbeddedDataSource">
|
||||
<Set name="DatabaseName">../databases/archiva</Set>
|
||||
<Set name="user">sa</Set>
|
||||
<Set name="shutdownDatabase">shutdown</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</New>
|
||||
|
||||
<!-- Users / Security Database -->
|
||||
|
||||
<New id="users" class="org.mortbay.jetty.plus.naming.Resource">
|
||||
<Arg>jdbc/users</Arg>
|
||||
<Arg>
|
||||
<New class="org.apache.derby.jdbc.EmbeddedDataSource">
|
||||
<Set name="DatabaseName">../databases/users</Set>
|
||||
<Set name="user">sa</Set>
|
||||
<Set name="createDatabase">create</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</New>
|
||||
|
||||
<New id="usersShutdown" class="org.mortbay.jetty.plus.naming.Resource">
|
||||
<Arg>jdbc/usersShutdown</Arg>
|
||||
<Arg>
|
||||
<New class="org.apache.derby.jdbc.EmbeddedDataSource">
|
||||
<Set name="DatabaseName">../databases/users</Set>
|
||||
<Set name="user">sa</Set>
|
||||
<Set name="shutdownDatabase">shutdown</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</New>
|
||||
</Configure>
|
||||
|
|
Loading…
Reference in New Issue