Code Monkey home page Code Monkey logo

etherdash's Introduction

SSM构建一个游戏后端笔记

Maven相关

  1. 在安装好Maven后,IDEA设置(这里设置了阿里云镜像)相关配置之后发现如下问题:
    1. 总有些POM文件无法下载,提示找不到对应的依赖
    2. 发现总是Maven镜像配置后仍然从 http://repo.maven.apache.org/maven2 下载
    3. 这样不仅需要在conf/setting进行镜像配置如下:
     <mirrors>
          <mirror>
               <id>alimaven</id>
               <mirrorOf>central</mirrorOf>
               <name>aliyun maven</name>
               <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
          </mirror>
     </mirrors>
    1. 还需要在IDEA的POM文件中进行配置,如下:
    <repositories>
        <repository>
            <id>nexus-aliyun</id>
            <name>nexus-aliyun</name>
            <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
    1. 这样才能保证Maven从阿里云镜像下载依赖,(maven 3.8以后都改成了https,所以需要修改为https)
  2. Maven自带的Tomcat
    1. maven自带的tomcat版本默认是 6的版本,目前升到了7,升到8可以体验一下tomcat热部署的功能(有机会再试试)
    2. 在pom.xml中添加如下配置:
     <plugin>
          <groupId>org.apache.tomcat.maven</groupId>
          <artifactId>tomcat7-maven-plugin</artifactId>
          <version>2.2</version>
          <configuration>
               <port>8080</port>
               <path>/</path>
          </configuration>
     </plugin>

etherdash's People

Contributors

angryxzc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.