Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add plugin to pom.xml
Try adding users.txt to rbacl to be included in war file
  • Loading branch information
whikloj committed Nov 5, 2015
1 parent 72deea2 commit b44d495
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pom.xml
Expand Up @@ -245,6 +245,28 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.simplericity.jettyconsole</groupId>
<artifactId>jetty-console-maven-plugin</artifactId>
<version>1.56</version>
<executions>
<execution>
<goals>
<goal>createconsole</goal>
</goals>
<configuration>
<backgroundImage>${project.basedir}/src/main/webapp/images/fedora_logo_10in.png</backgroundImage>
<destinationFile>${project.build.directory}${file.separator}${project.artifactId}-${project.version}-jetty-console.jar</destinationFile>
<loginServices>
<loginService implementation="org.eclipse.jetty.security.HashLoginService">
<name>fcrepo</name>
<config>${project.basedir}/src/test/users.txt</config>
</loginService>
</loginServices>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
Expand Down Expand Up @@ -405,6 +427,21 @@
</overlays>
</configuration>
</plugin>
<plugin>
<groupId>org.simplericity.jettyconsole</groupId>
<artifactId>jetty-console-maven-plugin</artifactId>
<version>1.56</version>
<configuration>
<backgroundImage>${project.basedir}/src/main/webapp/images/fedora_logo_10in.png</backgroundImage>
<destinationFile>${project.build.directory}${file.separator}${project.artifactId}-${project.version}-jetty-console.jar</destinationFile>
<loginServices>
<loginService implementation="org.eclipse.jetty.security.HashLoginService">
<name>fcrepo</name>
<config>WEB-INF/users.txt</config>
</loginService>
</loginServices>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down
3 changes: 3 additions & 0 deletions src/rbacl/webapp/WEB-INF/users.txt
@@ -0,0 +1,3 @@
user1: password1,fedoraUser
user2: password2,fedoraUser
admin1: password3,fedoraAdmin

0 comments on commit b44d495

Please sign in to comment.