how to gracefully modify the default JDK version of Maven
how to gracefully modify the default JDK version of Maven
there are two ways to modify the default JDK version: global
for the project.modify for the project (specify the jdk version in the project (modify the project's pom.xml file)
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
Global modification (globally set jdk version (modify maven's settings.xml configuration file)
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
jenv is very interesting. Take a look at
.A maven project user and administrator put two sets of pages in two maven sub-modules, and then use another sub-module to do war,. I would like to ask, how can I access the page of the sub-module ...
scene in the company, do the company s project A, use the company s private server. when you are at home, if you want to play with other project B, you should go to setting.xml to change the image setting to a public warehouse . does maven prov...
is when I created a new web project for maven, what I found on the official website was tomcat7-maven-plugin s dependency pluginplugin Why are we allowed to add in dependencies? ...
The A project relies on some common logic written in common-core,common-core, including mybatis s * mapper.xml file. The A project ends with a jar package packaged into springboot. Now pack it out, the mapper.xml file in the common-core package is in...
my Maven dependency tree is as follows Self +- A | - C 2.x - B - C 3.x the project relies on two libraries of AMagi B, which uses different versions of the C library, and the reference to C is necessary, and the two versions are not compatib...
using springBoot to integrate the jsp,controller,mybatis is all integrated, but when I visit the jsp page, I find that the page is not rendered, but the entire page string is returned directly. the jsp page is as follows controller jspViewResolver...
I have a springboot project of maven this project has multiple modules, one parent pom, one api module, and then other modules rely on api module configure jenkins because this maven multi-module project is uploaded in the same git repository , so th...
my springboot project is configured in multiple environments. In pom.xml, as follows, I have set test to active, but ${profileActive} always points to dev, unless I delete the profile of dev. What is this about reluctantly pointing to test,? <profil...
maven suddenly encountered an exception and could not download any mirrored jar packages and pom files. The strange thing is that it is completely normal to access directly in the browser or directly curl links under the terminal. operating system is ...
problem description how does maven package a ssh project into a jar the environmental background of the problems and what methods you have tried I directly run package, to package the code with only background logic. Can I package it and include a...
in my pom file, the configuration is as follows <profiles> <profile> <id>office< id> <properties> <profileActive>office< profileActive> < properties> <ac...
the problem occurs after running mvn help:system. The error message is as follows: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] -------------------------------------------------------------...
problem description my project is an aggregation project built with springboot and maven, and has a private maven library: Project: shop Module 1:email Module 2:wechat Module 3:service Module 4:base in which the base module depends on module 1,...
the film has my file directory: Hello, everyone, because I first received Spring MVC and maven the following codes are copied from others for testing: web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns...
macos maven package runs Chinese garbled use mvn clean install on macos to pack the jar package, and then run the jar package on the linux server, but the log is garbled in Chinese, so it s OK to pack it on windows as well. jar package I uploaded ...
1. The multi-module project established by mvn is divided into multiple start,service,dao modules 2. The code of the unit test is written under start, and the code in the service,dao is tested. executing the mvn test command will execute all the unit ...
in the online springcloud tutorials, we often see the following code block under the root pom <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud< grou...
mvn archetype:generate card dies in Generating project in Batch mode ...
problem description after obtaining the camera image using opencv, perform a series of processing, including equalization, binarization, and so on, to obtain the imageView object, so how to put this object on the interface of javafx? And the camera wi...