-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassNotFoundException thrown for each custom error class by serenity:aggregate #3102
Comments
This is the way Maven works. Plugins do not have access to application code unless you explicitly add a dependency to your project in the plugin dependencies. This is why the aggregate plugin cannot find the custom exception class. |
This doesn't explain why it doesn't throw this exception in all previous versions before 3.4.3. |
I don't know, maybe due to the Maven API version updates used in the plugin. |
Which plugin is suspected here? |
You need to add your project dependencies to the maven-serenity-plugin, e.g. <plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.version}</version>
<configuration>
<tags>${tags}</tags>
<reports>single-page-html</reports>
</configuration>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-single-page-report</artifactId>
<version>${serenity.version}</version>
</dependency>
</dependencies>
</plugin> |
Doesn't it require a jar file created out of the project code?
|
No |
but this is what it outputs when executed - it complains about missing jar
|
Unfortunately this link doesn't help me. |
While generating the report
serenity:aggregate
throws this exception for every error class defined within the project.It doesn't happen for earlier Serenity versions ().
This exception is thrown multiple times for each custom class extending RuntimeException found in the project, also when none of them was executed during the test run.
The text was updated successfully, but these errors were encountered: