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 2019/10/11 22:10:35 UTC

[GitHub] [camel-k] athishsreeram opened a new issue #1010: camel-k-maven-settings localrepo change is not working

athishsreeram opened a new issue #1010: camel-k-maven-settings localrepo change is not working
URL: https://github.com/apache/camel-k/issues/1010
 
 
   i did a mvn clean install ->  jar to local repo
   
   In **camel-k-maven-settings.xml** i configured the local repo
   
   ```
   <?xml version="1.0" encoding="UTF-8"?>
   <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
     <localRepository>/Users/anharay/.m2</localRepository>
     <profiles>
       <profile>
         <id>maven-settings</id>
         <activation>
           <activeByDefault>true</activeByDefault>
         </activation>
         <repositories>
           <repository>
             <id>central</id>
             <url>https://repo.maven.apache.org/maven2</url>
             <snapshots>
               <enabled>false</enabled>
               <checksumPolicy>fail</checksumPolicy>
             </snapshots>
             <releases>
               <enabled>true</enabled>
               <checksumPolicy>fail</checksumPolicy>
             </releases>
           </repository>
         </repositories>
         <pluginRepositories>
           <pluginRepository>
             <id>central</id>
             <url>https://repo.maven.apache.org/maven2</url>
             <snapshots>
               <enabled>false</enabled>
               <checksumPolicy>fail</checksumPolicy>
             </snapshots>
             <releases>
               <enabled>true</enabled>
               <checksumPolicy>fail</checksumPolicy>
             </releases>
           </pluginRepository>
         </pluginRepositories>
       </profile>
     </profiles>
   </settings>
   
   ```
   
   
   ```
   
   kamel run -d mvn:com.javainuse:apache-camel-consume:0.0.1-SNAPSHOT SimpleRouteBuilder.java --dev
   
   ```
   Snapshot is not getting pulled from the local repo
   
   Code repo
   https://github.com/athishsreeram/apache-camel-consume.git
   
   ```
   
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 13.834 s
   [INFO] Finished at: 2019-10-11T21:36:58Z
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.0.0-M2: Could not find artifact com.javainuse:apache-camel-consume:jar:0.0.1-SNAPSHOT -> [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
   {"level":"info","ts":1570829818.8779883,"logger":"camel-k.builder","msg":"step failed with error: failure while determining classpath: exit status 1","step":"github.com/apache/camel-k/pkg/builder/ComputeDependencies","phase":20,"kit":"kit-bmgfahvkqcnejl8ng910"}
   {"level":"info","ts":1570829818.8780565,"logger":"camel-k.builder","msg":"build request kit-bmgfahvkqcnejl8ng910 executed in 14.831754139s"}
   {"level":"info","ts":1570829818.8780706,"logger":"camel-k.builder","msg":"dependencies: [camel:bean camel:cxf camel:direct camel:file camel:http camel:mock camel:rest mvn:com.javainuse:apache-camel-consume:0.0.1-SNAPSHOT mvn:org.apache.camel.k/camel-k-loader-java mvn:org.apache.camel.k/camel-k-runtime-main]"}
   {"level":"info","ts":1570829818.8781338,"logger":"camel-k.builder","msg":"artifacts: []"}
   {"level":"info","ts":1570829818.8781366,"logger":"camel-k.builder","msg":"artifacts selected: []"}
   {"level":"info","ts":1570829818.8781388,"logger":"camel-k.builder","msg":"requested image: "}
   {"level":"info","ts":1570829818.878141,"logger":"camel-k.builder","msg":"base image: fabric8/s2i-java:3.0-java8"}
   {"level":"info","ts":1570829818.8781428,"logger":"camel-k.builder","msg":"resolved image: fabric8/s2i-java:3.0-java8"}
   ```
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services