我有一个名为Parent的项目.它的类型是POM.有一个库(ojdbc6.jar)在公共存储库中不可用,所以我正在访问它<SystemPath>,如下所示pom.xml:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.Parent</groupId>
<artifactId>Parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>childModule</module>
</modules>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc</artifactId>
<version>6</version>
<scope>system</scope>
<systemPath>${basedir}/lib/ojdbc6.jar</systemPath>
</dependency>
</dependencies>
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${basedir}/lib</url>
</repository>
</repositories>
Run Code Online (Sandbox Code Playgroud)
现在子项目名称是Child-Module1,Child-Module2使用this(ojdbc6.jar)库它的POM如下所述:
<project>
<modelVersion>4.0.0</modelVersion>
<artifactId>testApp</artifactId>
<version>1.14.5.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>APP1</name>
<description>Application</description>
<parent>
<groupId>com.Parent</groupId>
<artifactId>Parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
</project>
Run Code Online (Sandbox Code Playgroud)
当我使用Maven构建时,它给了我错误:
Description Resource Path Location Type
The container 'Maven Dependencies' references non existing library
'C:\Users\ABCCOMPUTER_NAME\.m2\repository\com\oracle\ojdbc\6\ojdbc-6.jar'
testApp Build path Problem.
Run Code Online (Sandbox Code Playgroud)
为什么它在本地存储库中查找?仅当父项目包含jar包含系统路径的库()时才会发生.当访问系统路径库(jar)在同一个项目中时,它不会发生,就像父引用一样 …
我在 React js 上的服务器启动时收到此错误。
错误:没有指定元素来初始化 PerfectScrollbar
不过,它在朋友的 MAC 操作系统上运行良好。我正在使用Windows。
我正在使用这个版本:“perfect-scrollbar”:“^1.4.0”,
我们在 Spring Boot 上有两个应用程序。第一个是基于 Spring Rest api,第二个是基于 Spring MVC。
由于某些业务原因,我们已经合并了这两个应用程序,因为上下文相同,并且除了 java.time.LocalDateTime 格式化(由 Spring 在 REST API 上自动执行)之外,一切都工作正常。之前它将 LocalDateTime 格式化为“2018-08-30T18:13:24”,但合并后显示为 [ 2018, 08, 30, 18, 13, 24 ],
我发现 @EnableWebMVC 注释是罪魁祸首,但删除该注释后,web-mvc 页面不起作用。
我应该怎么做才能以 ISO(字符串)格式显示日期并查看解析器和 jsp 页面正常工作?
请帮忙谢谢。
我刚刚在项目pom中添加了maven find bug插件:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<xmlOutput>true</xmlOutput>
<!-- Optional directory to put findbugs xdoc xml report -->
<xmlOutputDirectory>target/site</xmlOutputDirectory>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>findbugs</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
为了报告,我在下面添加了:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
</plugin>
Run Code Online (Sandbox Code Playgroud)
现在,当我使用install运行maven时,会在以下警告我:
> [INFO] --- findbugs-maven-plugin:3.0.4:findbugs (default) @
> MovesouqBackend --- [INFO] Fork Value is true
> [java] Warnings generated: 12 [INFO] Done FindBugs Analysis....
Run Code Online (Sandbox Code Playgroud)
它显示有12个错误作为警告并成功建立。
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] --------------------------------------------------------------
----------
Run Code Online (Sandbox Code Playgroud)
当发现针对findbug插件的任何警告时,我想使构建失败,并且我希望将此警告显示为错误。我已经阅读了插件文档,但与此无关。请帮忙。
java ×3
maven ×2
maven-3 ×2
eclipse ×1
findbugs ×1
javascript ×1
maven-plugin ×1
reactjs ×1
spring ×1
spring-boot ×1
spring-mvc ×1
spring-rest ×1
windows ×1