Closed liuhaoduoduo closed 1 year ago
What version do you use? There was a performance problem fixed in the latest release: https://github.com/tomasbjerre/violations-lib/blob/master/CHANGELOG.md#11565-2023-06-01
I used version 1.50.7 here. Version 1.50.8 is not available for download here. The error is shown below
It is in Central: https://repo1.maven.org/maven2/se/bjurr/violations/violations-maven-plugin/1.50.8/
Perhaps you are using an internal Maven repository within your organization?
We do have an internal maven mirror, but that doesn't prevent access to the public repository. 1.50.7 can be used normally, 1.50.8 cannot be used. So this is not a problem with our private warehouse.
Here is an open repository using 1.50.8
:
https://github.com/tomasbjerre/assertj-snapshot
Effective pom:
✔ ~/workspace/assertj-snapshot [master {origin/master}|⚑ 1]
08:11 $ ./mvnw help:effective-pom
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< se.bjurr.assertj.snapshot:assertj-snapshot >-------------
[INFO] Building AssertJ fluent assertions for snapshots 1.0.2-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.1.1:effective-pom (default-cli) @ assertj-snapshot ---
[INFO]
Effective POMs, after inheritance, interpolation, and profiles are applied:
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- -->
<!-- Generated by Maven Help Plugin on 2023-07-23T08:11:56+02:00 -->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Effective POM for project -->
<!-- 'se.bjurr.assertj.snapshot:assertj-snapshot:jar:1.0.2-SNAPSHOT' -->
<!-- -->
<!-- ====================================================================== -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>se.bjurr.bom</groupId>
<artifactId>bjurr-bom</artifactId>
<version>0.7.0</version>
</parent>
<groupId>se.bjurr.assertj.snapshot</groupId>
<artifactId>assertj-snapshot</artifactId>
<version>1.0.2-SNAPSHOT</version>
<name>AssertJ fluent assertions for snapshots</name>
<description>Rich and fluent assertions for testing snapshots</description>
<url>https://github.com/tomasbjerre/bjurr-bom/assertj-snapshot</url>
<inceptionYear>2022</inceptionYear>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>tomasbjerre</id>
<name>Tomas Bjerre</name>
<email>tomas.bjerre85@gmail.com</email>
<url>https://github.com/tomasbjerre</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/tomasbjerre/assertj-snapshot.git</connection>
<developerConnection>scm:git:git@github.com:tomasbjerre/assertj-snapshot.git</developerConnection>
<tag>assertj-snapshot-1.0.1</tag>
<url>https://github.com/tomasbjerre/assertj-snapshot</url>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/tomasbjerre/assertj-snapshot/issues</url>
</issueManagement>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<properties>
<assertj-core.version>3.23.1</assertj-core.version>
<changelog.version>1.97.1</changelog.version>
<fmt.version>2.20</fmt.version>
<gpg.version>3.0.1</gpg.version>
<jackson-databind.version>2.13.3</jackson-databind.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.outputEncoding>UTF-8</project.build.outputEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spotbugs.version>4.7.3.0</spotbugs.version>
<violations.maxViolations>0</violations.maxViolations>
<violations.version>1.50.8</violations.version>
</properties>
<dependencies>
<dependency>
<groupId>com.github.javaparser</groupId>
<artifactId>javaparser-symbol-solver-core</artifactId>
<version>3.25.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.23.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.7.3</version>
<scope>provided</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>central</id>
<name>central</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>jcentral</id>
<name>jcentral</name>
<url>https://jcenter.bintray.com</url>
</repository>
<repository>
<id>jitpack</id>
<name>jitpack</name>
<url>https://jitpack.io</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>/home/bjerre/workspace/assertj-snapshot/src/main/java</sourceDirectory>
<scriptSourceDirectory>/home/bjerre/workspace/assertj-snapshot/src/main/scripts</scriptSourceDirectory>
<testSourceDirectory>/home/bjerre/workspace/assertj-snapshot/src/test/java</testSourceDirectory>
<outputDirectory>/home/bjerre/workspace/assertj-snapshot/target/classes</outputDirectory>
<testOutputDirectory>/home/bjerre/workspace/assertj-snapshot/target/test-classes</testOutputDirectory>
<resources>
<resource>
<directory>/home/bjerre/workspace/assertj-snapshot/src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>/home/bjerre/workspace/assertj-snapshot/src/test/resources</directory>
</testResource>
</testResources>
<directory>/home/bjerre/workspace/assertj-snapshot/target</directory>
<finalName>assertj-snapshot-1.0.2-SNAPSHOT</finalName>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.10</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<attach>true</attach>
<charset>UTF-8</charset>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
</configuration>
</execution>
</executions>
<configuration>
<attach>true</attach>
<charset>UTF-8</charset>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
<configuration>
<attach>true</attach>
</configuration>
</execution>
</executions>
<configuration>
<attach>true</attach>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<releaseProfiles>release-sign-artifacts</releaseProfiles>
<goals>deploy</goals>
<checkModificationExcludeList>CHANGELOG.md,pom.xml</checkModificationExcludeList>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.20</version>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.7.3.0</version>
<executions>
<execution>
<id>spotbugs</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<xmlOutput>true</xmlOutput>
<spotbugsXmlOutput>false</spotbugsXmlOutput>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
<configuration>
<xmlOutput>true</xmlOutput>
<spotbugsXmlOutput>false</spotbugsXmlOutput>
<failOnError>false</failOnError>
</configuration>
</plugin>
<plugin>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.19.0</version>
<configuration>
<failOnViolation>false</failOnViolation>
</configuration>
</plugin>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<failOnViolation>false</failOnViolation>
<failsOnError>false</failsOnError>
</configuration>
</plugin>
<plugin>
<groupId>se.bjurr.gitchangelog</groupId>
<artifactId>git-changelog-maven-plugin</artifactId>
<version>1.97.1</version>
<configuration>
<readableTagName>.*-(.*)$</readableTagName>
<file>CHANGELOG.md</file>
<ignoreCommitsIfMessageMatches>^\[maven-release-plugin\].*|^\[Gradle
Release Plugin\].*|^Merge.*|.*\[GRADLE SCRIPT\].*</ignoreCommitsIfMessageMatches>
</configuration>
</plugin>
<plugin>
<groupId>se.bjurr.violations</groupId>
<artifactId>violations-maven-plugin</artifactId>
<version>1.50.8</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>violations</goal>
</goals>
<configuration>
<minSeverity>INFO</minSeverity>
<detailLevel>VERBOSE</detailLevel>
<maxViolations>0</maxViolations>
<printViolations>true</printViolations>
<violations>
<violation>
<parser>FINDBUGS</parser>
<reporter>Findbugs</reporter>
<folder>.</folder>
<pattern>.*/findbugs/.*\.xml$</pattern>
</violation>
<violation>
<parser>FINDBUGS</parser>
<reporter>Spotbugs</reporter>
<folder>.</folder>
<pattern>.*/spotbugsXml.*\.xml$</pattern>
</violation>
<violation>
<parser>PMD</parser>
<reporter>PMD</reporter>
<folder>.</folder>
<pattern>.*/pmd/.*\.xml$</pattern>
</violation>
<violation>
<parser>CHECKSTYLE</parser>
<reporter>Checkstyle</reporter>
<folder>.</folder>
<pattern>.*/checkstyle/.*\.xml$</pattern>
</violation>
<violation>
<parser>JSLINT</parser>
<reporter>JSHint</reporter>
<folder>.</folder>
<pattern>.*/jshint/.*\.xml$</pattern>
</violation>
<violation>
<parser>CSSLINT</parser>
<reporter>CSSLint</reporter>
<folder>.</folder>
<pattern>.*/csslint/.*\.xml$</pattern>
</violation>
</violations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>default-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>default-testResources</id>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
<execution>
<id>default-resources</id>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
</goals>
<configuration>
<outputDirectory>/home/bjerre/workspace/assertj-snapshot/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
<execution>
<id>default-deploy</id>
<phase>site-deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<outputDirectory>/home/bjerre/workspace/assertj-snapshot/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>/home/bjerre/workspace/assertj-snapshot/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<outputDirectory>/home/bjerre/workspace/assertj-snapshot/target/site</outputDirectory>
</reporting>
</project>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.060 s
[INFO] Finished at: 2023-07-23T08:11:56+02:00
[INFO] ------------------------------------------------------------------------
Running the plugin:
✔ ~/workspace/assertj-snapshot [master {origin/master}|⚑ 1]
08:11 $ ./mvnw verify
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< se.bjurr.assertj.snapshot:assertj-snapshot >-------------
[INFO] Building AssertJ fluent assertions for snapshots 1.0.2-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- fmt-maven-plugin:2.20:format (default) @ assertj-snapshot ---
[info] Processed 23 files (1 reformatted).
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ assertj-snapshot ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/bjerre/workspace/assertj-snapshot/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ assertj-snapshot ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ assertj-snapshot ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ assertj-snapshot ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to /home/bjerre/workspace/assertj-snapshot/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-M7:test (default-test) @ assertj-snapshot ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running test.internal.inlineassertion.MatchesInlineSnapshot_next_line_comment_Test
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@51e5fc98
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: MockedFileUtils [createDirs=null, writeFileContentByFileName={MatchesInlineSnapshot_next_line_comment_Test.java=package test.internal.inlineassertion;
import static org.assertj.core.api.Assertions.assertThat;
import org.assertj.snapshot.api.Assertions;
import org.junit.jupiter.api.Test;
import test.internal.MockedFileUtilsTestBase;
import test.utils.DummyObject;
import test.utils.TestDataFactory;
class MatchesInlineSnapshot_next_line_comment_Test extends MockedFileUtilsTestBase {
@Test
void testThatInlineSnapshotCanBeUpdated_next_line() {
final DummyObject given = TestDataFactory.createDummyObject();
//
Assertions.assertThat(given).matchesInlineSnapshot("""
{
"someAttr1" : "abc",
"someAttr2" : 123
}
""");
this.removeFileUtilsMock();
assertThat(this.getCreatedDirs()).isEqualTo(null);
Assertions.assertThat(this.getWrittenContent()).matchesSnapshot();
}
}
}, fileUtilsImpl=org.assertj.snapshot.internal.utils.FileUtilsImpl@5ef6ae06]
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@2f05be7f
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.49 s - in test.internal.inlineassertion.MatchesInlineSnapshot_next_line_comment_Test
[INFO] Running test.internal.inlineassertion.MatchesInlineSnapshot_next_line_Test
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@19553973
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: MockedFileUtils [createDirs=null, writeFileContentByFileName={MatchesInlineSnapshot_next_line_Test.java=package test.internal.inlineassertion;
import static org.assertj.core.api.Assertions.assertThat;
import org.assertj.snapshot.api.Assertions;
import org.junit.jupiter.api.Test;
import test.internal.MockedFileUtilsTestBase;
import test.utils.DummyObject;
import test.utils.TestDataFactory;
class MatchesInlineSnapshot_next_line_Test extends MockedFileUtilsTestBase {
@Test
void testThatInlineSnapshotCanBeUpdated_next_line() {
final DummyObject given = TestDataFactory.createDummyObject();
Assertions.assertThat(given).matchesInlineSnapshot("""
{
"someAttr1" : "abc",
"someAttr2" : 123
}
""");
this.removeFileUtilsMock();
assertThat(this.getCreatedDirs()).isEqualTo(null);
Assertions.assertThat(this.getWrittenContent()).matchesSnapshot();
}
}
}, fileUtilsImpl=org.assertj.snapshot.internal.utils.FileUtilsImpl@7bb6ab3a]
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@7fe7c640
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 s - in test.internal.inlineassertion.MatchesInlineSnapshot_next_line_Test
[INFO] Running test.internal.inlineassertion.MatchesInlineSnapshot_same_line_Test
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@4c4748bf
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: MockedFileUtils [createDirs=null, writeFileContentByFileName={MatchesInlineSnapshot_same_line_Test.java=package test.internal.inlineassertion;
import static org.assertj.core.api.Assertions.assertThat;
import org.assertj.snapshot.api.Assertions;
import org.junit.jupiter.api.Test;
import test.internal.MockedFileUtilsTestBase;
import test.utils.DummyObject;
import test.utils.TestDataFactory;
class MatchesInlineSnapshot_same_line_Test extends MockedFileUtilsTestBase {
@Test
void testThatInlineSnapshotCanBeUpdated_same_line() {
final DummyObject given = TestDataFactory.createDummyObject();
Assertions.assertThat(given).matchesInlineSnapshot("""
{
"someAttr1" : "abc",
"someAttr2" : 123
}
""");
this.removeFileUtilsMock();
assertThat(this.getCreatedDirs()).isEqualTo(null);
Assertions.assertThat(this.getWrittenContent()).matchesSnapshot();
}
}
}, fileUtilsImpl=org.assertj.snapshot.internal.utils.FileUtilsImpl@7ce97ee5]
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@32c8e539
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 s - in test.internal.inlineassertion.MatchesInlineSnapshot_same_line_Test
[INFO] Running test.internal.fileassertion.existing.MatchesSnapshot_verify_existing_Test
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@73dce0e6
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: MockedFileUtils [createDirs=null, writeFileContentByFileName={}, fileUtilsImpl=org.assertj.snapshot.internal.utils.FileUtilsImpl@a4ca3f6]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 s - in test.internal.fileassertion.existing.MatchesSnapshot_verify_existing_Test
[INFO] Running test.internal.fileassertion.createnew.MatchesSnapshot_record_new_Test
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: org.assertj.snapshot.internal.utils.FileUtilsImpl@72ea6193
juli 23, 2023 8:12:05 FM org.assertj.snapshot.internal.utils.FileUtilsImpl setFileUtils
INFO: MockedFileUtils [createDirs=/home/bjerre/workspace/assertj-snapshot/src/test/java/test/internal/fileassertion/createnew/snapshots, writeFileContentByFileName={test.internal.fileassertion.createnew.MatchesSnapshot_record_new_Test_testThatSnapshotCanBeRecorded.snapshot.json={
"someAttr1" : "abc",
"someAttr2" : 123
}}, fileUtilsImpl=org.assertj.snapshot.internal.utils.FileUtilsImpl@31aa3ca5]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 s - in test.internal.fileassertion.createnew.MatchesSnapshot_record_new_Test
[INFO] Running test.examples.MatchesInlineSnapshotTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.072 s - in test.examples.MatchesInlineSnapshotTest
[INFO] Running test.examples.MatchesSnapshotTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 s - in test.examples.MatchesSnapshotTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ assertj-snapshot ---
[INFO]
[INFO] --- maven-javadoc-plugin:3.5.0:jar (attach-javadocs) @ assertj-snapshot ---
[INFO] Configuration changed, re-generating javadoc.
[WARNING] Javadoc Warnings
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/api/Assertions.java:5: warning: no comment
[WARNING] public class Assertions {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/api/Assertions.java:7: warning: no comment
[WARNING] protected Assertions() {}
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/api/Assertions.java:9: warning: no comment
[WARNING] public static SnapshotAssert assertThat(final Object actual) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtils.java:9: warning: no comment
[WARNING] void createDirs(Path path);
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtils.java:11: warning: no comment
[WARNING] Optional<String> findFileContent(Path path);
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtils.java:13: warning: no comment
[WARNING] String getFileContent(Path path);
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtils.java:17: warning: no comment
[WARNING] boolean pathExists(Path path);
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtils.java:15: warning: no comment
[WARNING] void writeFileContent(Path path, String content);
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtilsImpl.java:24: warning: no @param for fileUtils
[WARNING] public static void setFileUtils(final FileUtils fileUtils) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtilsImpl.java:10: warning: no comment
[WARNING] public class FileUtilsImpl implements FileUtils {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtilsImpl.java:15: warning: no comment
[WARNING] public FileUtilsImpl() {}
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/FileUtilsImpl.java:18: warning: no comment
[WARNING] public static FileUtils create() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/InternalFileAssertions.java:15: warning: no comment
[WARNING] public class InternalFileAssertions {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/InternalFileAssertions.java:19: warning: no comment
[WARNING] public static void assertEqual(final Object actual, final UpdateMode updateMode) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/JavaCodeManipulator.java:17: warning: no comment
[WARNING] public class JavaCodeManipulator {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/JavaCodeManipulator.java:19: warning: no comment
[WARNING] public static String manipulateTestCase(
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/JSONUtils.java:5: warning: no comment
[WARNING] public class JSONUtils {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/JSONUtils.java:13: warning: no comment
[WARNING] public static String prettyPrint(final Object object) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/JSONUtils.java:8: warning: no comment
[WARNING] public static String prettyPrint(final String jsonString) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/SnapshotAssert.java:6: warning: no comment
[WARNING] public class SnapshotAssert extends AbstractAssert<SnapshotAssert, Object> {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/SnapshotAssert.java:10: warning: no comment
[WARNING] public SnapshotAssert(final Object actual) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/SnapshotAssert.java:19: warning: no comment
[WARNING] public void matchesInlineSnapshot() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/SnapshotAssert.java:23: warning: no comment
[WARNING] public void matchesInlineSnapshot(final String expected) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/SnapshotAssert.java:27: warning: no comment
[WARNING] public void matchesSnapshot() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/assertions/SnapshotAssert.java:14: warning: no comment
[WARNING] public SnapshotAssert withUpdateMode(final UpdateMode updateMode) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/SourceCodeLocator.java:14: warning: no comment
[WARNING] public class SourceCodeLocator {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/SourceCodeLocator.java:15: warning: no comment
[WARNING] public static File getSourceFolder(final String className, final String fileName) {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/TestCaseFinder.java:3: warning: no comment
[WARNING] public class TestCaseFinder {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/TestCaseFinder.java:4: warning: no comment
[WARNING] public static class AssertingTestCase {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/TestCaseFinder.java:49: warning: no comment
[WARNING] public static AssertingTestCase getTestCase() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/TestCaseFinder.java:23: warning: no comment
[WARNING] public String getClassName() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/TestCaseFinder.java:27: warning: no comment
[WARNING] public String getFile() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/TestCaseFinder.java:19: warning: no comment
[WARNING] public int getLineNumber() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/internal/utils/TestCaseFinder.java:31: warning: no comment
[WARNING] public String getMethodName() {
[WARNING] ^
[WARNING] /home/bjerre/workspace/assertj-snapshot/src/main/java/org/assertj/snapshot/api/UpdateMode.java:3: warning: no comment
[WARNING] public enum UpdateMode {
[WARNING] ^
[WARNING] 35 warnings
[INFO] Building jar: /home/bjerre/workspace/assertj-snapshot/target/assertj-snapshot-1.0.2-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar-no-fork (attach-sources) @ assertj-snapshot ---
[INFO]
[INFO] >>> spotbugs-maven-plugin:4.7.3.0:check (spotbugs) > :spotbugs @ assertj-snapshot >>>
[INFO]
[INFO] --- spotbugs-maven-plugin:4.7.3.0:spotbugs (spotbugs) @ assertj-snapshot ---
[INFO] Fork Value is true
[INFO] Done SpotBugs Analysis....
[INFO]
[INFO] <<< spotbugs-maven-plugin:4.7.3.0:check (spotbugs) < :spotbugs @ assertj-snapshot <<<
[INFO]
[INFO]
[INFO] --- spotbugs-maven-plugin:4.7.3.0:check (spotbugs) @ assertj-snapshot ---
[INFO] BugInstance size is 0
[INFO] Error size is 0
[INFO] No errors/warnings found
[INFO]
[INFO] --- violations-maven-plugin:1.50.8:violations (default) @ assertj-snapshot ---
[INFO] Found 0 reports in . with pattern .*(?:/|\\)findbugs(?:/|\\).*\.xml$
[INFO] Found 2 reports in . with pattern .*(?:/|\\)spotbugsXml.*\.xml$
[INFO] - /home/bjerre/workspace/assertj-snapshot/./target/checkout/target/spotbugsXml.xml
[INFO] - /home/bjerre/workspace/assertj-snapshot/./target/spotbugsXml.xml
[INFO] Found 0 reports in . with pattern .*(?:/|\\)pmd(?:/|\\).*\.xml$
[INFO] Found 0 reports in . with pattern .*(?:/|\\)checkstyle(?:/|\\).*\.xml$
[INFO] Found 0 reports in . with pattern .*(?:/|\\)jshint(?:/|\\).*\.xml$
[INFO] Found 0 reports in . with pattern .*(?:/|\\)csslint(?:/|\\).*\.xml$
[INFO]
Violations in repo
Summary
| | | | | |
| Reporter | INFO | WARN | ERROR | Total |
| | | | | |
+----------+------+------+-------+-------+
| | | | | |
| | 0 | 0 | 0 | 0 |
| | | | | |
+----------+------+------+-------+-------+
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.501 s
[INFO] Finished at: 2023-07-23T08:12:15+02:00
[INFO] ------------------------------------------------------------------------
I have solved my problem using the command line version.
In projects with more problems or submodules。The execution of plug-ins can take a long time。 Can you temporarily skip plug-in execution by using command line arguments?For example, mvn package -Dmaven.violations.skip=true