Skip to content
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

Dependency missing for com/vladsch/flexmark/util/ast/Node #88

Open
tribbloid opened this issue May 9, 2022 · 2 comments
Open

Dependency missing for com/vladsch/flexmark/util/ast/Node #88

tribbloid opened this issue May 9, 2022 · 2 comments

Comments

@tribbloid
Copy link

When using the latest plugin 2.0.2 with scalatest 3.2.11 and the following configuration:

      <plugin>
        <groupId>org.scalatest</groupId>
        <artifactId>scalatest-maven-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
          <reportsDirectory>${project.build.directory}/test-results/scalatest</reportsDirectory>
          <junitxml>.</junitxml>
          <htmlreporters>${project.build.directory}/site/scalatest</htmlreporters>

        </configuration>
        <executions>
          <execution>
            <id>test</id>
            <goals>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

a Jar hell exception with the following stacktrace was thown:

java.lang.NoClassDefFoundError: com/vladsch/flexmark/util/ast/Node
07:08
	at org.scalatest.tools.ReporterFactory.createHtmlReporter(ReporterFactory.scala:194)
07:08
	at org.scalatest.tools.ReporterFactory.getReporterFromConfiguration(ReporterFactory.scala:245)
07:08
	at org.scalatest.tools.ReporterFactory$$anonfun$createReportersFromConfigurations$1.apply(ReporterFactory.scala:254)
07:08
	at org.scalatest.tools.ReporterFactory$$anonfun$createReportersFromConfigurations$1.apply(ReporterFactory.scala:253)
07:08
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
07:08
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
07:08
	at scala.collection.Iterator$class.foreach(Iterator.scala:891)
07:08
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
07:08
	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
07:08
	at org.scalatest.tools.ReporterConfigurations.foreach(ReporterConfiguration.scala:42)
07:08
	at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
07:08
	at org.scalatest.tools.ReporterConfigurations.map(ReporterConfiguration.scala:42)
07:08
	at org.scalatest.tools.ReporterFactory.createReportersFromConfigurations(ReporterFactory.scala:253)
07:08
	at org.scalatest.tools.ReporterFactory.getDispatchReporter(ReporterFactory.scala:257)
07:08
	at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
07:08
	at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
07:08
	at org.scalatest.tools.Runner$.main(Runner.scala:775)
07:08
	at org.scalatest.tools.Runner.main(Runner.scala)
07:08
Caused by: java.lang.ClassNotFoundException: com.vladsch.flexmark.util.ast.Node
07:08
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
07:08
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
07:08
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
07:08
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
07:08
	... 18 more
@clayreimann
Copy link

Have you added flexmark-all to your dependencies section?

    <dependencies>
        <dependency>
            <groupId>com.vladsch.flexmark</groupId>
            <artifactId>flexmark-all</artifactId>
            <version>0.62.2</version>
            <scope>test</scope>
        </dependency>
    <dependencies>

@cheeseng
Copy link
Contributor

@bvenners @tribbloid @clayreimann I think this should be fixed by adding the flexmark dependency as suggested by @clayreimann , I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants