Skip to content

Commit

Permalink
Adding in SonarQube to pom.
Browse files Browse the repository at this point in the history
Adding in maven repo sharing.

#31
  • Loading branch information
cshupp committed Mar 13, 2020
1 parent 79ec9ba commit cc61caa
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
1 change: 0 additions & 1 deletion docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ services:
- ../mvn_repo:/mvn_repo
working_dir: /app
command: perl ./docker_support/start_build.pl
#perl -e "system('mvn -Dmaven.repo.local=/mvn_repo clean package')"
# db:
# image: library/postgres:12-alpine
# environment:
Expand Down
2 changes: 1 addition & 1 deletion docker_support/start_build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
print $command."\n";
system($command);
#start maven
system("mvn clean package");
system("mvn -Dmaven.repo.local=../mvn_repo clean package");
80 changes: 40 additions & 40 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@
</executions>
</plugin>

<!-- <plugin>-->
<!-- <groupId>org.sonarsource.scanner.maven</groupId>-->
<!-- <artifactId>sonar-maven-plugin</artifactId>-->
<!-- <version>3.6.0.1398</version>-->
<!-- </plugin>-->
<!-- <plugin>-->
<!-- <groupId>org.jacoco</groupId>-->
<!-- <artifactId>jacoco-maven-plugin</artifactId>-->
<!-- <version>0.8.4</version>-->
<!-- </plugin>-->
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.6.0.1398</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.4</version>
</plugin>

<plugin>
<groupId>org.torquebox.mojo</groupId>
Expand Down Expand Up @@ -311,34 +311,34 @@
</plugins>
</build>

<!-- <profiles>-->
<!-- <profile>-->
<!-- <id>coverage</id>-->
<!-- <activation>-->
<!-- <activeByDefault>true</activeByDefault>-->
<!-- </activation>-->
<!-- <build>-->
<!-- <plugins>-->
<!-- <plugin>-->
<!-- <groupId>org.jacoco</groupId>-->
<!-- <artifactId>jacoco-maven-plugin</artifactId>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>prepare-agent</id>-->
<!-- <goals>-->
<!-- <goal>prepare-agent</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- <execution>-->
<!-- <id>report</id>-->
<!-- <goals>-->
<!-- <goal>report</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!-- </plugins>-->
<!-- </build>-->
<!-- </profile>-->
<!-- </profiles>-->
<profiles>
<profile>
<id>coverage</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit cc61caa

Please sign in to comment.