Downloading from external resources is disabled in hibernate dtd

45.7k Views Asked by At

While I am trying to do hibernate configuration I put hibernate dtd in hibernate.cfg.xml file and it is showing an error that downloading from external resources is disabled. Can you please help me with this error?

enter image description here

enter image description here

I wanted to create a maven project with hibernate, so I am trying to do my hibernate configuration to do mapping.

5

There are 5 best solutions below

0
rekildo On

If you are using Eclipse :

Go to top bar : Window -> Preference -> Maven -> tick the option ('download artifact javadoc').

Thats is 'Apply & Close'.

0
Vinay On

Any one looking for the same option in mac the path is Eclipse -> Settings -> Maven -> tick the option ('download artifact javadoc')

0
Sairam Pabbisetty On
If you are encountering the 
"Downloading from external resources is disabled in Hibernate DTD" issue while 
using Eclipse, follow these steps to resolve it:

1. Navigate to the top bar and select "Window."

2. From the dropdown menu, choose "Preferences."

3. Within the Preferences window, locate and click on "Maven."

4. In the Maven preferences, find the option labeled "Download artifact javadoc."

5. Tick the checkbox next to "Download artifact javadoc" to enable the option.

6. After making the change, click on the "Apply & Close" button to save 
your preferences.

By enabling the "Download artifact javadoc" option in Maven preferences, 
you should address the issue of downloading from external resources being disabled 
in Hibernate DTD within Eclipse.
0
Jonathan S. Fisher On

I was able to get this to work the the below option:

enter image description here

0
Bayram Binbir On

If you are using Mac then follow

  • Eclipse Preferences
  • Select Maven
  • Make sure the select what see in the below picture
  • Then Apply and Close

enter image description here