For adding required resources and configuring the protractor UI tests, you need to add the package.json (project-root/) and a protractorConfig.js (project-root/src/test/ui-tests/).
You can just copy the files from the random page sources and change your project attributes (name, description, etc) in the package.json
If you already have package.json, extend it with the 'devDependencies' and 'scripts'.
3. Plugin installation spec
For you very first spec you may start by uploading your plugin via UI test. Therefore copy the uploadPlugin.spec.js (project-root/src/test/ui-tests/specs/common/) into your project and change the plugin information, meaning 'artifact id' and 'plugin name' (can be found in the pom.xml).
If you do not bundle an *.obr file, changes it to *.jar
var mavenVersion = universalPluginManager.parseMavenVersionFromPom();
// "randompage" -> plugin <artifactId> from pom.xml
var pluginPath = "./target/randompage-" + mavenVersion + ".obr";
// "Random Page" -> plugin <name> from pom.xml
universalPluginManager.uploadPlugin("Random Page", pluginPath, PLUGIN_UPLOAD_TIMEOUT);
As you only provide one spec file, remove the other specs in the protractorConfig.js
4. Run UI test
Your directory structure should now look like this