How do I get Eclipse to resolve classes generated with Maven 2?

前端 未结 9 876
日久生厌
日久生厌 2020-12-12 22:11

I\'m using Google Protocol Buffers to generate some Java classes for my project. Using Maven 2 and its \"antrun\" plugin, these classes are freshly generated before compile,

9条回答
  •  無奈伤痛
    2020-12-12 22:20

    Did you try to refresh the Eclipse project?


    (source: oyvindhauge.com)

    When an external tool generate new files or updates old ones, Eclipse will not be able to detect the change until the next request.

    Another option would be to define a new Custom builder, specifying for that builder to "refresh resources upon completion":

    alt text http://www.cs.lth.se/EDA180/2005/Verktyg/eclipse_refresh.gif

提交回复
热议问题