Skip to content

Commit ca34e69

Browse files
first commit
0 parents  commit ca34e69

Some content is hidden

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

86 files changed

+28588
-0
lines changed

.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+

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
build/
15+
16+
JArchitectOut/
17+
*.jdproj
18+
19+
neo4j_DB/
20+
21+
# log files
22+
datanucleus.log
23+
isis.log
24+
i18n-po.log
25+
hs_err_pid*.log
26+
27+
# Package Files #
28+
*.war
29+
*.ear
30+
31+
dependency-reduced-pom.xml
32+
pom.xml.tag
33+
pom.xml.next
34+
pom.xml.releaseBackup
35+
pom.xml.versionsBackup
36+
37+
.clover/
38+
39+
40+
rebel.xml
41+
translations.pot

README.adoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# HelloWorld
2+
3+
This application was generated by the link:http://isis.apache.org[Apache Isis] link:http://isis.apache.org/guides/ugfun.html#_ugfun_getting-started_helloworld-archetype[helloworld archetype].
4+
It is intended as a starting point to learn what Apache Isis is all about.
5+
6+
7+
== Quick start
8+
9+
Build using:
10+
11+
[source,bash]
12+
----
13+
mvn clean install
14+
----
15+
16+
Run using:
17+
18+
[source,bash]
19+
----
20+
mvn jetty:run
21+
----
22+
23+
Login using:
24+
25+
* username: `sven`
26+
* password: `pass`
27+
28+
The app runs with HSQLDB running in-memory.
29+
30+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"# helloworldisis"

enhance-all.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
mvn datanucleus:enhance -o

logging-dn-enhance.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

pom.xml

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
3+
license agreements. See the NOTICE file distributed with this work for additional
4+
information regarding copyright ownership. The ASF licenses this file to
5+
you under the Apache License, Version 2.0 (the "License"); you may not use
6+
this file except in compliance with the License. You may obtain a copy of
7+
the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8+
by applicable law or agreed to in writing, software distributed under the
9+
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10+
OF ANY KIND, either express or implied. See the License for the specific
11+
language governing permissions and limitations under the License. -->
12+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
14+
<modelVersion>4.0.0</modelVersion>
15+
16+
<parent>
17+
<groupId>org.incode</groupId>
18+
<artifactId>incode-build</artifactId>
19+
<version>2</version>
20+
</parent>
21+
22+
<groupId>com.gardner</groupId>
23+
<artifactId>helloworldisis</artifactId>
24+
<version>1.0-SNAPSHOT</version>
25+
26+
<name>HelloWorld</name>
27+
28+
<packaging>war</packaging>
29+
30+
<properties>
31+
<isis.version>1.15.1</isis.version>
32+
33+
<lombok.version>1.16.18</lombok.version>
34+
35+
<compiler-plugin.source>1.8</compiler-plugin.source>
36+
<compiler-plugin.target>1.8</compiler-plugin.target>
37+
38+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40+
41+
<maven-war-plugin.warName>${project.parent.artifactId}</maven-war-plugin.warName>
42+
43+
<java.version>1.8</java.version>
44+
45+
</properties>
46+
47+
48+
49+
<build>
50+
<resources>
51+
<resource>
52+
<directory>src/main/java</directory>
53+
<includes>
54+
<include>**</include>
55+
</includes>
56+
<excludes>
57+
<exclude>**/*.java</exclude>
58+
</excludes>
59+
</resource>
60+
</resources>
61+
<plugins>
62+
<plugin>
63+
<groupId>com.github.odavid.maven.plugins</groupId>
64+
<artifactId>mixin-maven-plugin</artifactId>
65+
<version>0.1-alpha-39</version>
66+
<extensions>true</extensions>
67+
<configuration>
68+
<mixins>
69+
<mixin>
70+
<groupId>com.danhaywood.mavenmixin</groupId>
71+
<artifactId>standard</artifactId>
72+
</mixin>
73+
<mixin>
74+
<groupId>com.danhaywood.mavenmixin</groupId>
75+
<artifactId>datanucleusenhance</artifactId>
76+
</mixin>
77+
<mixin>
78+
<groupId>com.danhaywood.mavenmixin</groupId>
79+
<artifactId>surefire</artifactId>
80+
</mixin>
81+
<mixin>
82+
<groupId>com.danhaywood.mavenmixin</groupId>
83+
<artifactId>jettywar</artifactId>
84+
</mixin>
85+
</mixins>
86+
</configuration>
87+
</plugin>
88+
</plugins>
89+
</build>
90+
91+
<dependencyManagement>
92+
<dependencies>
93+
<dependency>
94+
<groupId>org.apache.isis.core</groupId>
95+
<artifactId>isis</artifactId>
96+
<version>${isis.version}</version>
97+
<type>pom</type>
98+
<scope>import</scope>
99+
</dependency>
100+
</dependencies>
101+
</dependencyManagement>
102+
103+
<dependencies>
104+
<dependency>
105+
<groupId>org.apache.isis.core</groupId>
106+
<artifactId>isis-core-applib</artifactId>
107+
</dependency>
108+
<dependency>
109+
<groupId>org.apache.isis.mavendeps</groupId>
110+
<artifactId>isis-mavendeps-webapp</artifactId>
111+
<type>pom</type>
112+
</dependency>
113+
<dependency>
114+
<groupId>org.apache.isis.mavendeps</groupId>
115+
<artifactId>isis-mavendeps-intellij</artifactId>
116+
<type>pom</type>
117+
</dependency>
118+
<dependency>
119+
<groupId>org.apache.isis.mavendeps</groupId>
120+
<artifactId>isis-mavendeps-testing</artifactId>
121+
<scope>test</scope>
122+
<type>pom</type>
123+
</dependency>
124+
125+
<dependency>
126+
<groupId>org.hsqldb</groupId>
127+
<artifactId>hsqldb</artifactId>
128+
</dependency>
129+
130+
<dependency>
131+
<groupId>org.projectlombok</groupId>
132+
<artifactId>lombok</artifactId>
133+
<version>${lombok.version}</version>
134+
<scope>provided</scope>
135+
</dependency>
136+
</dependencies>
137+
138+
<profiles>
139+
<profile>
140+
<id>m2e</id>
141+
<activation>
142+
<property>
143+
<name>m2e.version</name>
144+
</property>
145+
</activation>
146+
<build>
147+
<directory>target-ide</directory>
148+
</build>
149+
</profile>
150+
</profiles>
151+
152+
</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="helloworldisis"/>
25+
26+
</persistence>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package domainapp.application;
20+
21+
import org.apache.isis.applib.AppManifestAbstract;
22+
23+
import domainapp.dom.HelloWorldModule;
24+
import domainapp.fixture.HelloWorldObjectFixtures;
25+
26+
/**
27+
* Bootstrap the application.
28+
*/
29+
public class HelloWorldAppManifest extends AppManifestAbstract {
30+
31+
public static final Builder BUILDER = Builder
32+
.forModules(HelloWorldModule.class)
33+
.withConfigurationPropertiesFile(HelloWorldAppManifest.class, "isis.properties")
34+
.withFixtureScripts(HelloWorldObjectFixtures.class)
35+
.withAuthMechanism("shiro");
36+
37+
public HelloWorldAppManifest() {
38+
super(BUILDER);
39+
}
40+
41+
}

0 commit comments

Comments
 (0)