Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译错误 #44

Closed
CaledoniaProject opened this issue Jun 13, 2024 · 7 comments
Closed

编译错误 #44

CaledoniaProject opened this issue Jun 13, 2024 · 7 comments

Comments

@CaledoniaProject
Copy link

编译错误,这几个包是缺失的吗

Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not find javax.media.jai:jai-core:1.1.3.
     Searched in the following locations:
       - file:/home/xxx/.m2/repository/javax/media/jai/jai-core/1.1.3/jai-core-1.1.3.pom
       - https://repo.jenkins-ci.org/releases/javax/media/jai/jai-core/1.1.3/jai-core-1.1.3.pom
       - https://repo.maven.apache.org/maven2/javax/media/jai/jai-core/1.1.3/jai-core-1.1.3.pom
     Required by:
         project :
   > Could not find com.oracle.weblogic:weblogic-server:1.0.
     Searched in the following locations:
       - file:/home/xxx/.m2/repository/com/oracle/weblogic/weblogic-server/1.0/weblogic-server-1.0.pom
       - https://repo.jenkins-ci.org/releases/com/oracle/weblogic/weblogic-server/1.0/weblogic-server-1.0.pom
       - https://repo.maven.apache.org/maven2/com/oracle/weblogic/weblogic-server/1.0/weblogic-server-1.0.pom
     Required by:
         project :
@qi4L
Copy link
Owner

qi4L commented Jun 19, 2024

在libs中有

@CaledoniaProject
Copy link
Author

我用 gradlew shadowJar 编译就提示这个,似乎是gradle不会用libs目录下的文件

@qi4L
Copy link
Owner

qi4L commented Jun 19, 2024

可以看之前的Issues

@CaledoniaProject
Copy link
Author

两个问题

  1. 你为什么不默认就改成
    implementation files('libs/jai-core-1.1.3.jar')
    implementation files('libs/weblogic-server.jar')

  2. java版本这个也得注释掉才行
    compileJava {
    options.compilerArgs << '-XDignore.symbol.file'
    options.fork = true
    // options.forkOptions.executable = 'C:\env\JAVA\corretto_jdk1.8.0_412\bin\javac.exe'
    }

@qi4L
Copy link
Owner

qi4L commented Jun 19, 2024

我的环境打包和编译没有任何问题,我只是在解答你的问题

@qi4L qi4L closed this as completed Jun 20, 2024
@CaledoniaProject
Copy link
Author

@qi4L 大佬,还是有问题的,

  1. com.sun.xml.security一个包不存在,我加了
    implementation group: 'com.sun.xml.security', name: 'xml-security-impl', version: '1.0'

  2. error: package com.sun.xml.internal.messaging.saaj.util does not exist ,我加了最新的也不行
    implementation group: 'com.sun.xml.messaging.saaj', name: 'saaj-impl', version: '3.0.4'

@qi4L
Copy link
Owner

qi4L commented Jun 21, 2024

JAVA8自带的吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants