Waikato/moa

2020.07.1 maven repository problem

ozgunerbulent opened this issue · 2 comments

When we add dependency for 2020.07.1, jar is downloaded, but our code cannot see this jar. The code reaches to 2019.05.0 jar.

It says Add library 'Maven: nz:ac.waikato.cms.moa:moa:2020.07.1' to classpath, but it adds 2019.05.0 as a dependency

You might have to reimport your maven project in your IDE or refresh it otherwise. When executing the following pom.xml (it pulls in all the dependencies and places them in target/jars) you will find it uses the MOA 2020.07.1 jar:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>com.github.fracpete</groupId>
  <artifactId>moa-dep-test</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <name>moa-dep-test</name>
  <description>Testing MOA dependencies.</description>

  <dependencies>
    <dependency>
      <groupId>nz.ac.waikato.cms.moa</groupId>
      <artifactId>moa</artifactId>
      <version>2020.07.1</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.10</version>
        <executions>
          <!-- get all binary jars -->
          <execution>
            <id>jars</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
              <outputDirectory>${project.build.directory}/jars</outputDirectory>
              <includeScope>compile</includeScope>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

No further activity, closing the issue.