2017-12-17 57 views
0

私はjhipsterを使用しようとしていますが、これまでのところ私はjava8でどのように動作するか見ていましたが、確かにJava 8(https://github.com/jhipster/jhipster-sample-app-java7)です。java7を使用してJhipsterにアプリケーションを作成しますか?

java7で実行するアプリを生成する方法があるのだろうかと思っていましたか?私はjhipsterから廃止予定ですが、jhipster v 1.7.0を実行できるかのように思えます。

は、これまでのところ、これはあなたが2歳のプロジェクトのサンプルを参照している

C:\Users\user>jhipster -help 

    Usage: jhipster [command] [options] 


    Commands: 

    app      Create a new JHipster application based on the selected options 
    aws      Deploy the current application to Amazon Web Services 
    ci-cd      Create pipeline scripts for popular Continuous Integration/Continuous Deployment tools 
    client     Create a new JHipster client-side application based on the selected options 
    cloudfoundry    Generate a `deploy/cloudfoundry` folder with a specific manifest.yml to deploy to Cloud Foundry 
    docker-compose   Create all required Docker deployment configuration for the selected applications 
    entity [name]    Create a new JHipster entity: JPA entity, Spring server-side components and Angular client-side components 
    export-jdl [jdlFile]  Create a JDL file from the existing entities 
    heroku     Deploy the current application to Heroku 
    import-jdl [jdlFiles...] Create entities from the JDL file passed in argument 
    info      Display information about your current project and system 
    kubernetes    Deploy the current application to Kubernetes 
    languages [languages...] Select languages from a list of available languages. The i18n files will be copied to the /webapp/i18n folder 
    openshift     Deploy the current application to OpenShift 
    rancher-compose   Deploy the current application to Rancher 
    server     Create a new JHipster server-side application 
    service [name]   Create a new Spring service bean 
    upgrade     Upgrade the JHipster version, and upgrade the generated application 
    completion    Print command completion script 

    Options: 

    -h, --help  output usage information 
    -d, --debug enable debugger 
    -V, --version output the version number 

答えて

2

jhipster -helpを示したものです。現在のバージョンのJHipster 4.xではJDK 8が必要です。JDK 7と互換性のあるプロジェクトを生成する方法はありません。

npm install -g [email protected] 

は、このバージョンのマニュアルの指示に従ってください:http://www.jhipster.tech/documentation-archive/v2.22.0/

唯一の解決策は、このJDK 7サンプルプロジェクトを生成するために使用される一つである2.22.0のようJHipsterの時代遅れのバージョンをインストールすることです

関連する問題