facebook

maven compile of swing project fails

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #288808 Reply

    mdarr
    Participant

    I am trying to do a maven build on a matisse/Swing project.
    The compile fails saying it can’t find org.jdesktop.layout which is in swing-layout-1.0.3.jar. This jar is listed as a referenced library.

    I am using the JavaEE 5.0 JDK for the compiler in Maven since it seems to need a jdk.

    The MyEclipse run’s work just fine.
    I tried this on a trivial project started as Maven after it failed on one I converted.

    Any thoughts on how I can get the Maven compile to look for the referenced libraries?

    TIA,
    Maurice

    #288836 Reply

    Loyal Water
    Member

    Right click on your Maven project and go to Maven4MyEclipse > Add Dependency and search for the swing layout jar. Add this jar to the Maven Repo and you should be good to go.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: maven compile of swing project fails

You must be logged in to post in the forum log in