X Tutup
Skip to content

Commit 5337ecd

Browse files
committed
iluwatar#91 Added skeleton for naked-objects example using Apache Isis SimpleApp archetype
1 parent aa491b2 commit 5337ecd

File tree

62 files changed

+5304
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+5304
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ target
1111
.idea
1212
*.iml
1313
*.swp
14-
14+
datanucleus.log

naked-objects/.gitattributes

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
#
3+
# text files are normalized (convert crlf => lf)
4+
# binary files are not normalized (binary is a macro for -text -diff)
5+
#
6+
#
7+
8+
9+
# Unless otherwise stated, assume text
10+
11+
* text=auto
12+
13+
14+
*.java text diff=java
15+
*.html text diff=html
16+
*.xhtml text diff=html
17+
*.xml text
18+
*.txt text
19+
20+
21+
*.jar binary
22+
*.so binary
23+
*.dll binary
24+
25+
# images
26+
*.jpg binary
27+
*.jpeg binary
28+
*.png binary
29+
*.pdn binary
30+
*.pdn binary
31+
32+
33+
*.cs text diff=csharp
34+
35+
*.sln merge=union
36+
*.csproj merge=union
37+
*.vbproj merge=union
38+
*.fsproj merge=union
39+
*.dbproj merge=union
40+
41+
*.doc diff=astextplain
42+
*.DOC diff=astextplain
43+
*.docx diff=astextplain
44+
*.DOCX diff=astextplain
45+
*.dot diff=astextplain
46+
*.DOT diff=astextplain
47+
*.pdf diff=astextplain
48+
*.PDF diff=astextplain
49+
*.rtf diff=astextplain
50+
*.RTF diff=astextplain
51+

naked-objects/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
*~
2+
*.swp
3+
*.class
4+
bin/
5+
target/
6+
target-ide/
7+
logs/
8+
.settings/
9+
.project
10+
.classpath
11+
.idea
12+
*.iml
13+
14+
JArchitectOut/
15+
*.jdproj
16+
17+
neo4j_DB/
18+
19+
# log files
20+
datanucleus.log
21+
isis.log
22+
i18n-po.log
23+
hs_err_pid*.log
24+
25+
# Package Files #
26+
*.jar
27+
*.war
28+
*.ear
29+
30+
dependency-reduced-pom.xml
31+
pom.xml.tag
32+
pom.xml.next
33+
pom.xml.releaseBackup
34+
pom.xml.versionsBackup
35+
36+
.clover/
37+
*.jdproj
38+
JArchitectOut/
39+
40+
41+
rebel.xml
42+
/translations.pot

naked-objects/dom/log4j.properties

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# LOG4J Configuration
19+
# ===================
20+
21+
# Basic logging goes to "datanucleus.log"
22+
log4j.appender.A1=org.apache.log4j.FileAppender
23+
log4j.appender.A1.File=datanucleus.log
24+
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
25+
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} (%t) %-5p [%c] - %m%n
26+
#log4j.appender.A1.Threshold=INFO
27+
28+
# Categories
29+
# Each category can be set to a "level", and to direct to an appender
30+
31+
# Default to DEBUG level for all DataNucleus categories
32+
log4j.logger.DataNucleus = DEBUG, A1
33+
34+
log4j.category.com.mchange.v2.c3p0=INFO, A1
35+
log4j.category.com.mchange.v2.resourcepool=INFO, A1
36+
log4j.category.org.logicalcobwebs.proxool=INFO,A1
37+
38+
39+
# Hbase libs logging
40+
log4j.category.org.apache.hadoop=INFO,A1
41+
log4j.category.org.apache.zookeeper=INFO,A1

naked-objects/dom/pom.xml

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
--><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/maven-v4_0_0.xsd">
20+
<modelVersion>4.0.0</modelVersion>
21+
22+
<parent>
23+
<groupId>com.iluwatar</groupId>
24+
<artifactId>naked-objects</artifactId>
25+
<version>1.0-SNAPSHOT</version>
26+
</parent>
27+
28+
<artifactId>naked-objects-dom</artifactId>
29+
<name>Simple App DOM</name>
30+
31+
<build>
32+
<resources>
33+
<resource>
34+
<directory>src/main/resources</directory>
35+
</resource>
36+
<resource>
37+
<directory>src/main/java</directory>
38+
<includes>
39+
<include>**</include>
40+
</includes>
41+
<excludes>
42+
<exclude>**/*.java</exclude>
43+
</excludes>
44+
</resource>
45+
</resources>
46+
</build>
47+
48+
<dependencies>
49+
<dependency>
50+
<groupId>org.apache.isis.core</groupId>
51+
<artifactId>isis-core-applib</artifactId>
52+
</dependency>
53+
54+
<dependency>
55+
<groupId>org.apache.isis.core</groupId>
56+
<artifactId>isis-core-unittestsupport</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
60+
<!-- Bytecode libraries (for mocking) -->
61+
<dependency>
62+
<groupId>org.objenesis</groupId>
63+
<artifactId>objenesis</artifactId>
64+
<scope>test</scope>
65+
</dependency>
66+
67+
<dependency>
68+
<groupId>org.assertj</groupId>
69+
<artifactId>assertj-core</artifactId>
70+
<scope>test</scope>
71+
</dependency>
72+
73+
</dependencies>
74+
75+
<profiles>
76+
<profile>
77+
<id>enhance</id>
78+
<activation>
79+
<activeByDefault>true</activeByDefault>
80+
</activation>
81+
<properties>
82+
<datanucleus-maven-plugin.version>4.0.0-release</datanucleus-maven-plugin.version>
83+
</properties>
84+
<build>
85+
<pluginManagement>
86+
<plugins>
87+
<plugin>
88+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
89+
<groupId>org.eclipse.m2e</groupId>
90+
<artifactId>lifecycle-mapping</artifactId>
91+
<version>1.0.0</version>
92+
<configuration>
93+
<lifecycleMappingMetadata>
94+
<pluginExecutions>
95+
<pluginExecution>
96+
<pluginExecutionFilter>
97+
<groupId>org.datanucleus</groupId>
98+
<artifactId>datanucleus-maven-plugin</artifactId>
99+
<versionRange>[${datanucleus-maven-plugin.version},)</versionRange>
100+
<goals>
101+
<goal>enhance</goal>
102+
</goals>
103+
</pluginExecutionFilter>
104+
<action>
105+
<ignore></ignore>
106+
</action>
107+
</pluginExecution>
108+
</pluginExecutions>
109+
</lifecycleMappingMetadata>
110+
</configuration>
111+
</plugin>
112+
</plugins>
113+
</pluginManagement>
114+
<plugins>
115+
<plugin>
116+
<groupId>org.datanucleus</groupId>
117+
<artifactId>datanucleus-maven-plugin</artifactId>
118+
<version>${datanucleus-maven-plugin.version}</version>
119+
<configuration>
120+
<fork>false</fork>
121+
<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
122+
<verbose>true</verbose>
123+
<props>${basedir}/datanucleus.properties</props>
124+
</configuration>
125+
<executions>
126+
<execution>
127+
<phase>process-classes</phase>
128+
<goals>
129+
<goal>enhance</goal>
130+
</goals>
131+
</execution>
132+
</executions>
133+
</plugin>
134+
</plugins>
135+
</build>
136+
<dependencies>
137+
<dependency>
138+
<groupId>org.datanucleus</groupId>
139+
<artifactId>datanucleus-core</artifactId>
140+
</dependency>
141+
<dependency>
142+
<groupId>org.datanucleus</groupId>
143+
<artifactId>datanucleus-jodatime</artifactId>
144+
</dependency>
145+
<dependency>
146+
<groupId>org.datanucleus</groupId>
147+
<artifactId>datanucleus-api-jdo</artifactId>
148+
</dependency>
149+
</dependencies>
150+
</profile>
151+
<profile>
152+
<id>isis-validate</id>
153+
<activation>
154+
</activation>
155+
<build>
156+
<plugins>
157+
<plugin>
158+
<groupId>org.apache.isis.tool</groupId>
159+
<artifactId>isis-maven-plugin</artifactId>
160+
<version>1.9.0-SNAPSHOT</version>
161+
<configuration>
162+
<isisConfigDir>../webapp/src/main/webapp/WEB-INF</isisConfigDir>
163+
</configuration>
164+
<dependencies>
165+
<dependency>
166+
<groupId>org.apache.isis.example.application</groupId>
167+
<artifactId>simpleapp-dom</artifactId>
168+
<version>1.9.0-SNAPSHOT</version>
169+
</dependency>
170+
<!--
171+
... workaround to avoid conflict with plexus-default
172+
(not sure why exclusions in the isis-maven-plugin aren't sufficient, though ...
173+
-->
174+
<dependency>
175+
<groupId>com.google.guava</groupId>
176+
<artifactId>guava</artifactId>
177+
<version>16.0.1</version>
178+
</dependency>
179+
</dependencies>
180+
<executions>
181+
<execution>
182+
<phase>test</phase>
183+
<goals>
184+
<goal>validate</goal>
185+
</goals>
186+
</execution>
187+
</executions>
188+
</plugin>
189+
</plugins>
190+
</build>
191+
</profile>
192+
</profiles>
193+
194+
</project>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
21+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
23+
24+
<persistence-unit name="simple">
25+
</persistence-unit>
26+
</persistence>

0 commit comments

Comments
 (0)
X Tutup