Ah yes, this has been fixed for everithing but spring. Will fix it soon. To
test it, select jvm,groovy,kotlin contexts atbinstallation time.

On Fri, 8 Mar 2019 at 22:32, Alex Dettinger <aldettin...@gmail.com> wrote:

> Yes, I'm up to date at commit 82c1a87f23ef035b44db28d4617301289f1e3a12
>
> Taking a closer look at operator logs, some artifacts were indeed
> downloaded from the staging repo as the plugin repo seems defined:
> PluginRepositories:[{ID:repo-000 Name: URL:
> https://repository.apache.org/content/repositories/orgapachecamel-1123/
>
> However, right before the failing job, the log below shows that no plugin
> repo were set in this case (PluginRepositories:[]):
>
> {"level":"info","ts":1552057382.930036,"logger":"camel-k.maven","msg":"write
> project: {XMLName:{Space: Local:project} XMLNs:
> http://maven.apache.org/POM/4.0.0  XMLNsXsi:
> http://www.w3.org/2001/XMLSchema-instance  XsiSchemaLocation:
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd  ModelVersion:4.0.0
> GroupID:org.apache.camel.k.integration ArtifactID:camel-k-integration
> Version:0.3.1-SNAPSHOT Properties:map[]
> DependencyManagement:{Dependencies:[{GroupID:org.apache.camel
> ArtifactID:camel-bom Version:2.23.1 Type:pom Classifier: Scope:import
> Exclusions:<nil>}]} Dependencies:[{GroupID:org.apache.camel.k
> ArtifactID:camel-k-runtime-spring-boot Version:0.3.1 Type: Classifier:
> Scope: Exclusions:0xc000dbdbe0}] Repositories:[{ID:repo-000 Name: URL:
> https://repository.apache.org/content/repositories/orgapachecamel-1123/
> Snapshots:{Enabled:false UpdatePolicy:} Releases:{Enabled:true
> UpdatePolicy:}}] *PluginRepositories:[]* Build:{DefaultGoal: Plugins:[]}}"}
>
> I wonder if we are not missing a PluginRepositories initialization
> somewhere, for instance here:
>
> https://github.com/apache/camel-k/blob/master/pkg/builder/springboot/generator.go#L42
>
> Is it worth checking in this direction ?
>
> On Fri, Mar 8, 2019 at 7:14 AM Luca Burgazzoli <lburgazz...@gmail.com>
> wrote:
>
> > camel-k should automatically set the plugin repository so this error
> > looks strange.
> >
> > is the kamel binary built from a recent master ?
> >
> >
> > ---
> > Luca Burgazzoli
> >
> > On Fri, Mar 8, 2019 at 1:44 AM Willem Jiang <willem.ji...@gmail.com>
> > wrote:
> > >
> > > According to the error, it looks like camel-k  maven plugin cannot be
> > > resolved from the central maven.
> > > We may need to pass the plugin repository to kcamel commend, I'm not
> > > sure if --pluginRepositories could do the track.
> > >
> > > Willem Jiang
> > >
> > > Twitter: willemjiang
> > > Weibo: 姜宁willem
> > >
> > > On Fri, Mar 8, 2019 at 5:26 AM Alex Dettinger <aldettin...@gmail.com>
> > wrote:
> > > >
> > > > Hi Luca,
> > > >
> > > >   And many thanks for guidance :) I think camel-k was indeed already
> > > > installed. From there, I've then tried:
> > > >
> > > > make images-dev
> > > > oc login -u system:******
> > > > ./kamel reset
> > > > oc delete
> > > >
> >
> all,pvc,configmap,rolebindings,clusterrolebindings,secrets,sa,roles,clusterroles,crd
> > > > -l 'app=camel-k'
> > > > ./kamel install --cluster-setup --runtime-version 0.3.1 --repository
> > > >
> > https://repository.apache.org/content/repositories/orgapachecamel-1123/
> -w
> > > > oc login -u developer
> > > > ./kamel install --runtime-version 0.3.1 --repository
> > > >
> > https://repository.apache.org/content/repositories/orgapachecamel-1123/
> -w
> > > > ./kamel run examples/simple.groovy --dev
> > > >
> > > > But then, "kamel run" hangs forever in the 'Waiting for platform
> > phase'.
> > > > The operator reports "Failure to find
> > > > org.apache.camel.k:camel-k-maven-plugin:jar:0.3.1 in
> > > > https://repo.maven.apache.org/maven2";.
> > > > It's like the staging repository is ignored.
> > > >
> > > > More complete logs below:
> > > >
> >
> {"level":"info","ts":1551977988.2832928,"logger":"camel-k.maven","msg":"write
> > > > project: {XMLName:{Space: Local:project} XMLNs:
> > > > http://maven.apache.org/POM/4.0.0  XMLNsXsi:
> > > > http://www.w3.org/2001/XMLSchema-instance  XsiSchemaLocation:
> > > > http://maven.apache.org/POM/4.0.0
> > > > http://maven.apache.org/xsd/maven-4.0.0.xsd  ModelVersion:4.0.0
> > > > GroupID:org.apache.camel.k.integration ArtifactID:camel-k-integration
> > > > Version:0.3.1-SNAPSHOT Properties:map[]
> > > > DependencyManagement:{Dependencies:[{GroupID:org.apache.camel
> > > > ArtifactID:camel-bom Version:2.23.1 Type:pom Classifier: Scope:import
> > > > Exclusions:<nil>}]} Dependencies:[{GroupID:org.apache.camel.k
> > > > ArtifactID:camel-k-runtime-spring-boot Version:0.3.1 Type:
> Classifier:
> > > > Scope: Exclusions:0xc000594140}] Repositories:[{*ID:repo-000 Name:
> > > > URL:
> > https://repository.apache.org/content/repositories/orgapachecamel-1123/
> > > > <
> > https://repository.apache.org/content/repositories/orgapachecamel-1123/
> >*
> > > > Snapshots:{Enabled:false UpdatePolicy:} Releases:{Enabled:true
> > > > UpdatePolicy:}}] PluginRepositories:[] Build:{DefaultGoal:
> > Plugins:[]}}"}
> > > >
> >
> {"level":"info","ts":1551977988.2835553,"logger":"camel-k.maven","msg":"execute:
> > > > mvn -Dmaven.repo.local=/tmp/artifacts/m2
> > > >
> > org.apache.camel.k:camel-k-maven-plugin:0.3.1:generate-dependency-list"}
> > > > [INFO] Scanning for projects...
> > > > [WARNING] The POM for
> > org.apache.camel.k:camel-k-maven-plugin:jar:0.3.1 is
> > > > missing, no dependency information available
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Total time: 0.273 s
> > > > [INFO] Finished at: 2019-03-07T16:59:50Z
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [ERROR] Plugin org.apache.camel.k:camel-k-maven-plugin:0.3.1 or one
> of
> > its
> > > > dependencies could not be resolved: Failure to find
> > > > *org.apache.camel.k:camel-k-maven-plugin:jar:0.3.1
> > > > in https://repo.maven.apache.org/maven2
> > > > <https://repo.maven.apache.org/maven2>*  was cached in the local
> > > > repository, resolution will not be reattempted until the update
> > interval of
> > > > central has elapsed or updates are forced -> [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/PluginResolutionException
> > > >
> >
> {"level":"info","ts":1551977990.107809,"logger":"camel-k.builder","msg":"step
> > > > failed with error: failure while determining classpath: exit status
> > > >
> >
> 1","step":"build/compute-dependencies","phase":20,"context":"spring-boot"}
> > > >
> > > > Alex
> > > >
> > > > On Thu, Mar 7, 2019 at 9:03 AM Luca Burgazzoli <
> lburgazz...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Alex,
> > > > >
> > > > > was camel-k already installed ?
> > > > >
> > > > > ---
> > > > > Luca Burgazzoli
> > > > >
> > > > > On Wed, Mar 6, 2019 at 10:15 PM Alex Dettinger <
> > aldettin...@gmail.com>
> > > > > wrote:
> > > > > >
> > > > > > Hi Cameleers,
> > > > > >
> > > > > >   I would like to use the 0.3.1 camel-k runtime under vote to
> play
> > a bit.
> > > > > >   From my local build, I've tried:
> > > > > >
> > > > > >   kamel install --runtime-version 0.3.1 --repository
> > > > > >
> > https://repository.apache.org/content/repositories/orgapachecamel-1123/
> > > > > >   kamel run examples/simple.groovy --dev
> > > > > >
> > > > > >   But from the example startup logs, it looks that 0.3.0 version
> > is still
> > > > > > used:
> > > > > >
> > > > > > [1] Monitoring pod simple-7d5c44559d-gx4k6[1] Starting the Java
> > > > > application
> > > > > > using /opt/run-java/run-java.sh ...
> > > > > > [1] exec java -XX:+UseParallelGC -XX:GCTimeRatio=4
> > > > > > -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20
> > > > > > -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError -cp
> > > > > >
> > > > >
> >
> /etc/camel/resources:./resources:dependencies/org.apache.camel.k.camel-k-runtime-jvm-0.3.0.jar:dependencies/org.apache.camel.k.camel-k-runtime-core-
> > > > > >
> > > > >
> >
> *0.3.0*.jar:dependencies/org.apache.logging.log4j.log4j-core-2.11.1.jar:dependencies/org.apache.logging.log4j.log4j-api-2.11.1.jar:dependencies/org.apache.logging.log4j.log4j-slf4j-impl-2.11.1.jar:dependencies/org.jooq.joor-java-8-0.9.10.jar:dependencies/commons-io.commons-io-2.6.jar:dependencies/org.apache.commons.commons-lang3-3.8.1.jar:dependencies/org.apache.camel.k.camel-k-runtime-groovy-0.3.0.jar:dependencies/org.apache.camel.camel-core-2.23.1.jar:dependencies/org.slf4j.slf4j-api-1.7.25.jar:dependencies/com.sun.xml.bind.jaxb-core-2.3.0.jar:dependencies/com.sun.xml.bind.jaxb-impl-2.3.0.jar:dependencies/org.apache.camel.k.camel-k-adapter-camel-2-0.3.0.jar:dependencies/org.apache.camel.camel-groovy-2.23.1.jar:dependencies/org.codehaus.groovy.groovy-2.5.4.jar
> > > > > > org.apache.camel.k.jvm.Application
> > > > > >
> > > > > >   Is my expectation to find 0.3.1 in startup logs right ? How to
> > test the
> > > > > > runtime under vote then ?
> > > > > >
> > > > > > Alex
> > > > >
> >
>
-- 
--
Luca Burgazzoli

Reply via email to