]> source.dussan.org Git - archiva.git/commitdiff
use admin auto creation feature in dev run
authorOlivier Lamy <olamy@apache.org>
Fri, 9 Sep 2011 20:14:34 +0000 (20:14 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 9 Sep 2011 20:14:34 +0000 (20:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1167348 13f79535-47bb-0310-9956-ffa450edef68

README.txt
archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/auto-admin-creation.properties [new file with mode: 0644]

index 968f00beacd0409d488f3c39b9dfde4dd5fc166b..c9854b2652755c83a1739ff74d1a2e49833c801a 100644 (file)
@@ -12,3 +12,6 @@ No more need to install everything to run the jetty plugin.
 So just use : mvn tomcat:run -Pdev
 and hit in your browser : http://localhost:9091/archiva
 
+note with dev profile admin account is automatically created with password admin123
+see file : archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/auto-admin-creation.properties
+
index 32f8abf9ffc86c7b65fa7c77318af9627b831711..4108e25f77982385632f370bb4980ddd9377ec2b 100644 (file)
             <appserver.base>${basedir}/appserver-base</appserver.base>
             <appserver.home>${project.build.directory}/appserver-home</appserver.home>
             <derby.system.home>${basedir}/appserver-base/logs</derby.system.home>
+            <redback.admin.creation.file>${basedir}/target/auto-admin-creation.properties</redback.admin.creation.file>
           </systemProperties>
         </configuration>
         <dependencies>
                 <configuration>
                   <tasks>
                     <copy overwrite="true" file="${basedir}/src/test/tomcat/log4j.xml" todir="${project.build.directory}/classes" />
+                    <copy overwrite="true" file="${basedir}/src/test/tomcat/auto-admin-creation.properties" todir="${basedir}/target/" />
                     <delete dir="${basedir}/src/main/webapp/WEB-INF/lib" />
                   </tasks>
                 </configuration>
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/auto-admin-creation.properties b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/auto-admin-creation.properties
new file mode 100644 (file)
index 0000000..e8736f1
--- /dev/null
@@ -0,0 +1,3 @@
+redback.admin.fullname=Archiva Admin
+redback.admin.email=admin@toto.com
+redback.admin.password=admin123
\ No newline at end of file