The problem is that i don’t think that mvn command line tool sees the STS or eclipse settings. I search on the net and I found out that if you want to change the jvm, mvn is going to use, you have to change the pom file.
P.N. From: Michael Aro Sent: Monday, March 26, 2012 9:54 PM To: [email protected] Subject: Re: [OPENMRS-DEV] downloading the app in eclipse or STS Please do not modify the POM.xml file. What you should do: 1. Use jdk1.6.0_23 and above and configure the setting through Window >> Preferences >> Java >> Compiler >> and set the Compliance level to 1.6. 2. Configure the Runtime Environment through Window >> Preferences >> Java >> Installed JREs >> and change the installed JRE to jdk1.6.0_xx by selecting it and clicking the EDIT button. Make sure the checkbox is selected. Save and continue. M. 2012/3/26 P Neiros <[email protected]> I have installed openjdk 6 and 7. I am not sure which one mvn uses by default. Today I changed the main pom and I add the follwing lines: <verbose>true</verbose> <fork>true</fork> <executable>path to oracle jdk1.6.0_31</executable> <compilerVersion>1.6</compilerVersion> but I get the same errors. From the STS I use the oracle jdk 1.6.0_31 and the maven install works and it produces a war. P.N. Στις 24/03/2012 08:29 μμ, ο/η Michael Aro έγραψε: What version of JDK are you using? M. 2012/3/24 P Neiros <[email protected]> Hello, I run Maven>Update Project Configuration... but it hasn't change anything. I run mvn package from the root of the project in the workspace and I got the following error: However the project builds from maven build from the menu Run as ... [INFO] [war:war {execution: default-war}] [INFO] Packaging webapp [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation ---- Debugging information ---- message : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation class : org.apache.maven.plugin.war.util.WebappStructure required-type : java.util.LinkedHashMap path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/locations/entry/org.apache.maven.model.InputLocation line number : 1004 ------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Trace com.thoughtworks.xstream.converters.ConversionException: org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation ---- Debugging information ---- message : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.apache.maven.model.InputLocation : org.apache.maven.model.InputLocation class : org.apache.maven.plugin.war.util.WebappStructure required-type : java.util.LinkedHashMap path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/locations/entry/org.apache.maven.model.InputLocation line number : 1004 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89) Στις 24/03/2012 04:54 πμ, ο/η Anuruddha Premalal έγραψε: Hi P Neiros, To get rid of those errors you can update the Project Configurations.(Maven>Update Project Configuration...) In the new version of eclipse Indigo you cannot see the option "maven package".In that case try to run "mvn package" using command line as Ben Wolfe suggested.There are couple of videos on the OpenMRS YouTube channel which will be helpful. http://www.youtube.com/OpenMRS http://maven.apache.org/guides/getting-started/index.html On Sat, Mar 24, 2012 at 3:10 AM, P Neiros <[email protected]> wrote: I have produced succesfully the war file which works from the maven build command in the run as sub-menu. My question is why the eclipse shows errors in the webapp module and particularly in the webapp/pom.xml? how can i run "maven package"? P.Neiros Στις 22/03/2012 06:55 μμ, ο/η Ben Wolfe έγραψε: Can you run "mavan package" successfully at hte top level using either command line or inside of eclipse? Why did the plugin fail to execute? Is there a stacktrace somewhere? Ben On Wed, Mar 21, 2012 at 7:56 PM, P Neiros <[email protected]> wrote: Hello there, I am interested in participating in your project as a student in the framework of GSoC2012. I have downloaded your app three times. Two in eclipse indigo and one in STS 2.9.0. In the first two installations (eclipse and STS) i got errors on 2 or 3 subprojects (openmrs-tools, webapp, etc). However the first eclipse installation (onwindows) had managed to produce a war that works with the maven build command in the run as menu. In the last instalation (eclipse under ubuntu) i got errors only in jsps and the pom of webdata. The pom file shows the following error: Execution default-cli of goal org.apache.maven.plugins:maven-resources-plugin:2.4:copy-resources failed. (org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war:default-war:package) Have you got an idea what this error is? The plugins exist at the maven repository. Thank you, P.Neiros. _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l] -------------------------------------------------------------------- Click here to unsubscribe from OpenMRS Developers' mailing list ---------------------------------------------------------------------- Click here to unsubscribe from OpenMRS Developers' mailing list -- Anuruddha Premalala(STMIEEE) Department of Electronic and Telecommunication Engineering University of Moratuwa Sri Lanka. ------------------------------------------------------------------------ Click here to unsubscribe from OpenMRS Developers' mailing list -------------------------------------------------------------------------- Click here to unsubscribe from OpenMRS Developers' mailing list ---------------------------------------------------------------------------- Click here to unsubscribe from OpenMRS Developers' mailing list ------------------------------------------------------------------------------ Click here to unsubscribe from OpenMRS Developers' mailing list -------------------------------------------------------------------------------- Click here to unsubscribe from OpenMRS Developers' mailing list _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

