Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Maven run-local Missing junit TestRules #1056

Description

@andreaTP

In a plain maven project (e.g. generating with the maven archetype) attempting to run-local produces:

Execution default-cli of goal com.lightbend.cloudflow:cloudflow-maven-plugin:2.1.1:run-local failed: A required class was missing while executing com.lightbend.cloudflow:cloudflow-maven-plugin:2.1.1:run-local: org/junit/rules/TestRule

A simple workaround is to add the dependency to the plugin in the pom.xml file:

<plugin>
  <groupId>com.lightbend.cloudflow</groupId>
  <artifactId>cloudflow-maven-plugin</artifactId>
  <version>${cloudflow.plugin.version}</version>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
    </dependency>
  </dependencies>
</plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions