浏览代码

解决jar包冲突(ipu-sql-mgmt的包修改了代码,先写成调用本地的jar)

liutong3 5 年之前
父节点
当前提交
ee6647e5a8
共有 1 个文件被更改,包括 28 次插入10 次删除
  1. 28 10
      ipu-db-example/pom.xml

+ 28 - 10
ipu-db-example/pom.xml

@ -32,22 +32,30 @@
32 32
33 33
    <dependencies>
34 34
        <!-- ipu-database -->
35
        <dependency>
36
            <groupId>com.ai.ipu</groupId>
37
            <artifactId>ipu-database</artifactId>
38
            <version>${ipu}</version>
39
        </dependency>
35
        <!--<dependency>-->
36
            <!--<groupId>com.ai.ipu</groupId>-->
37
            <!--<artifactId>ipu-database</artifactId>-->
38
            <!--<version>${ipu}</version>-->
39
        <!--</dependency>-->
40 40
        <!-- ipu-sql-parse(内部依赖了ipu-database,所有上面的ipu-database依赖实际可去掉) -->
41 41
        <dependency>
42 42
            <groupId>com.ai.ipu</groupId>
43 43
            <artifactId>ipu-sql-parse</artifactId>
44 44
            <version>${ipu}</version>
45
            <exclusions>
46
                <exclusion>
47
                    <groupId>com.ai.ipu</groupId>
48
                    <artifactId>ipu-database</artifactId>
49
                </exclusion>
50
            </exclusions>
45 51
        </dependency>
46 52
        <!-- ipu-sql-mgmt(内部依赖了ipu-database,所有上面的ipu-database依赖实际可去掉) -->
47 53
        <dependency>
48 54
            <groupId>com.ai.ipu</groupId>
49 55
            <artifactId>ipu-sql-mgmt</artifactId>
50 56
            <version>3.2-SNAPSHOT</version>
57
            <scope>system</scope>
58
            <systemPath>${project.basedir}/libs/ipu-sql-mgmt-3.2-SNAPSHOT.jar</systemPath>
51 59
        </dependency>
52 60
        <dependency>
53 61
            <groupId>junit</groupId>
@ -56,11 +64,21 @@
56 64
            <scope>compile</scope>
57 65
        </dependency>
58 66
        <dependency>
59
			<groupId>junit</groupId>
60
			<artifactId>junit</artifactId>
61
			<version>${junit}</version>
62
			<scope>test</scope>
63
		</dependency>
67
            <groupId>log4j</groupId>
68
            <artifactId>log4j</artifactId>
69
            <version>1.2.17</version>
70
        </dependency>
71
        <dependency>
72
            <groupId>org.slf4j</groupId>
73
            <artifactId>slf4j-log4j12</artifactId>
74
            <version>1.7.25</version>
75
            <scope>test</scope>
76
        </dependency>
77
        <dependency>
78
            <groupId>org.slf4j</groupId>
79
            <artifactId>slf4j-api</artifactId>
80
            <version>1.7.25</version>
81
        </dependency>
64 82
    </dependencies>
65 83
66 84
</project>