You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll see logging like this that lets you know that the modules and data from the example-dependency zip
27
24
will be included when the application is deployed:
@@ -32,7 +29,6 @@ Found mlBundle configuration, will extract all of its dependencies to build/mlBu
32
29
Finished extracting mlBundle dependencies
33
30
Module paths including mlBundle paths: [/Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/build/mlBundle/example-dependency/ml-modules, /Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/src/main/ml-modules]
34
31
Data paths including mlBundle paths: [/Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/build/mlBundle/example-dependency/ml-data, /Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/src/main/ml-data]
35
-
Plugin paths including mlBundle paths: [/Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/build/mlBundle/example-dependency/ml-plugins, /Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/src/main/ml-plugins]
36
32
Schema paths including mlBundle paths: [/Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/build/mlBundle/example-dependency/ml-schemas, /Users/rrudin/dev/workspace/ml-gradle/examples/dependency-project/ml-gradle-client-project/src/main/ml-schemas]
37
33
:mlPrepareBundles (Thread[Task worker for ':',5,main]) completed. Took 0.059 secs.
38
34
```
@@ -60,16 +56,6 @@ Shutting down ExecutorService
60
56
Writing 2 documents to MarkLogic; port: 8030
61
57
```
62
58
63
-
And also some logging like this that indicates that a system plugin was installed:
64
-
65
-
```
66
-
Writing plugin zip file to URI: /com.marklogic/plugins/varianceplugin.zip
67
-
Writing content for /com.marklogic/plugins/varianceplugin.zip
68
-
Installing plugin with scope 'native' from URI: /com.marklogic/plugins/varianceplugin.zip
You can then use qconsole to verify that the following documents were inserted:
88
74
89
-
- In ml-gradle-client-modules: /example.sjs (in addition to the modules included by this project: /my-lib.xqy and /Default/ml-gradle-client/rest-api/properties.xml)
90
-
- In ml-gradle-client-schemas: /tde/template1.json (in addition to the schema file included in this project: /tde/my-template.json)
91
-
- In ml-gradle-client-content: /example/data1.json and /example/data2.json (in addition to the data files including
92
-
in this project: /testdata/test1.json, /testdata/test2.json, and /testdata/test3.json)
93
-
- In Extensions: /native/scope.xml, /native/varianceplugin/libvarianceplugin.dylib, and /native/varianceplugin/manifest.xml
94
-
95
-
Note that ml-gradle-client-content also contains the plugin zip file at /com.marklogic/plugins/varianceplugin.zip . If
96
-
you don't want that to remain, you can use a custom Gradle task to delete it after the deployment, or use the
97
-
mlPluginDatabaseName property to store the zip file in a different database.
98
-
99
-
You can also verify that the plugin was installed correctly by running the following task:
100
-
101
-
gradle testPlugin
102
-
103
-
Which should return:
104
-
105
-
```
106
-
> Task :testPlugin
107
-
66.6666666666667
108
-
```
75
+
- In ml-gradle-client-modules: `/example.sjs` (in addition to the modules included by this project: `/my-lib.xqy` and `/Default/ml-gradle-client/rest-api/properties.xml`).
76
+
- In ml-gradle-client-schemas: `/tde/template1.json` (in addition to the schema file included in this project: `/tde/my-template.json`).
77
+
- In ml-gradle-client-content: `/example/data1.json` and `/example/data2.json` (in addition to the data files including
78
+
in this project: `/testdata/test1.json`, `/testdata/test2.json`, and `/testdata/test3.json`).
109
79
110
80
See [Loading data](https://github.com/marklogic/ml-app-deployer/wiki/Loading-data) for more
111
81
information on configuring how data is loaded during a deployment.
112
82
83
+
## Provider project with system plugin
113
84
114
-
## Deploying and verifying the DHF project
115
-
116
-
The DHF project is deployed the same way as the ml-gradle project, though you'll first need to run hubInit to
117
-
initialize the project (this is to avoid adding a bunch of DHF files to version control that aren't needed for
118
-
the purposes of this example):
119
-
120
-
cd ../dhf-client-project
121
-
gradle -i mlDeploy
122
-
123
-
You'll see the same logging as shown above for the ml-gradle project. And likewise, you can use qconsole
124
-
to verify that the following documents were inserted:
125
-
126
-
- In dhf-client-MODULES: /example.sjs
127
-
- In dhf-client-FINAL: /example/data1.json, /example/data2.json
128
-
129
-
Note that in a DHF project, the final database is equivalent to the default content database in an ml-gradle
130
-
project. Thus, data is loaded by default to the final database. This can be overridden via the
131
-
mlDataDatabaseName property.
132
-
85
+
The `./provider-with-plugin-project` directory is included as a reference for including a MarkLogic system plugin
86
+
in a bundle. Building this plugin requires a C++ compiler, so it is not included in `./provider-project`.
0 commit comments