Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Other option:
Check out archiva's webapp, there's a -Pmysql profile that you can use with jetty:run to execute archiva entirely on mysql.

The archiva-webapp/src/jetty-env-mysql.xml (This is actually a jetty configuration file) has some details on how to prep (or bootstrap) mysql so that you can have jpox create the tables and indexes for you.

...

Code Block
xml
xml
<Context path="/archiva" 
         docBase="E:/OSS/m2-trunks/archiva/archiva-webapp/target/archiva-webapp-1.0-SNAPSHOT.war" 
         reloadable="true" 
         antiJARLocking="true" 
         antiResourceLocking="true">

  <Resource name="jdbc/users" 
            auth="Container" 
            type="javax.sql.DataSource" 
            username="users" 
            password="users" 
            driverClassName="com.mysql.jdbc.Driver" 
            url="jdbc:mysql://localhost:3306/users?autoReconnect=true"/>

  <Resource name="jdbc/archiva" 
            auth="Container" 
            type="javax.sql.DataSource" 
            username="archiva" 
            password="archiva" 
            driverClassName="com.mysql.jdbc.Driver" 
            url="jdbc:mysql://localhost:3306/archiva?autoReconnect=true"/>

  <Resource name="mail/Session" 
            auth="Container" 
            type="javax.mail.Session" 
            mail.smtp.host="localhost"/>
</Context>

References