title: Duplicate Filter registration for 'springSecurityFilterChain'. Check to ensure the Filter is only configured once
body: <p>I am getting error : Caused by: <code>java.lang.IllegalStateException: Duplicate Filter registration for 'springSecurityFilterChain'. Check to ensure the Filter is only configured once.</code>
  I have Spring Boot 2.3.3.RELEASE backed up by Spring Security - 5.3.4.RELEASE where in I have an SpringBootServletInitializer initializing my Application Context also have and class extending - AbstractSecurityWebApplicationInitializer , I have SpringSecurityConfig.java class with below code.</p>
  <pre><code>@Configuration
  @Import(SecurityFilterAutoConfiguration.class)
  @EnableWebMvc
  @ComponentScan(basePackages={     &quot;com.services.security&quot;,&quot;com.services.security.config&quot; })
  @EnableWebSecurity(debug=true)
  @EnableGlobalMethodSecurity(prePostEnabled = true)
  @EnableGlobalAuthentication
  public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
  
  @Autowired
  UserDetailsService userDetailsService;
  
  @Autowired
  PasswordGenerator pdgen;
  
  @Autowired
  UserRepository userRepositry;
  
  @Override
  protected void configure(HttpSecurity http) throws Exception {
      http.csrf().disable();
  }
  @Autowired
  public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
      auth.userDetailsService(userDetailsService);
       
  }
  
  @Bean
  @Override
  public AuthenticationManager authenticationManagerBean() throws Exception {
      return super.authenticationManagerBean();
  }
  </code></pre>
  <p>. I what to understand the Code flow around AbstractSecurityWebApplicationInitializer since from the Source I could find that super.onStartup(servletContext); could make the springSecurityFilterChain configured , Is there any way that I could make in subclassing AbstractSecurityWebApplicationInitializer.especially using @Conditional constraints</p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.spring.services&lt;/groupId&gt;
  &lt;artifactId&gt;spring-advsearch-services&lt;/artifactId&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;spring-advsearch-services Maven Webapp&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.3.3.RELEASE&lt;/version&gt;
      &lt;relativePath /&gt;
  &lt;/parent&gt;
  &lt;properties&gt;
      &lt;start-class&gt;com.iii.advancesearch.services.app.ServletInitializer
      &lt;/start-class&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
      &lt;jackson.version.annotations&gt;2.9.7&lt;/jackson.version.annotations&gt;
      &lt;spring-security.version&gt;5.3.4.RELEASE&lt;/spring-security.version&gt;
      &lt;spring.version&gt;5.2.8.RELEASE&lt;/spring.version&gt;
      &lt;spring-boot.version&gt;2.3.3.RELEASE&lt;/spring-boot.version&gt;
  &lt;/properties&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-solr&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-solr --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-solr&lt;/artifactId&gt;
          &lt;version&gt;4.2.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-commons&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;&lt;!-- End of spring-boot-starter-data-solr --&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
          &lt;version&gt;2.11.2&lt;/version&gt;
      &lt;/dependency&gt;&lt;!-- End of spring-boot-starter-data-solr --&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
      &lt;/dependency&gt;&lt;!-- End of spring-boot-starter-data-solr --&gt;
      &lt;dependency&gt;&lt;!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure 
              ## dependency for spring-boot-starter --&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-autoconfigure&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-core 
          spring-boot-starter --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-jcl 
          dependency for spring-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-jcl&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/jakarta.annotation/jakarta.annotation-api 
          dependency for spring-boot-starter --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;jakarta.annotation&lt;/groupId&gt;
          &lt;artifactId&gt;jakarta.annotation-api&lt;/artifactId&gt;
          &lt;version&gt;1.3.5&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;&lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-security-config 
              dependency for spring-boot-starter-security --&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
          &lt;version&gt;${spring-security.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;&lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-security-web 
              dependency for spring-boot-starter-security --&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
          &lt;version&gt;${spring-security.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-acl&lt;/artifactId&gt;
          &lt;version&gt;${spring-security.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-expression&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-taglibs&lt;/artifactId&gt;
          &lt;version&gt;${spring-security.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-ldap&lt;/artifactId&gt;
          &lt;version&gt;${spring-security.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;spring-security-core&lt;/artifactId&gt;
          &lt;version&gt;${spring-security.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-aop 
          dependency for spring-boot-starter-security --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;&lt;!-- Dependency for spring-boot-starter-jdbc --&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
          &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
          &lt;version&gt;3.4.5&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Oracle JDBC driver --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.oracle.database.jdbc&lt;/groupId&gt;
          &lt;artifactId&gt;ojdbc8&lt;/artifactId&gt;
          &lt;version&gt;12.2.0.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.oracle.database.jdbc&lt;/groupId&gt;
          &lt;artifactId&gt;ucp&lt;/artifactId&gt;
          &lt;version&gt;12.2.0.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.apache.tomcat.embed&lt;/groupId&gt;
                  &lt;artifactId&gt;tomcat-embed-core&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-hateoas&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;&lt;!-- Dependency for spring-boot-starter-web --&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;&lt;!-- Dependency for spring-boot-starter-web --&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-json --&gt;
      &lt;dependency&gt;&lt;!-- Dependency for spring-boot-starter-web --&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-json&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Spring data JPA, default tomcat pool, exclude it --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/jakarta.persistence/jakarta.persistence-api 
          dependency for spring-boot-starter-data-jpa --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;jakarta.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;jakarta.persistence-api&lt;/artifactId&gt;
          &lt;version&gt;2.2.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/jakarta.transaction/jakarta.transaction-api 
          dependency for spring-boot-starter-data-jpa --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;jakarta.transaction&lt;/groupId&gt;
          &lt;artifactId&gt;jakarta.transaction-api&lt;/artifactId&gt;
          &lt;version&gt;1.3.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core dependency 
          for spring-boot-starter-data-jpa --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;5.4.20.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/antlr/antlr dependency for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;antlr&lt;/groupId&gt;
          &lt;artifactId&gt;antlr&lt;/artifactId&gt;
          &lt;version&gt;2.7.7&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/com.fasterxml/classmate dependency 
          for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml&lt;/groupId&gt;
          &lt;artifactId&gt;classmate&lt;/artifactId&gt;
          &lt;version&gt;1.5.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/javax.activation/javax.activation-api 
          dependency for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.activation&lt;/groupId&gt;
          &lt;artifactId&gt;javax.activation-api&lt;/artifactId&gt;
          &lt;version&gt;1.2.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/javax.persistence/javax.persistence-api 
          dependency for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;javax.persistence-api&lt;/artifactId&gt;
          &lt;version&gt;2.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api dependency 
          for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
          &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy dependency 
          for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.bytebuddy&lt;/groupId&gt;
          &lt;artifactId&gt;byte-buddy&lt;/artifactId&gt;
          &lt;version&gt;1.10.10&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime 
          dependency for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jaxb&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-runtime&lt;/artifactId&gt;
          &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.hibernate.common/hibernate-commons-annotations 
          dependency for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate.common&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-commons-annotations&lt;/artifactId&gt;
          &lt;version&gt;5.1.0.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.javassist/javassist dependency 
          for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.javassist&lt;/groupId&gt;
          &lt;artifactId&gt;javassist&lt;/artifactId&gt;
          &lt;version&gt;3.24.0-GA&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.jboss/jandex dependency for 
          hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss&lt;/groupId&gt;
          &lt;artifactId&gt;jandex&lt;/artifactId&gt;
          &lt;version&gt;2.1.3.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.jboss.logging/jboss-logging 
          dependency for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;
          &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt;
          &lt;version&gt;3.3.2.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.jboss.spec.javax.transaction/jboss-transaction-api_1.2_spec 
          dependency for hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.spec.javax.transaction&lt;/groupId&gt;
          &lt;artifactId&gt;jboss-transaction-api_1.2_spec&lt;/artifactId&gt;
          &lt;version&gt;1.1.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects 
          dependency for spring-boot-starter-data-jpa --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-aspects&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver dependency 
          for spring-aspects --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
          &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;
          &lt;version&gt;1.9.5&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop 
          dependency for spring-boot-starter-data-jpa --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-aop&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
          &lt;version&gt;${spring-boot.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;3.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.darkphoenixs&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;1.3.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
          &lt;version&gt;1.18.12&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.json&lt;/groupId&gt;
          &lt;artifactId&gt;json&lt;/artifactId&gt;
          &lt;version&gt;20090211&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-collections4&lt;/artifactId&gt;
          &lt;version&gt;4.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.clerezza.ext&lt;/groupId&gt;
          &lt;artifactId&gt;org.json.simple&lt;/artifactId&gt;
          &lt;version&gt;0.4&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;finalName&gt;astra-advsearch-services&lt;/finalName&gt;
  
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;configuration&gt;
                          &lt;mainClass&gt;com.services.app.ServletInitializer
                          &lt;/mainClass&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  
  &lt;/build&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;5_maven.restlet.org&lt;/id&gt;
          &lt;name&gt;maven.restlet.org&lt;/name&gt;
          &lt;url&gt;https://maven.restlet.org&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;webpublico-repository&lt;/id&gt;
          &lt;name&gt;Webpublico Nexus Repository&lt;/name&gt;
          &lt;url&gt;http://repository.webpublico.com.br/repository/maven-public/
          &lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;1_central&lt;/id&gt;
          &lt;name&gt;Central Repository&lt;/name&gt;
          &lt;url&gt;https://repo.maven.apache.org/maven2&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;0_central&lt;/id&gt;
          &lt;name&gt;Central Repository&lt;/name&gt;
          &lt;url&gt;https://repo1.maven.org/maven2/&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;1_maven2-repository.dev.java.net&lt;/id&gt;
          &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
          &lt;url&gt;https://download.java.net/maven/2/
          &lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/releases&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;2_repository.spring.release&lt;/id&gt;
          &lt;name&gt;Spring
              GA Repository
          &lt;/name&gt;
          &lt;url&gt;https://repo.spring.io/release&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;3_spring-releases&lt;/id&gt;
          &lt;url&gt;https://repo.spring.io/libs-release&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;4_maven.oracle.com&lt;/id&gt;
          &lt;name&gt;oracle-maven-repo&lt;/name&gt;
          &lt;url&gt;https://maven.oracle.com&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
          &lt;/releases&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
          &lt;id&gt;spring-snapshots&lt;/id&gt;
          &lt;url&gt;https://repo.spring.io/snapshot&lt;/url&gt;
      &lt;/pluginRepository&gt;
      &lt;pluginRepository&gt;
          &lt;id&gt;spring-milestones&lt;/id&gt;
          &lt;url&gt;https://repo.spring.io/milestone&lt;/url&gt;
      &lt;/pluginRepository&gt;
      &lt;pluginRepository&gt;
          &lt;id&gt;spring-releases&lt;/id&gt;
          &lt;url&gt;https://repo.spring.io/libs-release&lt;/url&gt;
      &lt;/pluginRepository&gt;
  
      &lt;pluginRepository&gt;
          &lt;id&gt;maven.oracle.com&lt;/id&gt;
          &lt;name&gt;oracle-maven-repo&lt;/name&gt;
          &lt;url&gt;https://maven.oracle.com&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
          &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
          &lt;/releases&gt;
      &lt;/pluginRepository&gt;
  
  &lt;/pluginRepositories&gt;
  </code></pre>