项目java8开发,使用maven进行管理.
引入私服
<!--统一依赖管理-->
<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