Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json -Dfcrepo.home=/mnt/fedora-data"
Warning
The /config/file-simple/repository.json  configuration is good for test deployments. For production we recommend a MySQL/PostgreSQL backend. See Best Practices - Fedora Configuration


Additional information regarding the configuration of System Properties in Tomcat 9 can be found here.

...

Code Block
set CATALINA_OPTS=%CATALINA_OPTS% -Dfcrepo.modeshape.configurationhome=classpath:/configmnt/file-simple/repository.jsonfedora-data

Anchor
jetty
jetty
Jetty 9

On Debian Linux systems, one way of setting System Properties is to update the following file:

...

Code Block
JAVA_OPTIONS="${JAVA_OPTIONS} -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json -Dfcrepo.home=/mnt/fedora-data"

Additional information regarding the configuration of System Properties in Jetty 9 can be found here.

...

Code Block
--exec
-Dfcrepo.home=/mnt/fedora-data
-Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json

...

Maven jetty:run

System Properties can be set when using the Maven jetty:run plugin by passing them per the example below:

Code Block
mvn -Dfcrepo.home=/mnt/fedora-data -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json jetty:run

One-Click Run

If the One-Click Run is started from the command line, System Properties can be passed in per the example below:

...

This specifies the location of the spring context configuration for the Fedora application it defaults to a provided configuration. For more configuration options review the fcrepo-webapp-plus supplied spring configuration.

No Format
fcrepo.modeshape.configuration=<classpath:/config/repository.json | file:/path/to/repository.json>

This specifies the configuration for the underlying Modeshape repository and is required to be set. See other available options for this value within the source tree. Example repository.json configurations are located within the WAR file within sub-directories under WEB-INF/classes/config. Note: this configuration file must be readable by the servlet container process.

No Format
java.io.tmpdir=</tmp on Linux, $TMPDIR on MacOSX, and %TEMP% on Windows>

...

No Format
fcrepo.ocfl.storage.root.dir
fcrepo.ocfl.staging.dir
fcrepo.ocfl.work.dir

Contains the OCFL storage root.

...

  1. fcrepo/fcrepo-webapp/src/main/webapp/WEB-INF/web.xml contains a context-param element with param-name "contextConfigLocation".  The param-value points to a repository.xml which includes either the default fcrepo-config.xml or your spring configuration file (as defined by the fcrepo.spring.configuration property.
  2. Your spring configuration file contains a property repositoryConfiguration defining the location of your repository.jsonfedora-node-types.cnd is defined in repository.json