The process of importing idea and eclipse projects into each other

Source: Internet
Author: User

Idea Project Export to desktop

Very simple, go directly to the project directory to test out, but the test out of the project is often particularly large, this is because we do not forget to test the output directory of idea Delete

Each time the server runs the idea project, there is an output directory with the default name target

--------------------------------------------------

Idea project imported into the project

Simple, open idea and open the target project directly

Sometimes this happens when you open it.

SRC directory is missing. Don't worry, MAVEN, the project is going to be a problem first.

Update it and then it's okay.

----------------------------------------

Idea Project migrated to eclipse

This project is the idea project is the SSM project that I have configured on top of this project is currently not directly imported into eclipse

We'll copy it to the desktop, and we'll open it with idea first.

Then open the project structure shortcut keys as follows

After opening, come to the following view

Now in the view is the default option in the red box is our key step

Select the Eclipse option and then OK then a new file will be generated in the project

Or

You can turn off idea now because all we need is a file in the red box. The target that you just opened is on the desktop.

So eclipse can identify the project.

Open the Eclipse tool to work with files on your desktop:

The first method of import:

There are no. settirng folders in the imported file this way

This causes problems with deploying Tomcat not recognized

The project that you just imported is not recognized as a Web project deployment when it is not found

I found a way to fix it.

Reference article:

http://blog.csdn.net/dw_java08/article/details/7789601

Https://www.cnblogs.com/liouwei4083/p/5810895.html

Try to solve the problem that the deployment can't find the project

The second type of import:

The third method of import:

Individuals feel that the second and third use of the first advantage of these two

Deploy to Tomcat or start a project using the Maven plugin Tomcat:run

But the error started after the launch.

The cause of the error is the contents of the red box in the Pom.xml file.

Maven project in the idea environment if an XML file exists in the Java directory, you need this code to parse the XML in the Java directory

MAVEN projects cannot have this code in the eclipse environment, regardless of whether the XML file is in the Java directory

This project was imported from idea and running in eclipse does not have to be deleted (the code cannot appear in the Eclipse Environment ).

Then the deployment runs

--------------------------------------------------------------------------------------------------------------

Eclipse Project Import into idea

This is a simple operation. First, export the Eclipse project to the desktop

and open idea.

Open it and don't worry about it at this point. Configuration running idea and eclipse it's a little different on eclipse, but you need to be aware of this place

Because I have an XML file in my project in the Java directory

So if you have an XML file outside of resource in your project, be sure not to forget to add this code to Pom.xml when you use idea

        <Resources>
<Resource>
<Directory>Src/main/java</Directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>True</filtering>
</Resource>
</Resources>

And then the deployment starts up and it's working.

----------------------------------------------

The process of importing between idea and Eclipse projects

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.