Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Downloading: http://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml
- Downloaded: http://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (882 B at 1.7 KB/sec)
- Downloaded: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (368 B at 0.5 KB/sec)
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/3.4.0/openmrs-sdk-maven-plugin-3.4.0.pom
- Downloading: http://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/3.4.0/openmrs-sdk-maven-plugin-3.4.0.pom
- Downloaded: http://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/3.4.0/openmrs-sdk-maven-plugin-3.4.0.pom (9 KB at 15.3 KB/sec)
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/openmrs-sdk/3.4.0/openmrs-sdk-3.4.0.pom
- Downloading: http://repo.maven.apache.org/maven2/org/openmrs/maven/openmrs-sdk/3.4.0/openmrs-sdk-3.4.0.pom
- Downloaded: http://repo.maven.apache.org/maven2/org/openmrs/maven/openmrs-sdk/3.4.0/openmrs-sdk-3.4.0.pom (16 KB at 22.8 KB/sec)
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/3.4.0/openmrs-sdk-maven-plugin-3.4.0.jar
- Downloading: http://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/3.4.0/openmrs-sdk-maven-plugin-3.4.0.jar
- Downloaded: http://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/3.4.0/openmrs-sdk-maven-plugin-3.4.0.jar (293 KB at 79.3 KB/sec)
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Maven Stub Project (No POM) 1
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- openmrs-sdk-maven-plugin:3.4.0:help (default-cli) @ standalone-pom ---
- OpenMRS SDK 3.4.0
- For more info, see SDK documentation: https://wiki.openmrs.org/display/docs/OpenMRS+SDK
- usage: create-module
- Description: Create OpenMRS Reference Application module.
- usage: create-platform-module
- Description: Create OpenMRS Platform module.
- usage: setup
- Description: Setup a new instance of OpenMRS server. It can be used for
- setting up a platform or a distribution. It prompts for any missing, but
- required parameters.
- -DaddDemoData Add demo data when setting up a platform server.
- -DdbDriver Database driver e.g. 'mysql' or 'h2'.
- -DdbPassword Password for the database user.
- -DdbUri Uri for JDBC connection to the database (default
- value matches dbDriver)
- -DdbUser Username for the database (defaults to 'root').
- -Ddistro OpenMRS Distribution to setup in a format
- 'groupId:artifactId:version'. You can skip
- groupId, if it is 'org.openmrs.distro'.
- -Dfile Path to installation.properties file for batch
- setup.
- -Dplatform OpenMRS Platform version to setup e.g. '1.11.5'.
- -DserverId Unique id of a server.
- usage: deploy
- Description: Deploy a module/distribution/platform to a server. It can be
- used for deploying a new artifact or upgrading/downgrading an artifact,
- which was previosly deployed.
- -DartifactId Artifact id of an artifact, which you want to
- deploy.
- -DgroupId Group id of an artifact, which you want to deploy
- (defaults to 'org.openmrs.module').
- -DserverId Unique id of a server.
- -Dversion Version of an artifact, which you want to deploy.
- usage: undeploy
- Description: Undeploy a module from a server.
- -DartifactId Artifact id of a module, which you want to
- undeploy.
- -DgroupId Group id of a module, which you want to undeploy
- (defaults to 'org.openmrs.module').
- -DserverId Unique id of a server.
- usage: reset
- Description: Reset server and its database to the initial state.
- -Dfull If 'true', delete modules installed manually
- (defaults to 'false').
- -Dserverid Unique id of a server.
- usage: delete
- Description: Delete a server and its database.
- -DserverId Unique id of a server.
- usage: run
- Description: Start a server. If it is run from a module/distro/platform
- project, the project will be redeployed before launching.
- -Ddebug Enable remote debugging on the given port (defaults
- to '1044' if empty).
- -Dfork Set to 'false' to disable forking a process for
- running the server (defaults to 'true'). Useful for
- debugging within an IDE without a remote debugger.
- Not that 'false' disables the live-reloading
- feature.
- -Dport Port to use for running the server (defaults to
- '8080').
- -DserverId Unique id of a server.
- usage: watch
- Description: Add a module from the current directory to the list of
- watched projects. It enables the live-reloading feature for a module.
- -DserverId Unique id of a server.
- usage: unwatch
- Description: Remove a module from the list of watched projects. It
- disabled the live-reloading feature for a module.
- -DartifactId Artifact id of a module to unwatch.
- -DgroupId Group id of a module to unwatch. It is optional,
- if artifact id is unambiguous.
- -DserverId Unique id of a server.
- usage: info
- Description: Display server details including the list of watched modules.
- -DserverId Unique id of a server.
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD SUCCESS
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 13.513s
- [INFO] Finished at: Thu Oct 13 00:14:33 EAT 2016
- [INFO] Final Memory: 18M/169M
- [INFO] ------------------------------------------------------------------------
- hillary@hillary-Inspiron-5423:~$ mvn openmrs-sdk:setup
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Maven Stub Project (No POM) 1
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- openmrs-sdk-maven-plugin:3.4.0:setup (default-cli) @ standalone-pom ---
- Setting up a new server...
- Specify server id (-DserverId) (default: 'server'): 1
- You can setup the following servers:
- 1) Distribution
- 2) Platform
- Which one do you choose? [1/2]: 2
- [INFO] artifact org.openmrs.web:openmrs-webapp: checking for updates from openmrs-repo
- [INFO] artifact org.openmrs.web:openmrs-webapp: checking for updates from openmrs-repo-thirdparty
- [INFO] artifact org.openmrs.web:openmrs-webapp: checking for updates from central
- You can deploy the following versions of a platform:
- 1) 2.1.0-SNAPSHOT
- 2) 2.0.0
- 3) 1.12.0
- 4) 1.11.6
- 5) 1.10.4
- 6) 1.9.11
- 7) Other...
- Which one do you choose? [1/2/3/4/5/6/7]: 1
- [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.1.0-SNAPSHOT:war
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty/org/openmrs/web/openmrs-webapp/2.1.0-SNAPSHOT/maven-metadata.xml
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-webapp/2.1.0-SNAPSHOT/maven-metadata.xml
- Downloaded: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-webapp/2.1.0-SNAPSHOT/maven-metadata.xml (999 B at 0.9 KB/sec)
- [INFO] Copying openmrs-webapp-2.1.0-SNAPSHOT.war to /home/hillary/openmrs/1/openmrs-2.1.0-SNAPSHOT.war
- If you want to enable remote debugging by default when running the server,
- specify the port number here (e.g. 1044). Leave blank to disable debugging.
- (Do not do this on a production server) (default: 'no debugging'): 1043
- Which database would you like to use?:
- 1) H2
- 2) MySQL 5.6 (requires pre-installed MySQL 5.6)
- 3) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
- 4) Existing docker container (requires pre-installed Docker)
- Which one do you choose? [1/2/3/4]: 2
- The distribution requires MySQL database. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3306/@DBNAME@'): 'jdbc:mysql://localhost:3306/@DBNAME@'
- Please specify database username (-DdbUser) (default: 'root'): root
- Please specify database password (-DdbPassword) (default: ' '): hillary
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 5:12.062s
- [INFO] Finished at: Thu Oct 13 00:22:17 EAT 2016
- [INFO] Final Memory: 23M/221M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.4.0:setup (default-cli) on project standalone-pom: Failed to setup server: The db name is in a wrong format (allowed alphanumeric, dash and underscore signs): 1' -> [Help 1]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
- hillary@hillary-Inspiron-5423:~$ mvn openmrs-sdk:setup
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Maven Stub Project (No POM) 1
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- openmrs-sdk-maven-plugin:3.4.0:setup (default-cli) @ standalone-pom ---
- Setting up a new server...
- Specify server id (-DserverId) (default: 'server'): 1
- You can setup the following servers:
- 1) Distribution
- 2) Platform
- Which one do you choose? [1/2]: 2
- You can deploy the following versions of a platform:
- 1) 2.1.0-SNAPSHOT
- 2) 2.0.0
- 3) 1.12.0
- 4) 1.11.6
- 5) 1.10.4
- 6) 1.9.11
- 7) Other...
- Which one do you choose? [1/2/3/4/5/6/7]: 1
- [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.1.0-SNAPSHOT:war
- [INFO] Copying openmrs-webapp-2.1.0-SNAPSHOT.war to /home/hillary/openmrs/1/openmrs-2.1.0-SNAPSHOT.war
- If you want to enable remote debugging by default when running the server,
- specify the port number here (e.g. 1044). Leave blank to disable debugging.
- (Do not do this on a production server) (default: 'no debugging'): 1042
- Which database would you like to use?:
- 1) H2
- 2) MySQL 5.6 (requires pre-installed MySQL 5.6)
- 3) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
- 4) Existing docker container (requires pre-installed Docker)
- Which one do you choose? [1/2/3/4]: 1
- [INFO] artifact com.h2database:h2: checking for updates from openmrs-repo
- [INFO] artifact com.h2database:h2: checking for updates from openmrs-repo-thirdparty
- [INFO] artifact com.h2database:h2: checking for updates from central
- [INFO] Configured Artifact: com.h2database:h2:1.4.190:jar
- [INFO] Copying h2-1.4.190.jar to /home/hillary/openmrs/1/h2-1.4.190.jar
- The specified database openmrs-1 does not exist and it will be created for you.
- Note: JDK 1.8 is needed for platform version 2.1.0-SNAPSHOT.
- Which JDK would you like to use to run this server?:
- 1) JAVA_HOME (currently: /usr/lib/jvm/java-8-oracle/jre)
- 2) Other...
- Which one do you choose? [1/2]: 1
- [INFO] Server configured successfully, path: /home/hillary/openmrs/1
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD SUCCESS
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 50.019s
- [INFO] Finished at: Thu Oct 13 00:23:59 EAT 2016
- [INFO] Final Memory: 22M/215M
- [INFO] ------------------------------------------------------------------------
- hillary@hillary-Inspiron-5423:~$ mvn openmrs-sdk:create-project
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Maven Stub Project (No POM) 1
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- openmrs-sdk-maven-plugin:3.4.0:create-project (default-cli) @ standalone-pom ---
- What kind of project would you like to create?:
- 1) Platform module
- 2) Reference Application module
- 3) Open Web App
- Which one do you choose? [1/2/3]: 1
- Module id uniquely identifies your module in the OpenMRS world.
- It is advised to consult your module id on https://talk.openmrs.org
- to eliminate possible collisions.
- Module id must consists of lowercase letters, must start from
- a letter, can contain alphanumerics and dots, e.g. webservices.rest,
- metadatasharing, reporting, htmlformentry.
- Please specify module id (default: 'basicexample'): basicexample2
- Module name is a user friendly name displayed to the user
- instead of the module id.
- By convention it is a module id with spaces between words.
- Please specify module name (default: 'Basicexample2'): Basicexample2
- Describe your module in a few sentences (default: 'no description'): No description
- GroupId, artifactId and version combined together identify
- your module in the maven repository.
- By convention OpenMRS modules use 'org.openmrs.module' as a groupId
- (must follow convention for naming java packages) and the module id
- as an artifactId. The version should follow maven versioning convention,
- which in short is: major.minor.maintenance(-SNAPSHOT).
- Please specify groupId (default: 'org.openmrs.module'): org.openmrs.module
- Please specify initial version (default: '1.0.0-SNAPSHOT'): 1.0.0-SNAPSHORT
- What is the lowest version of the platform (-Dplatform) you want to support? (default: '1.11.6'): 1.11.6
- [INFO] Archetype: openmrs-sdk-archetype-module-platform
- [INFO] Generating project in Batch mode
- [INFO] Archetype defined by properties
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.jar
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.jar
- Downloading: http://repo.maven.apache.org/maven2/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.jar
- Downloaded: http://repo.maven.apache.org/maven2/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.jar (25 KB at 13.8 KB/sec)
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.pom
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.pom
- Downloading: http://repo.maven.apache.org/maven2/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.pom
- Downloaded: http://repo.maven.apache.org/maven2/org/openmrs/maven/archetypes/openmrs-sdk-archetype-module-platform/3.4.0/openmrs-sdk-archetype-module-platform-3.4.0.pom (2 KB at 1.2 KB/sec)
- [INFO] ----------------------------------------------------------------------------
- [INFO] Using following parameters for creating project from Archetype: openmrs-sdk-archetype-module-platform:3.4.0
- [INFO] ----------------------------------------------------------------------------
- [INFO] Parameter: groupId, Value: org.openmrs.module
- [INFO] Parameter: artifactId, Value: basicexample2
- [INFO] Parameter: version, Value: 1.0.0-SNAPSHORT
- [INFO] Parameter: package, Value: org.openmrs.module.basicexample2
- [INFO] Parameter: packageInPathFormat, Value: org/openmrs/module/basicexample2
- [INFO] Parameter: moduleClassnamePrefix, Value: Basicexample2
- [INFO] Parameter: moduleName, Value: Basicexample2
- [INFO] Parameter: moduleAuthor, Value: hillary
- [INFO] Parameter: moduleDescription, Value: No description
- [INFO] Parameter: groupId, Value: org.openmrs.module
- [INFO] Parameter: version, Value: 1.0.0-SNAPSHORT
- [INFO] Parameter: package, Value: org.openmrs.module.basicexample2
- [INFO] Parameter: openmrsPlatformVersion, Value: 1.11.6
- [INFO] Parameter: artifactId, Value: basicexample2
- [INFO] Parent element not overwritten in /home/hillary/basicexample2/api/pom.xml
- [INFO] Parent element not overwritten in /home/hillary/basicexample2/omod/pom.xml
- [INFO] project created from Archetype in dir: /home/hillary/basicexample2
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD SUCCESS
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 3:29.874s
- [INFO] Finished at: Thu Oct 13 00:27:55 EAT 2016
- [INFO] Final Memory: 19M/228M
- [INFO] ------------------------------------------------------------------------
- hillary@hillary-Inspiron-5423:~$ cd basicexample
- hillary@hillary-Inspiron-5423:~/basicexample$ mvn clean install openmrs-sdk:run
- [INFO] Scanning for projects...
- [INFO] ------------------------------------------------------------------------
- [INFO] Reactor Build Order:
- [INFO]
- [INFO] Basic Example Module
- [INFO] Basic Example Module API
- [INFO] Basic Example Module OMOD
- Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Basic Example Module 1.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ basicexample ---
- [INFO]
- [INFO] --- maven-install-plugin:2.3:install (default-install) @ basicexample ---
- [INFO] Installing /home/hillary/basicexample/pom.xml to /home/hillary/.m2/repository/org/openmrs/module/basicexample/1.0-SNAPSHOT/basicexample-1.0-SNAPSHOT.pom
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Basic Example Module API 1.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ basicexample-api ---
- [INFO] Deleting /home/hillary/basicexample/api/target
- [INFO]
- [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ basicexample-api ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 7 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ basicexample-api ---
- [INFO] Compiling 6 source files to /home/hillary/basicexample/api/target/classes
- [INFO]
- [INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ basicexample-api ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] skip non existing resourceDirectory /home/hillary/basicexample/api/src/test/resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ basicexample-api ---
- [INFO] Compiling 1 source file to /home/hillary/basicexample/api/target/test-classes
- [INFO]
- [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ basicexample-api ---
- [INFO] Surefire report directory: /home/hillary/basicexample/api/target/surefire-reports
- -------------------------------------------------------
- T E S T S
- -------------------------------------------------------
- Running org.openmrs.module.basicexample.api.BasicExampleServiceTest
- Tests run: 4, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 13.574 sec <<< FAILURE!
- Results :
- Failed tests: setDeathtoFuture(org.openmrs.module.basicexample.api.BasicExampleServiceTest): Expected exception: org.openmrs.api.APIException
- Tests in error:
- setBirthdayToFuture(org.openmrs.module.basicexample.api.BasicExampleServiceTest): Unexpected exception, expected<org.openmrs.api.APIException> but was<junit.framework.AssertionFailedError>
- Tests run: 4, Failures: 1, Errors: 1, Skipped: 0
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Skipping Basic Example Module
- [INFO] This project has been banned from the build due to previous failures.
- [INFO] ------------------------------------------------------------------------
- [INFO] ------------------------------------------------------------------------
- [INFO] Reactor Summary:
- [INFO]
- [INFO] Basic Example Module .............................. SUCCESS [0.474s]
- [INFO] Basic Example Module API .......................... FAILURE [20.613s]
- [INFO] Basic Example Module OMOD ......................... SKIPPED
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 24.123s
- [INFO] Finished at: Thu Oct 13 00:29:42 EAT 2016
- [INFO] Final Memory: 34M/162M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project basicexample-api: There are test failures.
- [ERROR]
- [ERROR] Please refer to /home/hillary/basicexample/api/target/surefire-reports for the individual test results.
- [ERROR] -> [Help 1]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
- [ERROR]
- [ERROR] After correcting the problems, you can resume the build with the command
- [ERROR] mvn <goals> -rf :basicexample-api
- hillary@hillary-Inspiron-5423:~/basicexample$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement