一. 准备工作

  1. 点击此下载 IntelliJ IDEA 开发工具

 

二. 注册

  1. 修改  C:\Windows\System32\drivers\etc\hosts ,在末尾添加  0.0.0.0 account.jetbrains.com

  2. 点击此获得注册码,进行注册

 

三. 整合Maven

  1. Maven配置文件 settings.xml

<localRepository>D:/Documents/.m2/repository</localRepository>

<server>
  <id>releases</id>
  <username>admin</username>
  <password>admin123</password>
</server>
<server>
  <id>snapshots</id>
  <username>admin</username>
  <password>admin123</password>
</server>
<server>
  <id>thirdparty</id>
  <username>admin</username>
  <password>admin123</password>
</server>

<profile>
  <id>nexus</id>

  <repositories>
    <repository>
      <id>release</id>
      <name>Nexus Rlease Repository</name>
      <url>http://localhost:8081/repository/maven-releases/</url>
    </repository>

    <repository>
      <id>snapshots</id>
      <name>Nexus Snapshots Repository</name>
      <url>http://localhost:8081/repository/maven-snapshots/</url>
    </repository>

    <repository>
      <id>thirdparty</id>
      <name>Nexus 3rd Party Repository</name>
      <url>http://localhost:8081/repository/maven-thirdparty/</url>
    </repository>

    <repository>
      <id>central</id>
      <name>Nexus Central Repository</name>
      <url>http://localhost:8081/repository/maven-central/</url>
    </repository>

  </repositories>
</profile>
<!-- 可对maven中的项目进行代码质量管理
<profile>
  <id>sonar</id>

  <activation>
    <activeByDefault>true</activeByDefault>
  </activation>

  <properties>
    <sonar.jdbc.url>jdbc:oracle:thin:@127.0.0.1:1521/orcl</sonar.jdbc.url>
    <sonar.jdbc.driver>oracle.jdbc.driver.OracleDriver</sonar.jdbc.driver>
    <sonar.jdbc.username>admin</sonar.jdbc.username>
    <sonar.jdbc.password>admin</sonar.jdbc.password>
    <sonar.host.url>http://127.0.0.1:9000/</sonar.host.url>
  </properties>

</profile>
-->

<activeProfiles>
  <activeProfile>nexus</activeProfile>
</activeProfiles>
settings.xml

相关文章:

  • 2021-07-27
  • 2021-09-05
  • 2022-12-23
  • 2021-09-29
  • 2021-09-25
  • 2021-11-05
猜你喜欢
  • 2021-12-10
  • 2021-08-25
  • 2021-10-04
  • 2021-06-08
  • 2021-12-28
相关资源
相似解决方案