【個人メモ】Eclipse Javaプロジェクトの各画面と設定ファイルの関係性について

### プロジェクトの「Properties」→「Project Facets」
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3802944/617f6752-4d71-616e-ade7-2a650caa4033.png)

``` xml:org.eclipse.wst.common.project.facet.core.xml
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  ～略～
  <installed facet="java" version="1.8"/>
  <installed facet="jst.web" version="3.1"/>
  <installed facet="wst.jsdt.web" version="1.0"/>
  ～略～
</faceted-project>
```


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



###  プロジェクトの「Properties」→「Java Build Path」→「Source」
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3802944/dade4215-85aa-b338-0cfe-eb0e6ae448c6.png)

``` xml:.classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    ～略～
	<classpathentry kind="src" path="src/main/java"/>
	<classpathentry kind="src" path="src/main/resources"/>
	<classpathentry kind="output" path="build/classes"/>
    ～略～
</classpath>
```

``` xml:org.eclipse.wst.common.component
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
    <wb-module deploy-name="projectB">
        ～略～
        <property name="java-output-path" value="/projectB/build/classes"/>
        ～略～
    </wb-module>
</project-modules>
```
2024/08/13
org.eclipse.wst.common.componentのjava-output-pathの値は変わらないかも...。


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


### プロジェクトの「Properties」→「Java Build Path」→「Libraries」
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3802944/5a3f61ee-0aa9-27a3-bd34-4269bb421f73.png)

``` xml:.classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <!-- JRE System Library -->
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
		<attributes>
			<attribute name="module" value="true"/>
		</attributes>
	</classpathentry>
    <!-- EAR Libraries -->
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
    <!-- Web App Libraries -->
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
    <!-- Server Runtime -->
	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/C-_ProgramFiles_Tomcat_8.0.53"/>
</classpath>
```


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


### プロジェクトの「Properties」→「Deployment Assembly」
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3802944/5ba0e952-8155-a188-770c-e27f10de615c.png)

``` xml:org.eclipse.wst.common.component
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
    <wb-module deploy-name="projectB">
        ～略～
        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
        <wb-resource deploy-path="/" source-path="/webapp"/>
        ～略～
    </wb-module>
</project-modules>
```


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


### プロジェクトの「Properties」→「Web Project Settings」
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3802944/af28b4a6-4826-c459-097e-5ac4d97c0df5.png)

``` xml:org.eclipse.wst.common.component
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
    <wb-module deploy-name="projectB">
        ～略～
        <property name="context-root" value="projectB"/>
        ～略～
    </wb-module>
</project-modules>
```