my personal dot files, snippets and others things

View the Project on GitHub 69pmb/DotFiles

Maven

# For a file
mvn -Dtest=my.package.myClassTest test
# For a method
mvn -Dtest=my.package.myClassTest#myTestCase test
# If there is nested tests
mvn -D"test=my.package.myClassTest*" test
<plugin>
  <groupId>org.flywaydb</groupId>
  <artifactId>flyway-maven-plugin</artifactId>
  <configuration>
    <user>usr</user>
    <password>pwd</password>
    <url>jdbc:postgresql://localhost:6002/db</url>
    <locations>
      <location>filesystem:src/main/resources/migration-scripts</location>
    </locations>
  </configuration>
</plugin>
<plugin>
  <groupId>org.liquibase</groupId>
  <artifactId>liquibase-maven-plugin</artifactId>
  <configuration>
    <propertyFile>src/main/resources/config/application-local.yml</propertyFile>
    <changeLogFile>src/main/resources/db/liquibase/master.xml</changeLogFile>
  </configuration>
</plugin>
<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <executions>
    <execution>
      <goals>
        <goal>prepare-agent</goal>
      </goals>
    </execution>
    <execution>
      <id>report</id>
      <phase>test</phase>
      <goals>
        <goal>report</goal>
      </goals>
    </execution>
  </executions>
</plugin>