forked from DependencyTrack/dependency-track
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Allow H2 web console usage for dev purposes
Taking into account review comments : conditional activation based on a maven profile Signed-off-by: syalioune <sy_alioune@yahoo.fr>
- Loading branch information
Showing
6 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Jetty with H2 Console" type="MavenRunConfiguration" factoryName="Maven"> | ||
<MavenSettings> | ||
<option name="myGeneralSettings" /> | ||
<option name="myRunnerSettings" /> | ||
<option name="myRunnerParameters"> | ||
<MavenRunnerParameters> | ||
<option name="profiles"> | ||
<set /> | ||
</option> | ||
<option name="goals"> | ||
<list> | ||
<option value="jetty:run" /> | ||
<option value="-Dlogback.configurationFile=src/main/docker/logback.xml" /> | ||
</list> | ||
</option> | ||
<option name="pomFileName" /> | ||
<option name="profilesMap"> | ||
<map> | ||
<entry key="h2-console" value="true" /> | ||
<entry key="enhance" value="true" /> | ||
</map> | ||
</option> | ||
<option name="resolveToWorkspace" value="false" /> | ||
<option name="workingDirPath" value="$PROJECT_DIR$" /> | ||
</MavenRunnerParameters> | ||
</option> | ||
</MavenSettings> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" | ||
"http://www.eclipse.org/jetty/configure_9_0.dtd"> | ||
|
||
<Configure class="org.eclipse.jetty.maven.plugin.MavenWebAppContext"> | ||
<Call name="setInitParameter"> | ||
<Arg>h2.console.enabled</Arg> | ||
<Arg>true</Arg> | ||
</Call> | ||
<Call name="setInitParameter"> | ||
<Arg>h2.console.path</Arg> | ||
<Arg>/h2-console</Arg> | ||
</Call> | ||
</Configure> |