I am using apache-archiva-2.2.0 version. I lost the admin password so I want to reset the password of admin user.
I tried to reset the password through remove the below mentioned files.
./apache-archiva-2.2.0/data/databases/users/dbex.lck
./apache-archiva-2.2.0/data/databases/users/db.lck
But still it's asking for password post restart the service.
Database details-
<New id="users" class="org.eclipse.jetty.plus.jndi.Resource">
  <Arg>jdbc/users</Arg>
  <Arg>
    <New class="org.apache.tomcat.jdbc.pool.DataSource">
      <Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDriver</Set>
      <Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/users;create=true</Set>
      <Set name="username">sa</Set>
      <Set name="maxActive">20</Set>
      <Set name="removeAbandoned">true</Set>
      <Set name="logAbandoned">true</Set>
      <Set name="initialSize">5</Set>
      <Set name="testOnBorrow">true</Set>
      <Set name="validationQuery">select 1</Set>
    </New>
  </Arg>
</New>
Let me know how can I change the password?