在Gradle项目中解析YAML文件,无需从存储库下载。

huangapple 未分类评论51阅读模式
标题翻译

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

huangapple
  • 本文由 发表于 2020年3月17日 00:33:28
  • 转载请务必保留本文链接:https://java.coder-hub.com/60709792.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定