总体结构,license是总项目,然后rest和issue是子模块,其中rest是服务层,里面包含了和前端交互的WebService。issue是属于功能层,实现功能,然后供rest调用接口,
其中license的pom文件如下(这两个部分是核心部分)
<parent>
<groupId>org.fusesource</groupId>
<artifactId>fuse-project</artifactId>
<version>
1.0
.
0
.redhat-
379
</version>
</parent>
<groupId>com.gzydt</groupId>
<artifactId>fuse-parent</artifactId>
<version>
6.1
.
0
.redhat-
379
</version>
<packaging>pom</packaging>
<name>Gzydt
Fuse Parent</name>
<description>Gzydt
Fuse Parent</description>
<url>http:
//www.gzydt.com</url>
<modules>
<module>rest</module>
<module>issue</module>
</modules>
其中rest的pom文件如下(parent指明父系统,dependency指明依赖对象)
<parent>
<groupId>com.gzydt</groupId>
<artifactId>fuse-parent</artifactId>
<version>
6.1
.
0
.redhat-
379
</version>
</parent>
<groupId>com.gzydt.license</groupId>
<artifactId>rest</artifactId>
<version>
1.0
</version>
<packaging>bundle</packaging>
<name>Gzydt
:: Examples :: RESTful WebService</name>
<description>RESTful
WebService Example using JAX-RS with JBoss Fuse</description>
<dependencies>
<dependency>
<groupId>com.gzydt.license</groupId>
<artifactId>issue</artifactId>
<version>
1.0
</version>
</dependency>
</dependencies>
<modelVersion>
4.0
.
0
</modelVersion>
<parent>
<groupId>com.gzydt</groupId>
<artifactId>fuse-parent</artifactId>
<version>
6.1
.
0
.redhat-
379
</version>
</parent>
<groupId>com.gzydt.license</groupId>
<artifactId>issue</artifactId>
<version>
1.0
</version>
<packaging>bundle</packaging>
<name>Gzydt
:: License :: Issue Service</name>
<description>License
Issue Service</description>
features:install cis ,如果是以前就导入到项目,直接先卸载,features:uninstall cis然后再安装 features:install cis就可以了
当然,如果你在cmd控制台中不能安装到maven库中的时候报错,并且是报测试方法的错误的时候你就在cmd控制台中跳过测试,在进行打包就可以了,其中跳过测试的语句是::mvn clean compile install -Dmaven.test.skip=true