Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing problems mentioned in PR review #30

Closed

Conversation

lhein
Copy link

@lhein lhein commented Jun 18, 2024

No description provided.

@@ -7,11 +7,11 @@ This project is a simple tool to generate a Camel Catalog from a set of Camel co
Install the project dependencies:

```bash
mvn install
mvnw install
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is ./mvnw (at least on Linux)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, otherwise we wouldn't be using the maven wrapper.

@@ -126,7 +124,10 @@ public void resolve(MavenDownloader mavenDownloader, String gav, boolean useSnap
((KaotoOpenURLClassLoader) getClassLoader()).addURL(ma.getFile().toURI().toURL());
}
} catch (Throwable e) {
e.printStackTrace();
if (getLog()) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what' the purpose of getLog()?

Copy link
Author

@lhein lhein Jun 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't ask me :D I just aligned to the rest of the codebase. Will leave that to Ricardo.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is to use the same log property in both classes (super and current one)

This commit adds a Camel Catalog generator CLI to build the following
structure:

```
dist/
├─ camel-main/
│  ├─ 4.4.0/
│  ├─ 4.6.0/
├─ camel-quarkus/
│  ├─ 3.8.0/
├─ camel-springboot/
│  ├─ 4.4.0/
│  ├─ 4.6.0/
├─ index.json
```

* How to run?
```bash
mvn package; java -jar ./target/catalog-generator-0.0.1-SNAPSHOT.jar -o ./dist -k 4.6.0 -m 4.6.0 -m 4.4.0 -q 3.8.0 -s 4.6.0
```

This will generate:
* Camel Main 4.4.0
* Camel Main 4.6.0
* Camel Quarkus 3.8.0
* Camel SpringBoot 4.6.0

* Usage
```
usage: catalog-generator
 -k,--kamelets <kameletsVersion>   Kamelets catalog version
 -m,--main <version>               Camel Main version
 -n,--name <catalog library name>  Name of the Catalog Library
 -o,--output <outputDir>           Output directory. It will be cleaned
                                   before generating the catalogs
 -q,--quarkus <version>            Camel Extensions for Quarkus version
 -s,--springboot <version>         Camel SpringBoot version
 -v,--verbose                      Be more verbose
```

relates: KaotoIO#1109

Signed-off-by: Lars Heinemann <[email protected]>
@lhein lhein force-pushed the feat/generate-catalogs branch from dbf3024 to 60f1eae Compare June 18, 2024 13:31
@lhein
Copy link
Author

lhein commented Jun 18, 2024

no longer needed

@lhein lhein closed this Jun 18, 2024
@lhein lhein deleted the feat/generate-catalogs branch June 19, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants