First, make sure src is marked as a source folder for your module in Module Settings --> Modules --> --> Sources.

Second, make sure the list of recognized resources includes one for XML files (?*.xml) in Settings --> Project --> Compiler --> Resource Settings.

This is how IntelliJ knows what to copy into your classpath (output folder) in addition to class files. If this doesn't help, please provide more information.

Answer from SingleShot on Stack Overflow
🌐
JetBrains
plugins.jetbrains.com › docs › intellij › project.html
Project | IntelliJ Platform Plugin SDK
April 24, 2025 - The IntelliJ Platform stores the project configuration data in XML files.
🌐
JetBrains
jetbrains.com › help › idea › working-with-xml.html
XML | IntelliJ IDEA Documentation
Depending on the file type, IntelliJ IDEA creates a namespace declaration, or a taglib. You can configure XML-aware syntax highlighting according to your preferences and habits.
🌐
JetBrains
jetbrains.com › help › idea › configure-project-settings.html
Project settings | IntelliJ IDEA Documentation
1 month ago - Project settings are stored in the project directory as a set of XML files under the .idea folder. This folder contains both user-specific settings that should not be placed under version control and project settings that are normally shared among developers working in a team, for example, the code style configuration. When you enable version control in your project, IntelliJ IDEA automatically moves the workspace.xml file with your personal settings to the .gitignore list to avoid conflicts with other developers' settings.
🌐
JetBrains
jetbrains.com › help › idea › working-with-projects.html
Configure projects | IntelliJ IDEA Documentation
March 2, 2026 - They are stored together with other project files in the .idea directory in the .xml format. For example, projects keep VCS settings, SDKs, code style and spellchecker settings, compiler output, libraries that are available for all modules within a project. For more information, refer to Project settings and Project structure settings. ... Global settings apply to all projects of a specific installation of IntelliJ ...
🌐
GitHub
github.com › mttkay › intellij-settings › blob › master › project.default.xml
intellij-settings/project.default.xml at master · mttkay/intellij-settings
<component name="ProjectRootManager" version="2" default="true" /> <component name="RunManager"> <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin"> <module name="" /> <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" /> <option name="PROGRAM_PARAMETERS" /> <predefined_log_file id="idea.log" enabled="true" /> <method /> </configuration> <configuration default="true" type="Applet" factoryName="Applet"> <option name=
Author: mttkay
Author: JetBrains
🌐
LabKey
labkey.org › Documentation › wiki-page.view
Use IntelliJ for XML File Editing: /Documentation
One symptom of an incorrect configuration is that the XML elements will be shown in IntelliJ in red. Select the path value and click 'Alt-Enter' for a menu of options. Choose Manually setup external resource. In the popup, find and double click the relevant xsd file, in this example, tableinfo.xsd.
Find elsewhere
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 208585565-How-to-find-XML-files-on-a-project-s-folder-
How to find XML files on a project's folder? – IDEs Support (IntelliJ Platform) | JetBrains
September 8, 2016 - for that and filter xml files by comparing file.getFileType() with StdFileTypes.XML. This should be fast enough unless the project has several thousands of files.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › articles › 206544839-How-to-manage-projects-under-Version-Control-Systems
How to manage projects under Version Control Systems – IDEs Support (IntelliJ Platform) | JetBrains
misc.xml is killing me. We check our intellij project into source control. There are some shared config options in there for plugnins... like an eclipse code EcliipseCodeFormatter, CheckstyleConfigurable, FindBugsConfigurable.... all good shared thingies...
🌐
TutorialsPoint
tutorialspoint.com › intellij_idea › intellij_idea_build_tools.htm
Intellij Idea − Build Tools
We need to add properties to this file; the final pom.xml file should look like this − · <?xml version = "1.0" encoding = "UTF-8"?> <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.tutorialspoing</groupId> <artifactId>HelloWorld</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> </project>
🌐
JetBrains
jetbrains.com › help › idea › settings-languages-xml-catalog.html
XML Catalog | IntelliJ IDEA Documentation
February 10, 2026 - Use this dialog to configure your .properties file. This file contains lists of catalog.xml files.
🌐
Stack Overflow
stackoverflow.com › questions › 66944047 › how-to-get-project-name-as-a-variable-in-intellij-to-use-for-xml-files
java - How to get project name as a variable in intellij to use for XML files? - Stack Overflow
Please, try <property name="jar.name" value=$PROJECT_DIR$/> or <property name="jar.name" value="${PROJECT_DIR}/> 2021-04-05T08:42:38.33Z+00:00 ... thank you for this suggestion! i tried both already.. the first one simply does not work in xml (value expected error) and the second one gives me "property unknown". i also tried defining an own intellij path variable, simply for testing if the build.xml recognizes any path variables at all and it also did not change to the respective value of the new path variable.
🌐
Stack Overflow
stackoverflow.com › questions › 41402229 › how-to-create-an-empty-xml-file-from-schema-in-intellij-idea
java - How to create an empty XML file from schema in IntelliJ IDEA - Stack Overflow
I'm new to IntelliJ but I am trying to create an 'empty' XML file based on an OSGi blueprint schema. In Netbeans this is is as simple as specifying a new file in the project, selecting type 'XML' and optionally specifying the (external) schema location.
🌐
YouTube
youtube.com › watch
How to Setup settings.xml for Intellij and Maven Project | Intellij ...
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 31014157799442-IntelliJ-not-recognizing-forgetting-to-use-xml-context-files
IntelliJ not recognizing/forgetting to use xml context files – IDEs Support (IntelliJ Platform) | JetBrains
• Ensure XMLs are copied: Settings → Compiler → Resource patterns should include `*.xml`. Then do Build → Rebuild Project. • Classpath check: Your Run Configuration → Use classpath of module must point to the module that contains your profile resources. • File flags: Right-click each XML → File Properties → make sure Exclude from compilation is off.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360010497879-How-to-I-get-all-xml-files-in-resource
How to I get all xml files in resource – IDEs Support (IntelliJ Platform) | JetBrains
<!DOCTYPE post PUBLIC "//GOOGLE/ > 2. should I save them in memory as a Map (or whatever type) to keep indexes of files for fast looking needed XML or perform search exact XML every time using FileBaseIndex and iterate them again and again ... scope = GlobalSearchScopesCore.directoriesScope(module.getProject(), true, resourceRoots.toArray(VirtualFile.EMPTY_ARRAY)) You can use API like com.intellij.psi.search.FileTypeIndex#processFiles(com.intellij.openapi.fileTypes.FileType, com.intellij.util.Processor<? super com.intellij.openapi.vfs.VirtualFile>, com.intellij.psi.search.GlobalSearchScope) to perform the filtering according to DocType or any other criteria.