Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit 5cf1004

Browse files
committed
Removed quoting of active profile, as spring-boot treats the profile tobe with quotes
1 parent 84c7219 commit 5cf1004

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generator/spring-boot/src/main/java/io/fabric8/maven/generator/springboot/SpringBootGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected List<String> getExtraJavaOptions() {
117117
//Spring boot active profiles
118118
String strActiveProfiles = getConfig(activeProfiles);
119119
if(strActiveProfiles!=null) {
120-
opts.add("-Dspring.profiles.active=\""+strActiveProfiles+"\"");
120+
opts.add("-Dspring.profiles.active="+strActiveProfiles);
121121
}
122122
return opts;
123123
}

generator/spring-boot/src/test/java/io/fabric8/maven/generator/springboot/SpringBootGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void javaOptionsWithActiveProfiles() throws IOException, MojoExecutionExc
9999
Map<String, String> env = configs.get(0).getBuildConfiguration().getEnv();
100100
String javaOptions = env.get("JAVA_OPTIONS");
101101
assertNotNull(javaOptions);
102-
assertTrue(javaOptions.equals("-Dspring.profiles.active=\"dev,qa\""));
102+
assertTrue(javaOptions.equals("-Dspring.profiles.active=dev,qa"));
103103
}
104104

105105

0 commit comments

Comments
 (0)