Maven errors when compiling on Windows

Hi @dmytro_trifonov; I am failing to understand a few concepts here . I have done this and the other instructions , as per the guide. I am running Windows 7 SP1 , and seems there are no clear instructions for this OS. I have even changed the platform that I was using - from Netbeans to Eclipse; but , still get the very same error messages. There is something that I am not doing correctly, but the question is "what is it that I am not doing correct?" Find attached error messages for the eclipse environment , after cloning OpenMRS-core from the GitHub.

Run As Maven Clean

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenMRS 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs ---
[INFO] Deleting C:\OpenMRS\openmrs\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-tools 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs-tools ---
[INFO] Deleting C:\OpenMRS\openmrs\tools\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-test 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs-test ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-api 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs-api ---
[INFO] Deleting C:\OpenMRS\openmrs\api\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-web 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs-web ---
[INFO] Deleting C:\OpenMRS\openmrs\web\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-webapp 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs-webapp ---
[INFO] Deleting C:\OpenMRS\openmrs\webapp\target
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OpenMRS ............................................ SUCCESS [  0.399 s]
[INFO] openmrs-tools ...................................... SUCCESS [  0.061 s]
[INFO] openmrs-test ....................................... SUCCESS [  0.002 s]
[INFO] openmrs-api ........................................ SUCCESS [  0.039 s]
[INFO] openmrs-web ........................................ SUCCESS [  0.020 s]
[INFO] openmrs-webapp ..................................... SUCCESS [  0.339 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.068 s
[INFO] Finished at: 2015-07-21T22:17:22+02:00
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------

Run As Maven generate source

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenMRS 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs
[INFO] Storing buildNumber: 2d5bd7 at timestamp: 1437509918759
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-tools 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-tools ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-tools ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-test 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-test ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-test ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-api 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-api ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-api ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-web 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-web ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-web ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-webapp 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-webapp ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-webapp ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OpenMRS ............................................ SUCCESS [  2.567 s]
[INFO] openmrs-tools ...................................... SUCCESS [  0.003 s]
[INFO] openmrs-test ....................................... SUCCESS [  0.001 s]
[INFO] openmrs-api ........................................ SUCCESS [  0.022 s]
[INFO] openmrs-web ........................................ SUCCESS [  0.002 s]
[INFO] openmrs-webapp ..................................... SUCCESS [  0.001 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.800 s
[INFO] Finished at: 2015-07-21T22:18:40+02:00
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------

Run As Maven Install

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenMRS 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs
[INFO] Storing buildNumber: 2d5bd7 at timestamp: 1437510039708
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs ---
[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:test-jar (default) @ openmrs ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\OpenMRS\openmrs\target\openmrs-1.12.0-SNAPSHOT-tests.jar
[INFO] 
[INFO] --- license-maven-plugin:2.6:check (default) @ openmrs ---
[INFO] Checking licenses...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OpenMRS ............................................ FAILURE [  3.581 s]
[INFO] openmrs-tools ...................................... SKIPPED
[INFO] openmrs-test ....................................... SKIPPED
[INFO] openmrs-api ........................................ SKIPPED
[INFO] openmrs-web ........................................ SKIPPED
[INFO] openmrs-webapp ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.796 s
[INFO] Finished at: 2015-07-21T22:20:41+02:00
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[**ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.6:check (default) on project openmrs: Resource com.mycila.maven.plugin.license.templates.APACHE-2.txt not found in file system, classpath or URL: no protocol: com.mycila.maven.plugin.license.templates.APACHE-2.txt -> [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**

Run As Maven test

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenMRS 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs
[INFO] Storing buildNumber: 2d5bd7 at timestamp: 1437510085179
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-tools 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-tools ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-tools ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-tools ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-tools ---
[INFO] Compiling 1 source file to C:\OpenMRS\openmrs\tools\target\classes
[INFO] -------------------------------------------------------------
**[ERROR] COMPILATION ERROR :** 
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
  C:\Program Files\Java\jre1.7.0_45\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OpenMRS ............................................ SUCCESS [  2.048 s]
[INFO] openmrs-tools ...................................... FAILURE [  0.929 s]
[INFO] openmrs-test ....................................... SKIPPED
[INFO] openmrs-api ........................................ SKIPPED
[INFO] openmrs-web ........................................ SKIPPED
[INFO] openmrs-webapp ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.191 s
[INFO] Finished at: 2015-07-21T22:21:26+02:00
[INFO] Final Memory: 9M/21M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project openmrs-tools: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre1.7.0_45\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[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 :openmrs-tools

Run As Maven build…

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloaded: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-metadata.xml (13 KB at 7.7 KB/sec)
[INFO] Downloaded: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/mojo/maven-metadata.xml (20 KB at 10.7 KB/sec)
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 4.5 KB/sec)
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 6.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OpenMRS ............................................ SKIPPED
[INFO] openmrs-tools ...................................... SKIPPED
[INFO] openmrs-test ....................................... SKIPPED
[INFO] openmrs-api ........................................ SKIPPED
[INFO] openmrs-web ........................................ SKIPPED
[INFO] openmrs-webapp ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.883 s
[INFO] Finished at: 2015-07-21T22:22:49+02:00
[INFO] Final Memory: 13M/32M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'Jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\mashinc\.m2\repository), openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException**



[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-webapp 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:8.1.16.v20140903:run (default-cli) > test-compile @ openmrs-webapp >>>
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-webapp ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs\webapp
[INFO] Storing buildNumber: 2d5bd7 at timestamp: 1437510875350
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\OpenMRS\openmrs\webapp
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-webapp ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] Copying 1 resource to ../jetty
[INFO] 
[INFO] --- maven-antrun-plugin:1.4:run (default) @ openmrs-webapp ---
project.artifactId
[INFO] Executing tasks
    [unzip] Expanding: C:\OpenMRS\openmrs\webapp\src\main\resources\liquibase-demo-data.zip into C:\OpenMRS\openmrs\webapp\target\classes
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-webapp ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-webapp ---
[INFO] Compiling 3 source files to C:\OpenMRS\openmrs\webapp\target\test-classes
[INFO] 
[INFO] <<< jetty-maven-plugin:8.1.16.v20140903:run (default-cli) < test-compile @ openmrs-webapp <<<
[INFO] 
[INFO] --- jetty-maven-plugin:8.1.16.v20140903:run (default-cli) @ openmrs-webapp ---
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-util/8.1.16.v20140903/jetty-util-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-util/8.1.16.v20140903/jetty-util-8.1.16.v20140903.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-webapp/8.1.16.v20140903/jetty-webapp-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-webapp/8.1.16.v20140903/jetty-webapp-8.1.16.v20140903.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.9/maven-plugin-tools-api-2.9.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.9/maven-plugin-tools-api-2.9.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-plus/8.1.16.v20140903/jetty-plus-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-plus/8.1.16.v20140903/jetty-plus-8.1.16.v20140903.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-jndi/8.1.16.v20140903/jetty-jndi-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-jndi/8.1.16.v20140903/jetty-jndi-8.1.16.v20140903.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-jmx/8.1.16.v20140903/jetty-jmx-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-jmx/8.1.16.v20140903/jetty-jmx-8.1.16.v20140903.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-annotations/8.1.16.v20140903/jetty-annotations-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-annotations/8.1.16.v20140903/jetty-annotations-8.1.16.v20140903.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-websocket/8.1.16.v20140903/jetty-websocket-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-websocket/8.1.16.v20140903/jetty-websocket-8.1.16.v20140903.pom
[INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/eclipse/jetty/jetty-jsp/8.1.16.v20140903/jetty-jsp-8.1.16.v20140903.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-jsp/8.1.16.v20140903/jetty-jsp-8.1.16.v20140903.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.740 s
[INFO] Finished at: 2015-07-21T22:34:42+02:00
[INFO] Final Memory: 24M/61M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.16.v20140903:run (default-cli) on project openmrs-webapp: Execution default-cli of goal org.mortbay.jetty:jetty-maven-plugin:8.1.16.v20140903:run failed: Plugin org.mortbay.jetty:jetty-maven-plugin:8.1.16.v20140903 or one of its dependencies could not be resolved: Failed to collect dependencies at org.mortbay.jetty:jetty-maven-plugin:jar:8.1.16.v20140903 -> org.eclipse.jetty:jetty-util:jar:8.1.16.v20140903: Failed to read artifact descriptor for org.eclipse.jetty:jetty-util:jar:8.1.16.v20140903: Could not transfer artifact org.eclipse.jetty:jetty-util:pom:8.1.16.v20140903 from/to central (https://repo.maven.apache.org/maven2): Unexpected response code for CONNECT: 400 -> [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/PluginResolutionException****

In some of your errors, maven cannot locate you java compiler. if JAVA_HOME and PATH are set properly and you still get this error, I will advice you try these commands from comand line first and see if they give the same error. It might just be that the m2e plugin you are using is faulty.

These are the settings in my JAVA_HOME C:\Program Files\Java\jdk1.8.0_05 JAVA_RE C:\Program Files\Java\jre1.7.0_45. Then, if its a faulty m2e plugin, how can I correct this.

This is the results of the command line

C:\OpenMRS\openmrs>mvn omrs-sdk:setup
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no
 dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-map
ping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its depende
ncies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:j
ar:1.0.0 in http://mavenrepo.openmrs.org/nexus/content/repositories/public was c
ached in the local repository, resolution will not be reattempted until the upda
te interval of openmrs-repo has elapsed or updates are forced
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven
-metadata.xml
Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/
openmrs/maven/plugins/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/mave
n-metadata.xml
Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/
apache/maven/plugins/maven-metadata.xml
Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/
codehaus/mojo/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metada
ta.xml
[WARNING] Could not transfer metadata org.openmrs.maven.plugins/maven-metadata.x
ml from/to central (https://repo.maven.apache.org/maven2): Failed to transfer fi
le: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadat
a.xml. Return code is: 400 , ReasonPhrase:Bad Request.
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xm
l from/to central (https://repo.maven.apache.org/maven2): Failed to transfer fil
e: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.
xml. Return code is: 400 , ReasonPhrase:Bad Request.
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/
to central (https://repo.maven.apache.org/maven2): Failed to transfer file: http
s://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml. Return co
de is: 400 , ReasonPhrase:Bad Request.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenMRS ............................................ SKIPPED
[INFO] openmrs-tools ...................................... SKIPPED
[INFO] openmrs-test ....................................... SKIPPED
[INFO] openmrs-api ........................................ SKIPPED
[INFO] openmrs-web ........................................ SKIPPED
[INFO] openmrs-webapp ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.981 s
[INFO] Finished at: 2015-07-22T10:01:11+02:00
[INFO] Final Memory: 13M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'omrs-sdk' in the current project and in the
plugin groups [org.openmrs.maven.plugins, org.apache.maven.plugins, org.codehaus
.mojo] available from the repositories [local (C:\Users\mashinc\.m2\repository),
 openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public),
central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundF
orPrefixException

use this command mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk from the wiki to install the sdk. This worked well for me. I will advice you delete your .m2/repository before running the commands to avoid maven using broken dependencies and just download them.

but if you are trying to build the openmrs-core. use maven clean install from the project parent directory

C:\OpenMRS\openmrs>mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-
sdk
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
Downloading: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/open
mrs-sdk-maven-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-mave
n-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven
2): Failed to transfer file: https://repo.maven.apache.org/maven2/org/openmrs/ma
ven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml. Return code is: 400 , R
easonPhrase:Bad Request.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenMRS ............................................ SKIPPED
[INFO] openmrs-tools ...................................... SKIPPED
[INFO] openmrs-test ....................................... SKIPPED
[INFO] openmrs-api ........................................ SKIPPED
[INFO] openmrs-web ........................................ SKIPPED
[INFO] openmrs-webapp ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.300 s
[INFO] Finished at: 2015-07-22T10:25:55+02:00
[INFO] Final Memory: 6M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin 'org.openmrs.maven.plugins:openmrs-sd
k-maven-plugin' from the repositories [local (C:\Users\mashinc\.m2\repository),
openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), c
entral (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin r
epository -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionR
esolutionException
C:\OpenMRS\openmrs>mvn clean-install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OpenMRS
[INFO] openmrs-tools
[INFO] openmrs-test
[INFO] openmrs-api
[INFO] openmrs-web
[INFO] openmrs-webapp
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenMRS 1.12.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenMRS ............................................ FAILURE [  0.000 s]
[INFO] openmrs-tools ...................................... SKIPPED
[INFO] openmrs-test ....................................... SKIPPED
[INFO] openmrs-api ........................................ SKIPPED
[INFO] openmrs-web ........................................ SKIPPED
[INFO] openmrs-webapp ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.220 s
[INFO] Finished at: 2015-07-22T10:27:58+02:00
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "clean-install". You must specify a valid lifecy
cle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<p
lugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: va
lidate, initialize, generate-sources, process-sources, generate-resources, proce
ss-resources, compile, process-classes, generate-test-sources, process-test-sour
ces, generate-test-resources, process-test-resources, test-compile, process-test
-classes, test, prepare-package, package, pre-integration-test, integration-test
, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean,
pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException

mvn clean install not clean-install, there is no ‘-’ in the command

1 Like

C:\OpenMRS\openmrs>mvn clean-install [INFO] Scanning for projects… [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] OpenMRS [INFO] openmrs-tools [INFO] openmrs-test [INFO] openmrs-api [INFO] openmrs-web [INFO] openmrs-webapp [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building OpenMRS 1.12.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … FAILURE [ 0.000 s] [INFO] openmrs-tools … SKIPPED [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.220 s [INFO] Finished at: 2015-07-22T10:27:58+02:00 [INFO] Final Memory: 6M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Unknown lifecycle phase “clean-install”. You must specify a valid lifecy cle phase or a goal in the format : or :[:]:. Available lifecycle phases are: va lidate, initialize, generate-sources, process-sources, generate-resources, proce ss-resources, compile, process-classes, generate-test-sources, process-test-sour ces, generate-test-resources, process-test-resources, test-compile, process-test -classes, test, prepare-package, package, pre-integration-test, integration-test , post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase NotFoundException

C:\OpenMRS\openmrs>mvn clean install [INFO] Scanning for projects… [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] OpenMRS [INFO] openmrs-tools [INFO] openmrs-test [INFO] openmrs-api [INFO] openmrs-web [INFO] openmrs-webapp [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building OpenMRS 1.12.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ openmrs — [INFO] Deleting C:\OpenMRS\openmrs\target [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs — [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: C:\OpenMRS\openmrs [INFO] Storing buildNumber: 2d5bd7 at timestamp: 1437553920333 [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: C:\OpenMRS\openmrs [INFO] Storing buildScmBranch: UNKNOWN [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs

[INFO] [INFO] — maven-jar-plugin:2.3.2:test-jar (default) @ openmrs — [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: C:\OpenMRS\openmrs\target\openmrs-1.12.0-SNAPSHOT-tests.jar

[INFO] [INFO] — license-maven-plugin:2.6:check (default) @ openmrs — [INFO] Checking licenses… [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ openmrs — [INFO] Installing C:\OpenMRS\openmrs\pom.xml to C:\Users\mashinc.m2\repository
org\openmrs\openmrs\1.12.0-SNAPSHOT\openmrs-1.12.0-SNAPSHOT.pom [INFO] Installing C:\OpenMRS\openmrs\target\openmrs-1.12.0-SNAPSHOT-tests.jar to C:\Users\mashinc.m2\repository\org\openmrs\openmrs\1.12.0-SNAPSHOT\openmrs-1.1 2.0-SNAPSHOT-tests.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building openmrs-tools 1.12.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ openmrs-tools — [INFO] Deleting C:\OpenMRS\openmrs\tools\target [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs-tools — [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs -tools — [INFO] [INFO] — maven-resources-plugin:2.4:resources (default-resources) @ openmrs-to ols — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] [INFO] — maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-tools -

[INFO] Compiling 1 source file to C:\OpenMRS\openmrs\tools\target\classes [INFO] [INFO] — maven-resources-plugin:2.4:testResources (default-testResources) @ op enmrs-tools — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\OpenMRS\openmrs\tools\src\test\res ources [INFO] [INFO] — maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs -tools — [INFO] No sources to compile [INFO] [INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ openmrs-tools — Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ apache/maven/surefire/maven-surefire-common/2.18.1/maven-surefire-common-2.18.1. pom Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/mave n-surefire-common/2.18.1/maven-surefire-common-2.18.1.pom Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.pom Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/sure fire-api/2.18.1/surefire-api-2.18.1.pom Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ apache/maven/maven-toolchain/2.2.1/maven-toolchain-2.2.1.pom Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolcha in/2.2.1/maven-toolchain-2.2.1.pom Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations- 3.3.pom Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/ maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SUCCESS [ 15.972 s] [INFO] openmrs-tools … FAILURE [ 3.821 s] [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.013 s [INFO] Finished at: 2015-07-22T10:32:15+02:00 [INFO] Final Memory: 15M/39M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2. 18.1:test (default-test) on project openmrs-tools: Execution default-test of goa l org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: Plugin org. apache.maven.plugins:maven-surefire-plugin:2.18.1 or one of its dependencies cou ld not be resolved: Failed to collect dependencies at org.apache.maven.plugins:m aven-surefire-plugin:jar:2.18.1 -> org.apache.maven.surefire:maven-surefire-comm on:jar:2.18.1: Failed to read artifact descriptor for org.apache.maven.surefire: maven-surefire-common:jar:2.18.1: Could not transfer artifact org.apache.maven.s urefire:maven-surefire-common:pom:2.18.1 from/to central (https://repo.maven.apa che.org/maven2): Failed to transfer file: https://repo.maven.apache.org/maven2/o rg/apache/maven/surefire/maven-surefire-common/2.18.1/maven-surefire-common-2.18 .1.pom. Return code is: 400 , ReasonPhrase:Bad Request. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti onException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :openmrs-tools

C:\OpenMRS\openmrs>

Hi @raff; I have started a new thread as you advised, here is the output

C:\Users\mashinc>mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/open
mrs-sdk-maven-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-mave
n-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven
2): Failed to transfer file: https://repo.maven.apache.org/maven2/org/openmrs/ma
ven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml. Return code is: 400 , R
easonPhrase:Bad Request.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.515 s
[INFO] Finished at: 2015-07-26T13:33:51+02:00
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin 'org.openmrs.maven.plugins:openmrs-sd
k-maven-plugin' from the repositories [local (C:\Users\mashinc\.m2\repository),
**openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), c**
**entral (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin r**
**epository -> [Help 1]**
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionR
esolutionException

The other thing is if I am to go to the said website http://mavenrepo.openmrs.org/nexus/content/repositories/public there seem not be the related folders / plugins referred to in the mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk

After running the new script

C:\Users\mashinc>mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk

Here is the output.

[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/open
mrs-sdk-maven-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-mave
n-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven
2): Failed to transfer file: https://repo.maven.apache.org/maven2/org/openmrs/ma
ven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml. Return code is: 400 , R
easonPhrase:Bad Request.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.515 s
[INFO] Finished at: 2015-07-26T13:33:51+02:00
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin 'org.openmrs.maven.plugins:openmrs-sd
k-maven-plugin' from the repositories [local (C:\Users\mashinc\.m2\repository),
openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), c
entral (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin r
epository -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionR
esolutionException

I have gone to check on the website http://mavenrepo.openmrs.org/nexus/content/repositories/public), central (https://repo.maven.apache.org/maven2 and definitely the files / folders does not exist for the it to download. strong text

Hi all, Am facing the challenge using the maven to create a module like the above conversation is stating, was the problem solved members and could someone provide us with the link to correct the same issue, cc @chetenm ,@ivange94