I want to use jQAssistant for our team. I installed it according to https://101.jqassistant.org/setting-up-a-team-server/index.html , so I have an external Neo4j store that is running independently of jQAssistant.
I would like to scan our software during the nightly build and to have the most recent information. So my idea was to use a reset before the nightly build:
<!-- Use this profile to reset the jQAssistant store (database) -->
<profile>
<id>jqassistant-reset</id>
<build>
<plugins>
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<executions>
<execution>
<id>reset-store</id>
<phase>clean</phase>
<goals>
<goal>reset</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
And then I would go through every Maven module and scan it:
<pluginManagement>
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<version>1.9.1</version>
<configuration>
<store>
<uri>bolt://my-neo4j-store.com:7687</uri>
<username>neo4j</username>
<password>reallysecret</password>
<encryption>false</encryption>
</store>
<configuration>
<resetStore>false</resetStore>
</configuration>
<continueOnError>true</continueOnError>
</configuration>
</plugin>
</pluginManagement>
...
<!-- Use this profile to gather information using jQAssistant -->
<profile>
<id>jqassistant</id>
<build>
<plugins>
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<executions>
<execution>
<id>scan-software</id>
<phase>package</phase>
<goals>
<goal>scan</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
However, I see confusing log messages:
[INFO] --- jqassistant-maven-plugin:1.9.1:scan (scan-software) @ foobar ---
[INFO] Scanning for jQAssistant plugins...
[INFO] [Asciidoc Report, CDI, Common, Core Analysis, Core Report, EJB3, GraphML, GraphQL, JAX-RS, JPA 2, JSON, JUnit, Java, Java EE 6, Maven 2 Repository, Maven 3, OSGi, RDBMS, Spring, TestNG, Tycho, XML, YAML].
[INFO] Connecting to store at 'bolt://my-neo4j-store.com:7687' (username=neo4j)
Jul 12, 2021 9:46:59 AM org.neo4j.driver.internal.logging.JULogger info
INFORMATION: Direct driver instance 839477204 created for server address my-neo4j-store.com:7687
[INFO] Resetting store.
[INFO] Reset finished (removed 0 nodes, 0 relations).
[INFO] Entering /foobar/target/classes
[INFO] Leaving /foobar/target/classes (70 entries, 307558 ms)
[INFO] Entering /foobar/target/test-classes
[INFO] Leaving /foobar/target/test-classes (70 entries, 1422 ms)
[INFO] Entering /foobar/target/surefire-reports
[INFO] Leaving /foobar/target/surefire-reports (46 entries, 1127 ms)
I don't understand why I'm seeing Resetting store.
although I have switched this off in the configuration.
However, what's more confusing for me is that when starting the Maven build again, I see this:
[INFO] Resetting store.
[INFO] Reset finished (removed 0 nodes, 0 relations).
I just filled the store with the first build, and now in the second build, the plugin tells me that it resetted the store, but didn't remove any nodes or relations.
Could someone please explain how I could achieve what I'm trying to do?