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

FAQ: My project compiles in Eclipse and not Maven. Why is Maven broken?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • Documentation Deficit
    • None
    • Documentation: FAQ
    • None

    Description

      We see a fair number of emails on the Users list claiming "my project builds in Eclipse but not Maven". It would be nice to post something about this in the FAQ, perhaps along these lines:

      Q: My project compiles in Eclipse and not Maven. Why is Maven broken?
      A: Eclipse has its own compiler (JDT) that does things differently than Maven (which uses your JDK's javac). Try compiling your project with javac from the JDK and specifying your dependencies with -cp. If this works, then Maven should have no issues compiling it either.

      You can see more info in this (and other) threads:
      To: Maven Users List
      Subject: Re: package does not exit error with 3rd party jar dependency
      Date: Mon, 24 Mar 2008 16:13:08 +0100

      Attachments

        Activity

          People

            Unassigned Unassigned
            wfay Wayne Fay
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: