You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.9 KiB
100 lines
3.9 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
<parent> |
|
<artifactId>so-im</artifactId> |
|
<groupId>net.sopod</groupId> |
|
<version>1.0.0</version> |
|
</parent> |
|
<modelVersion>4.0.0</modelVersion> |
|
|
|
<artifactId>im-service-api</artifactId> |
|
<packaging>pom</packaging> |
|
|
|
<modules> |
|
<module>im-entry-api</module> |
|
<module>im-entry-protocol</module> |
|
<module>im-logic-common</module> |
|
<module>im-segment-id-api</module> |
|
<module>im-router-api</module> |
|
<module>im-logic-user-api</module> |
|
<module>im-logic-friend-api</module> |
|
</modules> |
|
|
|
<dependencies> |
|
<!-- <dependency> |
|
<groupId>org.apache.dubbo</groupId> |
|
<artifactId>dubbo-serialization-protobuf</artifactId> |
|
<version>${dubbo.protobuf.verion}</version> |
|
<exclusions> |
|
<exclusion> |
|
<groupId>org.apache.dubbo</groupId> |
|
<artifactId>dubbo-common</artifactId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
<dependency> |
|
<groupId>com.google.protobuf</groupId> |
|
<artifactId>protobuf-java</artifactId> |
|
<version>${protoc.version}</version> |
|
</dependency>--> |
|
<dependency> |
|
<groupId>javax.annotation</groupId> |
|
<artifactId>javax.annotation-api</artifactId> |
|
<version>1.3.2</version> |
|
</dependency> |
|
</dependencies> |
|
|
|
<!-- <build> |
|
<extensions> |
|
<extension> |
|
<groupId>kr.motd.maven</groupId> |
|
<artifactId>os-maven-plugin</artifactId><!- -引入操作系统os设置的属性插件,否则${os.detected.classifier} 操作系统版本会找不到 - -> |
|
<version>1.6.1</version> |
|
</extension> |
|
</extensions> |
|
<plugins> |
|
<!- -添加编译proto文件的编译程序和对应的编译插件- -> |
|
<plugin> |
|
<groupId>org.xolstice.maven.plugins</groupId> |
|
<artifactId>protobuf-maven-plugin</artifactId> |
|
<version>0.6.1</version> |
|
<configuration> |
|
<protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact> |
|
<protoSourceRoot>${project.basedir}/src/main/resources</protoSourceRoot> |
|
<outputDirectory>${project.basedir}/src/main/java</outputDirectory> |
|
<clearOutputDirectory>false</clearOutputDirectory> |
|
<protocPlugins> |
|
<protocPlugin> |
|
<id>dubbo</id> |
|
<groupId>org.apache.dubbo</groupId> |
|
<artifactId>dubbo-compiler</artifactId> |
|
<version>${dubbo.compiler.version}</version> |
|
<mainClass>org.apache.dubbo.gen.dubbo.Dubbo3Generator</mainClass> |
|
</protocPlugin> |
|
</protocPlugins> |
|
</configuration> |
|
<executions> |
|
<execution> |
|
<goals> |
|
<goal>compile</goal> |
|
<goal>test-compile</goal> |
|
</goals> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-jar-plugin</artifactId> |
|
<configuration> |
|
<excludes> |
|
<exclude>**/*.proto</exclude> |
|
</excludes> |
|
</configuration> |
|
</plugin> |
|
</plugins> |
|
</build>--> |
|
|
|
|
|
</project> |