Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added a Jetty 9 procedure (WIP)

...

Double-click your script and you're good to go! (smile)

Jetty 9 compatible IntelliJ setup

Disclaimer: This setup has only been tried on two machines so far. The procedure might need to be completed, or adapted.

In IntelliJ, go to Edit Configurations. For Tomcat, insert the following VM options:

 

Code Block
languagetext
titleTomcat VM options
-Xms128M -Xmx1048M -Djava.awt.headless=true -Dfile.encoding=UTF-8 -XX:MaxPermSize=256m -DseleniumServerHostName=192.168.56.101 -DcontainerHostName=192.168.56.1 

Also, in the Deployment tab, add two artifacts:

  • magnolia-test-webapp:war exploded, with 'Application context' set to /magnoliaTest
  • magnolia-test-public-webapp:war exploded, with 'Application context' set to /magnoliaTestPublic

In that same window, select JUnit under Defaults in the left pane. Insert the following VM options:

Code Block
languagetext
titleJUnit VM options
-ea -DseleniumServerHostName=192.168.56.101 -DcontainerHostName=192.168.56.1 -DcontainerRootURL=http://192.168.56.1:8080/ 

Next step is to clean and rebuild both instances:

Code Block
languagebash
cd ce/magnolia-integration-tests/magnolia-test-public-webapp/; mvn clean install; rm -rf overlays
cd ce/magnolia-integration-tests/magnolia-test-webapp/; mvn clean install; rm -rf overlays

Once done, go in the 'Maven projects' sidebar in the IDE (on the top right), and click on 'Reimport all Maven projets' (blue circular arrow).

Then

  1. Start
    1. Tomcat from the IDE
    2. selenium-server.sh on the VM

  2. Make sure that:
    1. Both exploded wars are deployed at Tomcat startup (check out the log)
    2. http://localhost:8080/magnoliaTest can be accessed on the host machine
    3. http://192.168.56.1:8080 can be accessed from the VM
  3. Run the magnolia installs at:
    1. http://localhost:8080/magnoliaTest/.magnolia/
    2. http://localhost:8080/magnoliaTestPublic/.magnolia/
  4. Run a test from the IDE
  5. Repeat the whole process if the setup breaks