Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA output directory reverts to default target

Running IntelliJ IDEA (10.5.4). It is a Seam application.

In project structure --> artifacts --> Output directory, the default value is

...../proj/proj-web/target/classes.

I keep changing it to ......./proj/src/main/webapp , which means the web server reads from the same directories I'm editing and my changes are viewable immediately.

My trouble is that IntelliJ frequently reverts back to the default and it is getting annoying. Does anyone know how to make this stick. This "didn't use to happen" in earlier versions.

like image 852
mcgyver5 Avatar asked Feb 06 '12 15:02

mcgyver5


People also ask

How do I change the default directory in IntelliJ?

Change the default location for projectsIn the Settings/Preferences dialog ( Ctrl+Alt+S ), select Appearance & Behavior | System Settings. In the Default project directory field, specify the path to the folder in which you want to store your projects. Apply the changes and close the dialog.

What is compiler output path IntelliJ?

Compiler output path is the path to the directory in which IntelliJ IDEA stores the compilation results. In this directory, the IDE creates two sub-directories: output for production code and test output for test sources.

Where is the output folder in IntelliJ?

In Intellij the default output path is ~/project/out/production/module.

What is target folder in IntelliJ?

The src/target folder is where IntelliJ will keep the compiled versions of your Scala application files. As such, the files and folders within the target directory is automatically managed by IntelliJ and you should not place any of your application files here.


1 Answers

try uncheck "use maven output directories"

enter image description here

like image 154
孟庆猛 Avatar answered Sep 27 '22 20:09

孟庆猛