squakez commented on PR #3755:
URL: https://github.com/apache/camel-k/pull/3755#issuecomment-1285385766

   > When building camel-k and referencing `RUNTIME_VERSION=1.15.1-SNAPSHOT` 
the `mvn -q dependency:copy` command downloads the file as 
`camel-k-catalog-1.15.1-20221020.064800-11-catalog.yaml` and the 
`./script/get_catalog.sh` script fails with `mv: cannot stat 
'./script/..//resources/camel-k-catalog-1.15.1-SNAPSHOT-catalog.yaml': No such 
file or directory` When the user provided a snapshot repo, it fails because the 
remote file doesn't contain the `SNAPSHOT` suffix in the file name, but 
contains the timestamp as 
`camel-k-catalog-1.15.1-20221020.064800-11-catalog.yaml`
   
   Just tested locally and it works as expected:
   ```
   $ mvn -q dependency:copy 
-Dartifact="org.apache.camel.k:camel-k-catalog:1.12.1-SNAPSHOT:yaml:catalog" 
-DoutputDirectory=.
   $ cat camel-k-catalog-1.12.1-SNAPSHOT-catalog.yaml 
   # ---------------------------------------------------------------------------
   # Licensed to the Apache Software Foundation (ASF) under one or more
   # contributor license agreements.  See the NOTICE file distributed with
   ...
   apiVersion: camel.apache.org/v1
   kind: CamelCatalog
   metadata:
     name: camel-catalog-1.12.1-snapshot
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to