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
{{ message }}
This repository was archived by the owner on Nov 23, 2023. It is now read-only.
Generates [Knime](http://www.knime.org) workflow node skeleton repository with sample code.
7
+
Generates [KNIME](http://www.knime.org) workflow node skeleton repository with sample code.
8
8
The node executes a Python script which is included in the skeleton.
9
9
The script uses dictionary for dialog options and [Pandas](http://pandas.pydata.org/) DataFrames as input and output.
10
10
11
-
This archetype was made because the instructions to create Knime nodes at https://tech.knime.org/developer-guide, requires interaction with Eclipse wizards. We wanted a way to start and perform node development from the command line and headless.
12
-
Knime nodes are Eclipse plugins. The [Tycho](https://eclipse.org/tycho/) Maven plugin is used to build and handle dependencies of Eclipse plugins, so we use Tycho for Knime node building.
11
+
This archetype was made because the instructions to create KNIME nodes at https://tech.knime.org/developer-guide, requires interaction with Eclipse wizards. We wanted a way to start and perform node development from the command line and headless.
12
+
KNIME nodes are Eclipse plugins. The [Tycho](https://eclipse.org/tycho/) Maven plugin is used to build and handle dependencies of Eclipse plugins, so we use Tycho for KNIME node building.
13
13
14
14
The [Maven archetype](https://maven.apache.org/guides/introduction/introduction-to-archetypes.html) will generate a multi-module project with the following structure:
15
15
16
16
* / - parent Maven project
17
-
* /plugin/ - code for Knime node
18
-
* /tests/ - tests of Knime node
17
+
* /plugin/ - code for KNIME node
18
+
* /tests/ - tests of KNIME node
19
19
* /feature/ - eclipse feature
20
20
* /p2/ - eclipse update site
21
21
22
-
The Knime node will execute a Python script called `/plugin/src/<package>/<python script file name>.py`.
22
+
The KNIME node will execute a Python script called `/plugin/src/<package>/<python script file name>.py`.
23
23
24
24
See https://github.com/3D-e-Chem/knime-python-wrapper for more information how the Python Wrapper node works.
25
25
@@ -28,33 +28,69 @@ See https://github.com/3D-e-Chem/knime-python-wrapper for more information how t
28
28
* Java >=1.8
29
29
* Maven >=3.0
30
30
31
+
The archetype is hosted on a BinTray repository. Maven does not resolve to this BinTray repository by default so it must be added.
32
+
33
+
The ~/.m2/settings.xml should contain the following profile:
4. Enter the name of the package under which your code will be created
43
-
5. Enter the version of your project
44
-
6. Enter the Github organization name or Github username
45
-
7. Enter the Github repository name
46
-
8. Enter the Knime node name
47
-
9. Enter the Python script file name (must be given without .py extension)
48
-
10. Enter the required Python package name
49
-
11. Confirm
50
-
12. Change directory to generated code.
65
+
66
+
The command will ask the following questions:
67
+
68
+
1. Enter the groupId
69
+
2. Enter the artifactId
70
+
3. Enter the name of the package under which your code will be created
71
+
4. Enter the version of your project, use `x.y.z-SNAPSHOT` format (for example `1.2.3-SNAPSHOT`), where x.y.z is [semantic versioning](http://semver.org/).
72
+
5. Enter the GitHub organization name or GitHub username
73
+
6. Enter the GitHub repository name
74
+
7. Enter the KNIME node name
75
+
8. Enter the Python script file name (must be given without .py extension)
76
+
9. Enter the required Python package name (The presence of this Python package will be checked before executing the node)
77
+
10. Confirm
78
+
79
+
The skeleton has been generated in a sub-directory named after the artifactId in the current working directory.
80
+
81
+
The following steps are needed to get a ready to use project.
82
+
83
+
11. Change directory to generated code.
84
+
12. Make skeleton git aware, by running `git init`.
51
85
13. Fill in all placeholders (`[Enter ... here.]`) in
52
86
53
87
* plugin/META-INF/MANIFEST.MF
54
88
* plugin/src/**/*.xml
55
89
* feature/feature.xml
56
90
* p2/category.xml
57
91
92
+
14. Commit all changes and push to GitHub
93
+
15. Optionally, setup Continuous Integration as described in the project README.md file.
58
94
59
95
Further instructions about generated project can be found in it's README.md file.
0 commit comments