Skip to content

Commit

Permalink
Moved domain model into separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
azzazzel committed Mar 15, 2015
1 parent 9dc26d0 commit 5d759e1
Show file tree
Hide file tree
Showing 14 changed files with 78 additions and 58 deletions.
2 changes: 2 additions & 0 deletions dukes-domain-model/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/bin
11 changes: 11 additions & 0 deletions dukes-domain-model/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<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>
<parent>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>dukes-forest</artifactId>
<version>7.0.6-SNAPSHOT</version>
</parent>
<artifactId>dukes-domain-model</artifactId>
<name>Duke's domain model</name>
</project>
122 changes: 64 additions & 58 deletions entities/pom.xml
Original file line number Diff line number Diff line change
@@ -1,63 +1,69 @@
<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>
<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>

<parent>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>dukes-forest</artifactId>
<version>7.0.6-SNAPSHOT</version>
</parent>
<parent>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>dukes-forest</artifactId>
<version>7.0.6-SNAPSHOT</version>
</parent>

<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>entities</artifactId>
<packaging>jar</packaging>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>entities</artifactId>
<packaging>jar</packaging>

<name>entities</name>
<name>entities</name>

<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.1.0.Final</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>false</skip>
<executable>${glassfish.home}/bin/asadmin${glassfish.executables.suffix}</executable>
<successCodes>
<successCode>0</successCode>
<successCode>1</successCode>
</successCodes>
<arguments>
<argument>create-auth-realm</argument>
<argument>--classname=com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm</argument>
<argument>--property=jaas-context=jdbcRealm:datasource-jndi=java\:global/ForestDataSource:user-table=forest.PERSON:user-name-column=email:password-column=password:group-table=forest.GROUPS:group-table-user-name-column=name:group-name-column=name:assign-groups=USERS,ADMINS:digest-algorithm=MD5</argument>
<argument>jdbcRealm</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.1.0.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>dukes-domain-model</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>false</skip>
<executable>${glassfish.home}/bin/asadmin${glassfish.executables.suffix}</executable>
<successCodes>
<successCode>0</successCode>
<successCode>1</successCode>
</successCodes>
<arguments>
<argument>create-auth-realm</argument>
<argument>--classname=com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm</argument>
<argument>--property=jaas-context=jdbcRealm:datasource-jndi=java\:global/ForestDataSource:user-table=forest.PERSON:user-name-column=email:password-column=password:group-table=forest.GROUPS:group-table-user-name-column=name:group-name-column=name:assign-groups=USERS,ADMINS:digest-algorithm=MD5</argument>
<argument>jdbcRealm</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
<module>dukes-payment</module>
<module>dukes-store</module>
<module>dukes-shipment</module>
<module>dukes-domain-model</module>
</modules>


Expand Down

0 comments on commit 5d759e1

Please sign in to comment.