简体   繁体   中英

How to make Eclipse work with the snippet macro in maven doxia files?

I want to use the snippet macro in my maven site documentation in order to allow for testing of my examples code snippets with JUnit. But I don't want Eclipse to show the red "there is a build error" marker for all of my projects (which it does since m2eclipse does not recognize the snippet macro). I do want maven dependency management to be enabled for the projects in Eclipse, so disabling the maven integration completely is not an option. Moving to a different IDE is not an option either since I cannot force all of my coworkers to switch from Eclipse as well.

I would like a solution to either:

  • Make the Doxia integration in (m2)Eclipse recognize or ignore the snippet macro
  • Make Eclipse ignore errors in apt files altogether

Uninstalling the Doxia support is one solution.

Under the Help menu, click "Install new software", then "Already installed". Select the "Maven Doxia" bundle and click "Uninstall...".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM