NutzCN Logo
问答 Oracle 包build.py包含不进去是什么情况?
发布于 2272天前 作者 shuxinyun 1222 次浏览 复制 上一个帖子 下一个帖子
标签:

pom配置:

        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>11.2.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/libs/ojdbc6.jar</systemPath>
        </dependency>

直接编译运行没有问题,但build.py后,包里面灭有ojdbc6.jar,都install了!

7 回复

install到本地,然后去掉scope和systemPath吧

来自炫酷的 NutzCN

按你说的删除后,编译如下

[INFO] ------------------------------------------------------------------------
[INFO] Building wk-web 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:9.4.2.v20170220:run (default-cli) > test-compile @ wk-web >>>
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/com/oracle/ojdbc6/11.2.0/ojdbc6-11.2.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.144 s
[INFO] Finished at: 2017-12-28T16:32:29+08:00
[INFO] Final Memory: 14M/146M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project wk-web: Could not resolve dependencies for project cn.wizzer.app:wk-web:war:4.0.1-SNAPSHOT: Failed to collect dependencies at com.oracle:ojdbc6:jar:11.2.0: Failed to read artifact descriptor for com.oracle:ojdbc6:jar:11.2.0: Could not transfer artifact com.oracle:ojdbc6:pom:11.2.0 from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): Failed to transfer file: https://jfrog.nutz.cn/artifactory/snapshots/com/oracle/ojdbc6/11.2.0/ojdbc6-11.2.0.pom. Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Disconnected from the target VM, address: '127.0.0.1:5617', transport: 'socket'

本地install没?

把这个jar按pom.xml的group安装到本地maven仓库

OK!我试试!

@wendal 谢谢,按你说的做了就解决了

添加回复
请先登陆
回到顶部