Netuix和p13n依赖项缺失。

huangapple go评论56阅读模式
英文:

Netuix and p13n dependencies missing

问题

以下是翻译好的部分:

我需要重新创建一个Maven项目的本地环境。除了其他依赖项外,它会从WebLogic的本地安装中手动提取一些Oracle库,使用truezip-maven-pluginmaven-install-plugin,然后将它们放入.m2中。

例如,在我的pom.xml文件中:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>truezip-maven-plugin</artifactId>
    <version>1.2</version>
    <configuration>
    </configuration>
    <executions>
        <execution>
            <id>copy-weblogic-libs</id>
            <configuration>
                <files>
                    <file>
                        <source>${WL_HOME}/wlserver/server/lib/consoleapp/APP-INF/lib/p13n_system.jar</source>
                        <outputDirectory>${project.build.directory}/temp/com.bea.p13n/p13n-app-lib-base</outputDirectory>
                    </file>
                </files>
            </configuration>
            <goals>
                <goal>copy</goal>
            </goals>
            <phase>install</phase>
        </execution>
    </executions>
</plugin>

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-install-plugin</artifactId>
    <version>2.5.2</version>
    <configuration>
        <packaging>jar</packaging>
        <generatePom>true</generatePom>
    </configuration>
    <executions>
        <execution>
            <id>install-com-bea-p13n-app-lib-base-p13n-system</id>
            <configuration>
                <file>${project.build.directory}/temp/com.bea.p13n/p13n-app-lib-base/p13n_system.jar</file>
                <groupId>com.bea.p13n.p13n-app-lib-base</groupId>
                <artifactId>p13n_system</artifactId>
                <version>10.3.6</version>
            </configuration>
            <goals>
                <goal>install-file</goal>
            </goals>
            <phase>install</phase>
        </execution>
    </executions>
</plugin>

这部分代码是可以工作的。

但是项目需要其他的.jars,似乎不存在。具体来说,p13n_app.jarp13n_ejb.jarnetuix.jar(都在com.bea域下)。该项目已设置为通过settings.xml连接到maven.oracle.com。我尝试搜索这些.jars的手动下载,但没有成功。

这是我找到的所有信息:

这是死胡同,因为既没有netuix也没有p13n包(尽管在mvnrepository.com中有结果)。

同样是死胡同,原因相同。

https://maven.oracle.com/com/bea/p13n/p13n-app-lib-base/p13n_app/10.3.6/p13n_app-10.3.6.pom

这是Maven尝试连接以下载依赖项的链接。它显示未找到

http://nexus.emergya.es/nexus/index.html#nexus-search;quick~com.bea.p13n

它实际上有一些结果,但单击“下载”按钮会导致此页面

  • 安装不同版本的WebLogic包。我安装了开发版本,所以我以为可能是缺少某些内容,但即使在安装标准WebLogic之后,它们仍然缺失。

  • 浏览现有的WebLogic安装,如其他项目的测试环境。

我应该继续搜索这些库,还是它们已经不再使用了?我能否从已经构建的war中提取这些库?它们似乎已经被删除了。如果是这样,我应该搜索更新的库(可能与已编写的代码不兼容)。非常感谢任何帮助!

英文:

I have to recreate the local environment of a Maven project. Along other dependencies, it manually pulls some Oracle libraries from a local installation of WebLogic, using truezip-maven-plugin and maven-install-plugin, to put them into .m2.

For example, in my pom.xml:

&lt;plugin&gt;
    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
    &lt;artifactId&gt;truezip-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.2&lt;/version&gt;
    &lt;configuration&gt;
    &lt;/configuration&gt;
    &lt;executions&gt;
        &lt;execution&gt;
            &lt;id&gt;copy-weblogic-libs&lt;/id&gt;
            &lt;configuration&gt;
                &lt;files&gt;
                    &lt;file&gt;
                        &lt;source&gt;${WL_HOME}/wlserver/server/lib/consoleapp/APP-INF/lib/p13n_system.jar&lt;/source&gt;
                        &lt;outputDirectory&gt;${project.build.directory}/temp/com.bea.p13n/p13n-app-lib-base&lt;/outputDirectory&gt;
                    &lt;/file&gt;
                &lt;/files&gt;
            &lt;/configuration&gt;
            &lt;goals&gt;
                &lt;goal&gt;copy&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;phase&gt;install&lt;/phase&gt;
        &lt;/execution&gt;
    &lt;/executions&gt;
&lt;/plugin&gt;

&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.5.2&lt;/version&gt;
    &lt;configuration&gt;
        &lt;packaging&gt;jar&lt;/packaging&gt;
        &lt;generatePom&gt;true&lt;/generatePom&gt;
    &lt;/configuration&gt;
    &lt;executions&gt;
        &lt;execution&gt;
            &lt;id&gt;install-com-bea-p13n-app-lib-base-p13n-system&lt;/id&gt;
            &lt;configuration&gt;
                &lt;file&gt;
                    ${project.build.directory}/temp/com.bea.p13n/p13n-app-lib-base/p13n_system.jar
                &lt;/file&gt;
                &lt;groupId&gt;com.bea.p13n.p13n-app-lib-base&lt;/groupId&gt;
                &lt;artifactId&gt;p13n_system&lt;/artifactId&gt;
                &lt;version&gt;10.3.6&lt;/version&gt;
            &lt;/configuration&gt;
            &lt;goals&gt;
                &lt;goal&gt;install-file&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;phase&gt;install&lt;/phase&gt;            
        &lt;/execution&gt;
    &lt;/executions&gt;
&lt;/plugin&gt;

This works fine.

<br>

But the project requires other .jars, that don't seem to exist. Specifically, p13n_app.jar, p13n_ejb.jar and netuix.jar (all under com.bea domain). The project is setup to connect to maven.oracle.com through settings.xml. I tried searching for a manual download of these .jars but without success. <br> This is all I could find:

Dead end, since neither netuix nor p13n packages exist (even though there are results in mvnrepository.com).

<br>

Again, dead end for the same reason.

https://maven.oracle.com/com/bea/p13n/p13n-app-lib-base/p13n_app/10.3.6/p13n_app-10.3.6.pom

This is the link Maven tries to connect to download the dependency. It says Not found

http://nexus.emergya.es/nexus/index.html#nexus-search;quick~com.bea.p13n

It actually has some results, but when clicking the Download button it leads to this page.

  • Installing a different WebLogic package. I installed a development version, so I thought it could miss something, but even after installing the standard WebLogic they are missing

  • Browsing existing WebLogic installments, like test environments from other projects

Should I keep searching for these libraries or are they deprecated? Can I extract these libraries from a war already build with it? They seem to have been deleted anywhere. In this case I should search for a newer library (with the risk of incompatibilities with the code already written). Any help is highly appreciated!

答案1

得分: 1

抱歉,代码部分不要翻译。以下是翻译好的内容:

不幸的是,解决方案可能不会很容易。您寻找的库可能已经从Oracle Maven存储库中消失了。经常会出现这种情况,旧的Oracle库或jDeveloper的插件会被移除。我曾经在JDeveloper 11g的Oracle WebCenter插件上遇到过同样的问题。唯一的解决办法是从另一台计算机恢复这些文件。

我已经解压并递归搜索了来自WebLogic安装10.3.6的所有jar文件,可以确定你提到的库既不在JDeveloper中也不在集成的WebLogic中。这是有道理的,因为你说项目连接到maven.oracle.com获取这些依赖项。

我已经连接到了Oracle Maven,但这些库不再存在。它们相当古老,所以它们可能已经被删除了。

我看到有几种可能的解决方法:

  1. 找到已构建项目的war文件并解压库文件。我不知道这个项目是什么,但如果这些不是WebLogic库而是依赖关系,它们应该在war(或ear)中。
  2. 也许有人已经为这个项目配置了整个环境,以便您可以复制库文件。
  3. 如果您有付费支持,可以向Oracle提交工单。
  4. 尝试在Oracle论坛https://community.oracle.com上寻求帮助。也许您会找到可以帮助您的人。
  5. 检查是否真的需要这些库。也许如果您从pom中排除它们,一切都能正常工作。如果在部署过程中出现问题,也许添加缺失的库就足够了。如果有可用的较新版本,也可以尝试使用这些库。
英文:

Unfortunately, the solution won't be easy. The libraries you're looking for have probably disappeared from the Oracle Maven repository. It happens quite often that old Oracle libraries or plugins for jDeveloper are removed. I had the same problem with the Oracle WebCenter plugin for JDeveloper 11g. The only solution was to recover these files from another computer.

I've unpacked and searched recursively all jars from WebLogic installation 10.3.6, and definitely the libraries you mentioned aren't there, neither in JDeveloper nor in Integrated WebLogic. Which makes sense since you have said that the project connects to maven.oracle.com for these dependencies.

I've connected to Oracle Maven, and these libraries don't exist there anymore. They were quite old, so they were probably deleted.

I see a few possible workarounds:

  1. Locate the war of the built project and unpack the libraries. I don't know what this project is, but if these are not WebLogic libraries but dependencies, they should be in war (or ear).
  2. Maybe someone has configured the whole environment for this project so you can copy libraries.
  3. If you have paid support, you can create a ticket to Oracle.
  4. Try to get help on the Oracle forum at https://community.oracle.com. Maybe you'll find someone who can help you.
  5. Check if you really need these libraries. Maybe if you exclude them from the pom, everything will work. If problem happens during deployment, maybe it's enough to add missing libraries. Trying newer versions of these libraries if some are available is also possible.

答案2

得分: 0

我发现我指错了WebLogic产品!我发现项目的本地pom.xml必须与WebLogic Portal 10.3.6一起工作,而不是WebLogic Server 10.3.6!花了一些时间才找到一个下载此Portal的链接(因为它已经过时),但在这里:

  1. 转到此链接
  2. 输入WebLogic Portal(不要点击建议,因为它会显示更多内容)
  3. 下载Oracle WebLogic Portal 10.3.6.0.0
  4. 它将下载一个.exe,可以下载.zip到您想要的任何位置
  5. 解压
  6. 使用Java 7运行.jar,并按照引导安装过程进行操作

它将包含所有内容,包括p13nnetuix库,以及WebLogic Server的安装!

英文:

Turns out I was pointing to a wrong WebLogic product! I discovered that the native pom.xml of the project has to work with WebLogic Portal 10.3.6 instead of WebLogic Server 10.3.6! It took me some time to find out a link to download this Portal (since it's in EOL) but here it is:

  1. Go to this link
  2. Prompt WebLogic Portal (do NOT click on the suggestion, either it will show a lot more stuff)
  3. Oracle WebLogic Portal 10.3.6.0.0, download it
  4. It will download an .exe that will download the .zip wherever you want
  5. Extract
  6. Run the .jar with Java 7 and follow the guided installation procedure

It will contain everything, both p13n and netuix libraries, plus an installation of WebLogic Server!

huangapple
  • 本文由 发表于 2023年4月19日 16:33:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76052349.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定