Skip to content

Commit 38a48c3

Browse files
committed
#77 Sample project for schemas is working properly
1 parent 450bc16 commit 38a48c3

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ targetCompatibility = "1.7"
2424

2525
repositories {
2626
jcenter()
27+
mavenLocal() // Used for local development only
2728
}
2829

2930
dependencies {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/bin
2+
.classpath
3+
.project
4+
/build
5+
.gradle
6+
.settings

examples/schemas-project/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This project shows an example of how MarkLogic 9 schemas can be loaded into a schemas
2+
database from src/main/ml-schemas (the default path - this can be overridden via
3+
mlSchemasPath).
4+
5+
Note that in order for this to work, the content-database.json file must specify the schema
6+
database that it's associated with. And in most cases, you'll want your own schemas database - not the default Schemas one - so schemas-database.json can be used to create own with a name based on mlAppName.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"database-name": "%%DATABASE%%",
3+
"schema-database": "%%SCHEMAS_DATABASE%%"
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"database-name": "%%SCHEMAS_DATABASE%%"
3+
}

0 commit comments

Comments
 (0)