标题翻译
Parsing yaml file in Gradle project without downloading from the repository
问题
我有一个Java的gradle项目。我需要解析一个位于nexus代码库中的yaml文件(用于创建Java类)。我有一个从代码库下载yaml文件的选项。此外,我可以在我的项目中进行解析。然而,我不想在我的项目中保留这些yaml文件。是否有一种直接从代码库解析yaml文件(即实时解析)并在项目中创建Java类的方法?
最后,是否有人可以提出适当的设计,如果我的解决方案有问题的话?
英文翻译
I have a Java gradle project. I need to parse a yaml file (which creates Java classes) that is in a nexus repository. I have an option of downloading yaml from the repository. Futhermore, I could do a parsing in my project. However, I do not want the yaml files in my project. Is there a way to parse yaml file directly from the repository (I mean on the fly) and create java classes in the project?
Finally, can anyone suggest any proper design, if there is something wrong with my solution?
答案1
得分: 0
你可以在你的仓库中添加 url。
英文翻译
You could add the url on you repository
专注分享java语言的经验与见解,让所有开发者获益!

评论