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

Maven Project #268

Closed
waytoharish opened this issue Jan 16, 2023 · 7 comments · Fixed by #328
Closed

Maven Project #268

waytoharish opened this issue Jan 16, 2023 · 7 comments · Fixed by #328
Labels
bug Something isn't working released stale

Comments

@waytoharish
Copy link

I am not able to find any template to generate the maven project instead of Gradle.
Is there any was to generate the Maven project ??

@waytoharish waytoharish added the bug Something isn't working label Jan 16, 2023
@github-actions
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@Tenischev
Copy link
Member

Hello @waytoharish
Currently, unfortunately, no, only gradle build.
You are free to create Pull request with such changes :)
Or if you find it possible suggest translation of current build.gradle to pom.xml and I'll do the rest

@waytoharish
Copy link
Author

Hello @waytoharish Currently, unfortunately, no, only gradle build. You are free to create Pull request with such changes :) Or if you find it possible suggest translation of current build.gradle to pom.xml and I'll do the rest

Thanks

@waytoharish
Copy link
Author

waytoharish commented Jan 20, 2023

What we can do is is create a pom.xml and pick up based on the user input we can use build.gradle or pom.xml @Tenischev
If want to convert the gradel to maven we just need-

To convert Gradle to Maven, first, Maven plugin need to be added in the build.gradle file-

apply plugin: 'maven'

and we need to run 'gradle install'

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@Tenischev
Copy link
Member

Hello @waytoharish
Now you could generate template with maven build, to do so, provide parameter maven=true in generator, e.g.
asyncapi generate fromTemplate myAsynApi.yml @asyncapi/java-spring-template -o output-dir -p maven=true

@asyncapi-bot
Copy link
Contributor

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants