Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 1.13 KB

1.安装使用.md

File metadata and controls

43 lines (39 loc) · 1.13 KB

使用hsweb

项目java8开发,使用maven进行管理.

1.配置maven pom.xml

引入私服

 <!--统一依赖管理-->
 <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.hsweb</groupId>
                <artifactId>hsweb-framework</artifactId>
                <version>${hsweb.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
  <!--引入私服-->
  <repositories>
        <repository>
            <id>hsweb-nexus</id>
            <name>Nexus Release Repository</name>
            <url>http://nexus.hsweb.me/content/groups/public/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

引入依赖

<!--设置了dependencyManagement,可以不指定版本号-->
<dependency>
        <groupId>org.hsweb</groupId>
        <artifactId>hsweb-web-start</artifactId>
</dependency>

完整配置,可参照 demo

查看api