Skip to content

Commit

Permalink
add dev and prod profiles to pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpopan committed Aug 10, 2022
1 parent 3b331f9 commit de800d9
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,30 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.sources>src/main,pom.xml,package.json</sonar.sources>
<sonar.pluginTermsConditionsUrl>https://github.com/porscheinformatik/sonarqube-licensecheck/blob/master/LICENSE</sonar.pluginTermsConditionsUrl>
<sonar.pluginTermsConditionsUrl>https://github.com/porscheinformatik/sonarqube-licensecheck/blob/master/LICENSE
</sonar.pluginTermsConditionsUrl>
<sonarqube.version>8.9.0.43852</sonarqube.version>
<java.version>1.8</java.version>
</properties>

<profiles>
<profile>
<id>prod</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<frontend.npm.arguments>run build</frontend.npm.arguments>
</properties>
</profile>
<profile>
<id>dev</id>
<properties>
<frontend.npm.arguments>run build -- --mode development</frontend.npm.arguments>
</properties>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>org.glassfish</groupId>
Expand Down Expand Up @@ -89,7 +108,9 @@
<artifactId>sonar-application</artifactId>
<version>${sonarqube.version}</version>
<scope>system</scope>
<systemPath>${project.build.directory}/sonarqube-${sonarqube.version}/lib/sonar-application-${sonarqube.version}.jar</systemPath>
<systemPath>
${project.build.directory}/sonarqube-${sonarqube.version}/lib/sonar-application-${sonarqube.version}.jar
</systemPath>
</dependency>
<dependency>
<groupId>xpp3</groupId>
Expand Down Expand Up @@ -183,10 +204,10 @@
<version>0.8.8</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
Expand Down Expand Up @@ -223,7 +244,7 @@
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
<arguments>${frontend.npm.arguments}</arguments>
</configuration>
</execution>
</executions>
Expand All @@ -235,5 +256,4 @@
</plugins>
</build>


</project>

0 comments on commit de800d9

Please sign in to comment.