Tag Archives: eclipse

Eclipse Maven package error

Maven: non-resolvable parent POM: Failure to find error

subproject clean, clean is to delete the jar package under target


the install, successful, will be under the target to generate the jar package,

packaging success

note: only the parent project, introduced a subproject, and then in the subproject right-click the run as maven install, all components of package are automatically packed, if commend father is right, then all the components of pom. The XML file is to introduce the parent project path
After

is packaged, start
java-jar diaodu-demo.jar

by entering the command CMD
in the directory with the boot class


just like launching in eclipse, if there is any error, it will report an error, and if there is no error, it will launch successfully


generally appears on the port, which is successfully started

Solution to the problem of no C / C + + option in the new project of eclipse

encountered an eclipse new Project option that did not include C/C++ Project today.

first declare their installation software and environment (most of the articles xiaobai has seen so far do not explain their own environment to solve the problem, resulting in many xiaobai took a lot of detours).

– installation software: eclipse2020, win64. You can download it for free on your website.

2 installation environment: JDK14, this version is installed eclipse when the JDK is automatically configured, environment variables are also automatically configured (before manually installed and configured JDK1.7, does not affect the normal work of eclipse).

Problem with

3: eclipse cannot create a new C/C++ Project at this point.

is looking for a lot of solutions online, most of which require MinGW installation, which can be very confusing for xiaobai. Here’s a small white solution.

four solutions:

1. Open eclipse — help-install new software

2. In the Work with the input url: http://download.eclipse.org/tools/cdt/releases/kepler

3. CDT will be loaded later, select all, and click finish

4. Receive protocol and wait for installation:

5. Restart eclipse when finished.

the third time to write a blog, I hope to help xiaobai, welcome criticism and correction, together with progress!

Set code indent to space indent in eclipse

the Google Java programming style specification recommends that blocks be indented to two Spaces, while Eclipse defaults to using tabs (\t) to indent blocks, and here’s how you can change the indentation of code in Eclipse:

  1. open Eclipse;
  2. Window -> Preferences -> Java -> Code Style -> The Formatter.
  3. on the right click ‘New…’ “Initialize Settings with the following Profile”. Just select “Eclipse [Builin]” and click OK.
  4. click on “Edit…” Button;
  5. either choose “Spaces only” or “Tab policy” in “General Settings” on the “Indentation” Tab, and enter “2” as the value of “Indentation size”;
  6. click OK.

thus, holding down the Tab key while writing code in the Eclipse code editing area indents the code with two Spaces.

Eclipse automatic prompt setting method and optimization

Eclipse prompts to set

automatically

we open the Eclipse configuration autoprompt and click the window-preferences interface

first configure the automatic prompt for the Java file

click on Java – Editor – Content Assist and change Auto activation triggers for Java to

.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

good click Apply to


Refer to the article: https://blog.csdn.net/qq_36949176/article/details/86522183