Waikato / moa

MOA is an open source framework for Big Data stream mining. It includes a collection of machine learning algorithms (classification, regression, clustering, outlier detection, concept drift detection and recommender systems) and tools for evaluation.
http://moa.cms.waikato.ac.nz/
GNU General Public License v3.0
613 stars 354 forks source link

2020.07.1 maven repository problem #212

Closed ozgunerbulent closed 4 years ago

ozgunerbulent commented 4 years ago

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

fracpete commented 4 years ago

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>
fracpete commented 4 years ago

No further activity, closing the issue.