open-dis/open-dis-java

disenum dependency in maven

mcgredonps opened this issue · 13 comments

Looks like there's a missing dependency for disenum.jar in the pom.xml file.

Hmm what's the error you're seeing?

This is how the dis-enums-1.1.jar is defined as a compile and run time dependency in the pom.xml

<dependency>
     <groupId>edu.nps.moves</groupId>
     <artifactId>dis-enums</artifactId>
     <version>1.1</version>
</dependency>

Hmm, it appears to be a netbeans problem—for some reason Netbeans isn’t picking it up,
or the SRM jar.

On Feb 29, 2016, at 9:44 AM, Leif Gruenwoldt <notifications@github.commailto:notifications@github.com> wrote:

Hmm what's the error you're seeing?

This is how the dis-enums-1.1.jar is defined as a compile and run time dependency in the pom.xml

    <dependency>
        <groupId>edu.nps.moves</groupId>
        <artifactId>dis-enums</artifactId>
        <version>1.1</version>
    </dependency>


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-190306313.

Silly question, but is the PC you're running Netbeans on connected to the internet?

Because what's happening is Netbeans is trying to fulfill those dependencies by fetching them from Maven Central auto-magically. (And then it caches them locally in your home dir in ~/.m2/repository)

@mcgredonps Any luck?

To open and compile the project this is what I do:

  1. Start Netbeans 8
  2. In Netbeans, File->Open and select the top level open-dis-java folder
    • You may need to first delete your open-dis-java/nbproject folder, it may still contain old Ant Netbeans project settings)
    • Once it's opened, you may notice Netbeans redline some files and lines, in particular import statements for packages that have not been fetched yet. This will be resolved once you do the next step.
  3. In Netbeans, click Build Project
    • The first time you do this step Maven will go out and fetch the missing jar dependencies that are defined in the pom.xml -- this may take a minute depending on your internet connection. Subsequent builds should be very fast because it caches them.

@mcgredonps Ever figure this one out?

@mcgredonps can we close this one?

Ya good question. It's grabbing the dis-enums-1.1.jar from Maven Central. I had deployed it that there as part of the original 4.08 release way back in 2013. But you're making me realize, dis-enums was one of the pieces I lost track of when we moved from SourceForge. I wonder now if we should include this Java dis-enums source code in open-dis-java.

I currently don't use the dis-enums in my projects, but I really should. More readable code is a good thing.

Ya I think a string version of the enum would be handy.