ksalic / brxm-spring-boot-integration Goto Github PK
View Code? Open in Web Editor NEWSpring Boot Integration with BrXM
Spring Boot Integration with BrXM
Running locally =============== Build project as usual for the CMS. For the application I'm using a Spring Boot application. If you go to /app with the terminal and start the spring boot project: mvn spring-boot:run Spring Boot application is running on :9090 CMS & SITE is running on :8080 Url rewriter is already configured. This project uses the Maven Cargo plugin to run Essentials, the CMS and site locally in Tomcat. From the project root folder, execute: mvn clean verify mvn -P cargo.run By default this includes and bootstraps repository data from the repository-data/development module, which is deployed by cargo to the Tomcat shared/lib. If you want or need to start *without* bootstrapping the development data, for example when testing against an existing repository, you can specify the *additional* Maven profile without-development-data to do so: mvn -P cargo.run,without-development-data This additional profile will modify the target location for the development module to the Tomcat temp/ folder so that it won't be seen and picked up during the repository bootstrap process. Access the Hippo Essentials at <http://localhost:8080/essentials>. After your project is set up, access the CMS at <http://localhost:8080/cms> and the site at <http://localhost:8080/site>. Logs are located in target/tomcat8x/logs Building distributions ====================== To build Tomcat distribution tarballs: mvn clean verify mvn -P dist or mvn -P dist-with-development-data The `dist` profile will produce in the /target directory a distribution tarball, containing the main deployable wars and shared libraries. The `dist-with-development-data` profile will produce a distribution-with-development-data tarball, also containing the repository-data-development jar in the shared/lib directory. This kind of distribution is meant to be used for deployments to development environments, for instance local deployments or deployments to a continuous integration (CI) system. (Initially, this module contains only "author" and "editor" example users for use in testing. Other data must be placed in this module explicitly by developers, for demo or testing purposes, etc.) See also src/main/assembly/*.xml if you need to customize the distributions. Using JRebel ============ Set the environment variable REBEL_HOME to the directory containing jrebel.jar. Build with: mvn clean verify -Djrebel Start with: mvn -P cargo.run -Djrebel Best Practice for development ============================= Use the option `-Drepo.path=/some/path/to/repository` during start up. This will avoid your repository to be cleared when you do a mvn clean. For example start your project with: mvn -P cargo.run -Drepo.path=/home/usr/tmp/repo or with jrebel: mvn -P cargo.run -Drepo.path=/home/usr/tmp/repo -Djrebel Hot deploy ========== To hot deploy, redeploy or undeploy the CMS or site: cd cms (or site) mvn cargo:redeploy (or cargo:undeploy, or cargo:deploy) Automatic Export ================ Automatic export of repository changes to the filesystem is turned on by default. To control this behavior, log into <http://localhost:8080/cms/console> and press the "Enable/Disable Auto Export" button at the top right. To set this as the default for your project edit the file ./repository-data/application/src/main/resources/configuration/modules/autoexport-module.xml Monitoring with JMX Console =========================== You may run the following command: jconsole Now open the local process org.apache.catalina.startup.Bootstrap start
Hi,
thanks for the project.
unfortunately I can not start the project. If I go to the /app and run "mvn spring-boot:run" I get this error "Failed to execute goal on project connectapp: Could not resolve dependencies for project org.onehippo:connectapp:jar:0.0.1-SNAPSHOT: Could not find artifact com.bloomreach.pma:brxm-spring-boot-integration:jar:0.1.1-SNAPSHOT ->"
Kind regards
Peter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.