Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6660

duplicate classes error with source in the root directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.6.1
    • None
    • None
    • None

    Description

      Trying to follow the instructions from here which entails adding this little pom:

      {{<project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>org.bytedeco.hdf5</groupId>
      <artifactId>H5tutrCmprss</artifactId>
      <version>1.5</version>
      <properties>
      <exec.mainClass>H5tutrCmprss</exec.mainClass>
      </properties>
      <dependencies>
      <dependency>
      <groupId>org.bytedeco</groupId>
      <artifactId>hdf5-platform</artifactId>
      <version>1.10.5-1.5</version>
      </dependency>
      </dependencies>
      <build>
      <sourceDirectory>.</sourceDirectory>
      </build>
      </project>}}

      and a Java source file to the root directory. (There's code in the same link, but actually anything I think anything with a `main` function will do.)

      It does not seem to work with:

      <sourceDirectory>.</sourceDirectory>

      Yielding the strange error

      Compilation failure
      [ERROR] /D:/work/workspace/hdf5/H5tutrCmprss.java:[7,8] duplicate class: H5tutrCmprss

      (Seen also in: MCOMPILER-235)

      However if I move the source under a sub-directory `src` and update the pom accordingly, it works fine. I assume that this pom worked "out of the box" once, so I wonder if this is a regression?

      Attachments

        1. debug.log
          39 kB
          Luke Usherwood

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ludarp Luke Usherwood
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: