产生从JSON模式的Java类,我无法生成地址模式的任何类。我遵循了源代码中提到的同一步骤,但仍未为地址架构生成Java类。我不明白我现在能做什么。 请给我一个正确的解释。无法使用我用下面的网址来了解JsonSchema2Pojo插件的使用<a href="https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started#the-maven-plugin" rel="nofollow">https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started#the-maven-plugin</a></p> <p>然而JsonSchema2Pojo - Maven的插件
0
A
回答
1
仔细检查您的pom.xml和您的项目设置。在wiki上的说明工作对我来说,这里是我所采取的步骤(OSX)
生成最初的项目和pom.xml的
mvn archetype:generate -DgroupId=com.stackoverflow.example -DartifactId=example -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
下载地址架构./src/主/资源/模式/ address.json
更新为JsonSchema2Pojo文档
生成网络上描述的pom.xml中莱
$ find . -type f ./pom.xml ./src/main/java/com/stackoverflow/example/App.java ./src/main/resources/schema/address.json ./src/test/java/com/stackoverflow/example/AppTest.java $ mvn package
生成的文件将根据./target/java-gen目录
$ find . -name Address.java ./target/java-gen/com/example/types/Address.java
相关问题
- 1. 产生的.docx使用<a href="http://www.aspose.com/" rel="nofollow">aspose</a></p> <p>然而aspos
- 2. RDFLib:使用<a href="http://www.rdflib.net/" rel="nofollow">RDFLib 3.0</a>
- 3. 如何使用<a href="http://cocoapods.org/" rel="nofollow">CocoaPods</a>使用的CocoaPods
- 4. 在此<a href="http://www.supashare.net/test.xml" rel="nofollow noreferrer">url</a></p> <p>解析使用PHP
- 5. 在strings.properties使用<a href>文件
- 6. 使用<a href= > tag
- 7. 的Rails插件的Recaptcha正确返回失败,还节省了我使用<a href="https://github.com/ambethia/recaptcha" rel="nofollow">recaptcha</a>和<a href="https://github.com/stefankroes/ancestry" rel="nofollow">ancestry</a>与评论模型模型
- 8. 如何上传文件,使用API使用<a href="http://developer.github.com/v3/git/" rel="nofollow">GitHub v3</a>
- 9. 当我们不使用它,我使用<a href="https://github.com/auth0/node-jsonwebtoken" rel="nofollow">JsonWebToken</a>更多
- 10. 在<a href="http://ryanmalin.co.uk/frames/" rel="nofollow">http://ryanmalin.co.uk/frames/</a></p> <p>使用Javascript
- 11. 使用准备语句插入数据不会返回我使用<a href="https://github.com/patriksimek/node-mssql" rel="nofollow">node-sql</a>插入的记录
- 12. 解析错误使用使用<a href="http://call.jsonlib.com/jsonlib-src.js" rel="nofollow">jsonlib</a>这样jsonlib
- 13. 从<a href="http://www.icsharpcode.net" rel="nofollow noreferrer">www.icsharpcode.net</a></p> <p>解压文件错误
- 14. 我需要的步骤如何使用DITA OT DITA插件名为com.elovirta.ooxml使用被称为使用<a href="https://github.com/jelovirt/com.elovirta.ooxml" rel="nofollow noreferrer">this</a><strong>com.elovirta.ooxml</strong>插件名称转换为Word中的氧
- 15. 使用JQuery处理错误当我使用JQuery <a href="http://api.jquery.com/jquery.when/" rel="nofollow">when</a>时
- 16. 如何Heroku的应用程序与我有上<a href="http://heroku.com" rel="nofollow">Heroku</a>,当然应用上<a href="http://openshift.com" rel="nofollow">Openshift</a></p> <p>现在openshift应用数据库
- 17. 无法从<a href="https://github.com/angular/zone.js/" rel="nofollow noreferrer">here</a>了解zone.js例如
- 18. 我使用的是<a href="http://www.itk.org" rel="nofollow noreferrer">ITK library</a>链接Windows的API
- 19. 镆铘革命确实我使用镆铘雷沃与插件<a href="http://modx.com/extras/package/login" rel="nofollow noreferrer">Login</a>和<a href="http://modx.com/extras/package/babel" rel="nofollow noreferrer">Babel</a>没有上下文切换
- 20. Xcode的Maven插件:从<a href="http://sap-production.github.io/xcode-maven-plugin/site" rel="nofollow">http://sap-production.github.io/xcode-maven-plugin/site</a>增加额外的头
- 21. 无法使用我从<a href="https://developer.android.com/studio/index.html" rel="nofollow noreferrer">devloper.android.com</a>下载了基本的Android命令行工具命令行
- 22. AspectJ Maven插件<weaveDependency>
- 23. 使用--- innerHTML =“... <a href='http://...'>HttpLink</a> ...”
- 24. 什么引用了Maven插件执行的<id>值?
- 25. 如使用<a href="https://github.com/arnaudroger/SimpleFlatMapper" rel="nofollow noreferrer">simpleflatmapper</a>字符串数组使用simpleflatmapper
- 26. 南管理我添加了一个新的应用程序(特别是<a href="http://django-tastypie.readthedocs.org/en/latest/index.html" rel="nofollow">tastypie</a>),并试图<code>syncdb</code>然而<a href="http://south.aeracode.org/" rel="nofollow">South</a>不会让我一个新的应用程序,而不是执行syncdb
- 27. 在詹金斯</p> <p><a href="https://i.stack.imgur.com/tYOEK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tYOEK.jpg" alt="enter image description here"></a></p> <p>使用之后可编辑的电子邮件通知插件电子邮件
- 28. (无用)资源___类与jsonschema2pojo
- 29. 使用正则表达式解析<a href src="">Links</a>出NSString
- 30. 如何在Perl中使用“pack/unpack”?当我解析使用它的<a href="http://en.wikipedia.org/wiki/Ruby_%28programming_language%29" rel="nofollow">Ruby</a>语言如下
我知道这是一个有点晚,但我可以帮助你得到工作。你能否包括你所尝试的细节? –