Εξαιρέστε την εξάρτηση pom από όλες τις εξαρτήσεις στο Java Project Eclipse

I have had a problem to exclude a dependency from all dependencies in POM file. If you dont use Eclipse you have to put exlusioin clauses on all dependencies in POM file for this dependency. I use Eclipse and you can do following.

  1. Open the Project in Eclipse in Package View go to ‘Maven Dependencies’
  2. Right Click on Dependency you want to exclude
  3. Go in the opened Menu to ‘Maven>’ and that opens another Menu on the right
  4. Click on ‘Exclude Maven Artifact’
  5. Choose the POM file you want to make the changes in the following window
  6. Save the changed POM file

In all dependencies where the excluded dependency is used will be put exclusion clause for this dependency and as you see the excluded dependency is no more under ‘Maven Dependencies’

Αφήστε μια απάντηση

Ανακαλύψτε περισσότερα από το Blog Velislav Krastev

Εγγραφείτε τώρα για να συνεχίσετε να διαβάζετε και να αποκτήσετε πρόσβαση στο πλήρες αρχείο.

Συνεχίστε την ανάγνωση