在Jdeveloper oracle中将项目转换为maven

时间:2017-12-12 13:59:42

标签: java oracle maven jdeveloper

我使用此视频将我的项目转换为maven: https://www.youtube.com/watch?v=ht8JgEAmrI8

我的结构如下: enter image description here

我的pom.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<project xmlns="http://maven.apache.org/POM/4.0.0">
  <modelVersion>4.0.0</modelVersion>
  <groupId>WebSocket</groupId>
  <artifactId>RMDXWebSocketEndpoint</artifactId>
  <version>1.0-SNAPSHOT</version>
  <description>Generated POM from JDeveloper for project RMDXWebSocketEndpoint</description>
  <dependencies>
    <dependency>
      <groupId>com.oracle.adf.library</groupId>
      <artifactId>WebSocket</artifactId>
      <version>12.2.1-1-0</version>
      <type>pom</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-api</artifactId>
        <version>7.0</version>
        <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>src/</sourceDirectory>
    <resources>
      <resource>
        <directory>${basedir}</directory>
        <includes>
          <include>*</include>
        </includes>
      </resource>
    </resources>
    <outputDirectory>classes/</outputDirectory>
  </build>
</project>

我可以运行Maven并且我得到了一切都很好的回复 [信息]建立成功

但在我的代码中,Jdeveloper并没有从maven中看到我的库。 Jdeveloper的行为就像库不存在一样

Maven输出:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building RMDXWebSocketEndpoint 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.glassfish.tyrus:tyrus-container-grizzly:jar:1.3 is missing, no dependency information available
[WARNING] The POM for org.glassfish.tyrus:tyrus-websocket-core:jar:1.3 is missing, no dependency information available
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ RMDXWebSocketEndpoint ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ RMDXWebSocketEndpoint ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 2 source files to C:\Users\tok\Desktop\RMDX_Middleware\java\websocket\RMDXWebSocketEndpoint\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ RMDXWebSocketEndpoint ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\tok\Desktop\RMDX_Middleware\java\websocket\RMDXWebSocketEndpoint\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ RMDXWebSocketEndpoint ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ RMDXWebSocketEndpoint ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ RMDXWebSocketEndpoint ---
[INFO] Building jar: C:\Users\tok\Desktop\RMDX_Middleware\java\websocket\RMDXWebSocketEndpoint\target\RMDXWebSocketEndpoint-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.043 s
[INFO] Finished at: 2017-12-12T16:25:28+01:00
[INFO] Final Memory: 17M/217M
[INFO] ------------------------------------------------------------------------
Process exited with exit code 0.

我可能在这里遇到了问题。因为它在这里寻找进口。如何更改它使用Maven?

enter image description here

0 个答案:

没有答案