How to get Eclipse to work with fragment macro in maven doxia files?

I want to use the fragment macro in my maven site documentation to enable testing my code examples with JUnit. But I do not want Eclipse to show a red marker "there is a build error" for all my projects (which happens because m2eclipse does not recognize the fragment macro). I want maven dependency management to be enabled for projects in Eclipse, so disabling maven integration is not an option at all. Switching to another IDE is not an option, as I cannot get all my colleagues to switch from Eclipse as well.

I would like to find a solution:

  • Do the integration of Doxia in (m2). Eclipse recognizes or ignores the fragment macro.
  • Make Eclipse ignore errors in apt files in general
+3
source share
1 answer

Removing Doxia support is one of the solutions.

From the Help menu, select Install New Software, then Already Installed. Select the "Maven Doxia" package and click "Uninstall ...".

0
source

Source: https://habr.com/ru/post/1739455/


All Articles