Refactor module "server" -> structure de webapp

This commit is contained in:
Notmoo 2017-07-26 15:28:15 +02:00
parent 2de8479cbc
commit e6eacf4ea8
19 changed files with 32 additions and 7 deletions

View File

@ -0,0 +1,8 @@
<component name="ArtifactManager">
<artifact type="war" name="server:war">
<output-path>$PROJECT_DIR$/server/target</output-path>
<root id="archive" name="server-1.0-SNAPSHOT.war">
<element id="artifact" artifact-name="server:war exploded" />
</root>
</artifact>
</component>

View File

@ -0,0 +1,16 @@
<component name="ArtifactManager">
<artifact type="exploded-war" name="server:war exploded">
<output-path>$PROJECT_DIR$/server/target/server-1.0-SNAPSHOT</output-path>
<root id="root">
<element id="directory" name="WEB-INF">
<element id="directory" name="classes">
<element id="module-output" name="server" />
</element>
</element>
<element id="directory" name="META-INF">
<element id="file-copy" path="$PROJECT_DIR$/server/target/server-1.0-SNAPSHOT/META-INF/MANIFEST.MF" />
</element>
<element id="javaee-facet-resources" facet="server/web/Web" />
</root>
</artifact>
</component>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$/server" />
</component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
<option name="ignoredFiles">
<set>
<option value="$PROJECT_DIR$/server/pom.xml" />
</set>
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">

View File

@ -6,6 +6,7 @@
<module fileurl="file://$PROJECT_DIR$/client/client.iml" filepath="$PROJECT_DIR$/client/client.iml" />
<module fileurl="file://$PROJECT_DIR$/core/core.iml" filepath="$PROJECT_DIR$/core/core.iml" />
<module fileurl="file://$PROJECT_DIR$/server/server.iml" filepath="$PROJECT_DIR$/server/server.iml" />
<module fileurl="file://$PROJECT_DIR$/server/server.iml" filepath="$PROJECT_DIR$/server/server.iml" />
</modules>
</component>
</project>

View File

@ -10,7 +10,7 @@
<modules>
<module>core</module>
<module>client</module>
<module>server</module>
<module>com.pqt.server</module>
</modules>
<packaging>pom</packaging>

View File

@ -8,6 +8,7 @@
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>war</packaging>
<artifactId>server</artifactId>

View File

@ -16,7 +16,7 @@ public class ServerStateService {
this.serverState = new ServerState();
//TODO config adresse IP
//this.server.setAddress(...);
//this.com.pqt.server.setAddress(...);
this.server.setLastUpdate(new Date());
}