Maven modules

Discussion in 'Plugin Development' started by bys1, Apr 28, 2017.

Thread Status:
Not open for further replies.
  1. Hi,
    I am trying to get abstraction to work with Maven modules (https://bukkit.org/threads/support-multiple-minecraft-versions-with-abstraction-maven.115810/).
    I keep getting these errors:
    https://s14.postimg.org/udb22w29t/image.jpg
    https://s8.postimg.org/kbfdn8k6t/image.jpg

    I've tried solving them myself with some stackoverflow topics but I couln't figure it out. I have the sollowing set up:
    https://s17.postimg.org/qqdqfa68f/image.jpg
    https://s12.postimg.org/evqjam68t/image.jpg

    How can I properly create Maven modules without getting these annoying errors?
    Thanks in advance.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @bys1 It means that your classes are not in that package.
    Has nothing to do with Maven as far as I know.
     
  3. The point is, they are. Look at my screens please..
     
  4. After adding core/Plugin/src/main/java to the Java Build Path -> Source the package declarations etc work fine. Now I keep getting errors like "The import org.bukkit.craftbukkit cannot be resolved".

    I have found the problem. Eclipse searches for the dependencies in the main pom.xml instead of the pom.xml in the module which causes it to be unable to resolve imports. How can I fix that?
     
Thread Status:
Not open for further replies.

Share This Page