Yeoman JHipster(Angular + Spring + Maven + MySQL)堆栈错误

时间:2015-04-06 06:47:30

标签: maven yeoman jhipster

我使用angular + spring + maven + mysql堆栈创建了一个 JHipster 应用程序。在尝试构建时会生成代码,从而产生无数错误。     首先使用mvn命令行执行 - mvn spring-boot:run     如https://jhipster.github.io/creating_an_app.html中所述。它没有用,所以在eclipse中导入maven项目并尝试构建。它给出了数百个错误。我确信可能会有一些错过的配置。请建议。

Errors with running maven at command prompt:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22:41 min
[INFO] Finished at: 2015-04-06T11:46:14+05:30
[INFO] Final Memory: 21M/136M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project om: Could not resolve dependencies for
 project om:om:war:0.0.1-SNAPSHOT: Could not transfer artifact net.sf.saxon:Saxo
n-HE:jar:9.6.0-4 from/to central (https://repo.maven.apache.org/maven2): GET req
uest of: net/sf/saxon/Saxon-HE/9.6.0-4/Saxon-HE-9.6.0-4.jar from central failed:
 SSL peer shut down incorrectly -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException

Errors when building with eclipse:

Description Resource    Path    Location    Type
The declaration for the entity "ContentType" must end with '>'. strict.dtd  /test/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-svgo/node_modules/svgo/node_modules/sax/examples  line 81 DTD Problem
The declaration for the entity "ContentType" must end with '>'. strict.dtd  /test/node_modules/grunt-svgmin/node_modules/svgo/node_modules/sax/examples line 81 DTD Problem
The declaration for the entity "ContentType" must end with '>'. strict.dtd  /test/node_modules/xml2js/node_modules/sax/examples line 81 DTD Problem
Start tag (<form>) not closed properly, expected '>'.   _entities.html  /test/node_modules/generator-jhipster/entity/templates/src/main/webapp/app  line 12 HTML Problem
Start tag (<form>) not closed properly, expected '>'.   _entities.html  /test/node_modules/generator-jhipster/entity/templates/src/main/webapp/app  line 12 HTML Problem
Start tag (<input>) not closed properly, expected '>'.  _entities.html  /test/node_modules/generator-jhipster/entity/templates/src/main/webapp/app  line 40 HTML Problem
Start tag (<input>) not closed properly, expected '>'.  _entities.html  /test/node_modules/generator-jhipster/entity/templates/src/main/webapp/app  line 40 HTML Problem
Start tag (<tbody>) not closed properly, expected '>'.  _entities.html  /test/node_modules/generator-jhipster/entity/templates/src/main/webapp/app  line 153    HTML Problem
Start tag (<tbody>) not closed properly, expected '>'.  _entities.html  /test/node_modules/generator-jhipster/entity/templates/src/main/webapp/app  line 153    HTML Problem
Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents. pkginfo.html    /test/node_modules/karma/node_modules/http-proxy/node_modules/pkginfo/docs  line 1  HTML Problem
Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents. pkginfo.html    /test/node_modules/karma/node_modules/http-

1 个答案:

答案 0 :(得分:1)

您可以在日志中看到问题的解释:

    Could not transfer artifact net.sf.saxon:Saxon-HE:jar:9.6.0-4 
from/to central (https://repo.maven.apache.org/maven2): 
GET request of: net/sf/saxon/Saxon-HE/9.6.0-4/Saxon-HE-9.6.0-4.jar 
from central failed: SSL peer shut down incorrectly

它表示您在连接到maven存储库时遇到问题,此问题可能是由于网络问题,或者也可能是某些maven miss配置。