美文网首页
Intellij Idea 使用

Intellij Idea 使用

作者: MicoCube | 来源:发表于2019-01-11 14:56 被阅读0次

    设置jdk版本及字节码版本

    • Preference
      • java compiler:
        • project bytecode version: 1.8
        • target bytecode version: 1.8
    • Project Structure:
      • SDKs: 1.8
      • Project:
        • Project SDK:1.8
        • Project language level:8
      • Modules:
        • Sources:
          • Language level:8

    在IDEA中创建Maven多模块项目

    • 创建个空文件夹作为项目根节点比如maven-mul
    • 在文件夹内创建pom.xml,记得修改groupIdartifactIdname
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.example.maven</groupId>
      <artifactId>maven-mul</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <name>maven-mul</name
      <url>http://maven.apache.org</url>
    </project>
    
    • 用IntelijIDea打开文件夹

    • 右键文件夹New-Module

      new - module
      不要勾选create from archetype
    • 直接next

      直接next
    • 填写文件夹名,即子模块存放文件夹名即artifactId

    • next,填写module名称,子模块名称

      子模块名称
    • finish

    相关文章

      网友评论

          本文标题:Intellij Idea 使用

          本文链接:https://www.haomeiwen.com/subject/ardxdqtx.html