You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/01/31 14:03:28 UTC

[GitHub] [camel-k] astefanutti commented on issue #2966: Configure Maven: Artifact Repository is not recognized

astefanutti commented on issue #2966:
URL: https://github.com/apache/camel-k/issues/2966#issuecomment-1025770002


   Maven central is added by default to the "platform" Maven settings, so you have to disable it in your custom Maven settings, e.g.:
   
   ```xml
   <repositories>
       <repository>
           <id>central</id>
           <url>http://repo1.maven.org/maven2</url>
           <releases>
                   <enabled>false</enabled>
           </releases>
           <snapshots>
               <enabled>false</enabled>
           </snapshots>
       </repository>    
   </repositories>
   <pluginRepositories>
       <pluginRepository>
           <id>central</id>
           <url>http://repo1.maven.org/maven2</url>
           <releases>
               <enabled>false</enabled>
           </releases>
           <snapshots>
               <enabled>false</enabled>
           </snapshots>
       </pluginRepository>
   </pluginRepositories>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org