I recently upgraded to Intellij-12 and xmlns:ivy="antlib:org.apache.ivy.ant" is no longer recongized

My environment is as follows
1 Intellij Version : 12 IU-129.713
2. Operating System : Software  OS X 10.8.4 (12E55)

My ant build file was working fine in Intellij 11.x but after upgrade to 12. Intellij does seem to recongize the antlib: directive the the ant build file.

Any help will be greatly appreciated.


1 comment
Comment actions Permalink

You need to configure the external resource so IDEA can parse the schema associated with the namespace declaration.

  1. Put your cursor on the namepace declaration (the part that is highlighted in red)
  2. Type ALT+Enter or and select "Manually Setup External Resource"
  3. Select the location of the ivy.xsd file. You can map to any location. For example to the ivy install on your file system. Alternatively, you can create a directory somewhere, copy any schemas and DTDs to it, then map to the schema in that directory. It's all up to how you like to organize your system.
  4. Click OK and you should be in business.

You can alternatively configure this in the settings dialog. You can also edit and previous settings.

  • Settings > [Project Settings] > Schemas and DTD


    Please sign in to leave a comment.