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

maven-surefire-plugin problem #336

Open
shiluotang opened this issue Mar 18, 2019 · 1 comment
Open

maven-surefire-plugin problem #336

shiluotang opened this issue Mar 18, 2019 · 1 comment

Comments

@shiluotang
Copy link

when a simple nar pom.xml does not explicit specify maven-surefire-plugin, it will use maven-surefire-plugin:3.0.0-M3, which breaks down test phase on old maven version.

Use the default maven installation from Linux Mint 17.3, the problem exists forever.

It's not a good solution to ask everybody to upgrade their maven version, As far as I known, there're incremental compilation problems in some maven3.x versions.

@GregDomjan
Copy link
Member

Not seeing a clear reason this is happening

Only thing I see that might force using newer parts is property <mavenVersion>3.0.4</mavenVersion>

<dependency>
  <groupId>org.apache.maven</groupId>
  <artifactId>maven-artifact</artifactId>
  <version>${mavenVersion}</version>
</dependency>
<dependency>
  <groupId>org.apache.maven</groupId>
  <artifactId>maven-compat</artifactId>
  <version>${mavenVersion}</version>
</dependency>
<dependency>
  <groupId>org.apache.maven</groupId>
  <artifactId>maven-core</artifactId>
  <version>${mavenVersion}</version>
</dependency>
<dependency>
  <groupId>org.apache.maven</groupId>
  <artifactId>maven-model</artifactId>
  <version>${mavenVersion}</version>
</dependency>
<dependency>
  <groupId>org.apache.maven</groupId>
  <artifactId>maven-plugin-api</artifactId>
  <version>${mavenVersion}</version>
</dependency>

Overall there is some inconstancy in specification of version

Enforcer is only working on where nar plugin is itself built

            <requireMavenVersion>
              <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
              <message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.</message>
            </requireMavenVersion>

Other references to maven/surefire versions I know about are

  <prerequisites>
    <maven>2.0.9</maven>
  </prerequisites>

    <dependency>
      <groupId>org.apache.maven.surefire</groupId>
      <artifactId>surefire-api</artifactId>
      <version>2.6</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.surefire</groupId>
      <artifactId>surefire-booter</artifactId>
      <version>2.6</version>
    </dependency>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.0</version>
        </plugin>

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

2 participants