[Mifos-developer] Getting error while trying mvn clean install

349 views
Skip to first unread message

mohan krish

unread,
May 23, 2013, 1:45:44 PM5/23/13
to Mifos software development
hi,

I am trying to clone the code and open it in eclipse,

but am getting following error when try to "mvn clean install"



would any one help as to fix the errors and open the code in eclipse
successfully

kindly find attachment file err.txt

regards,
mohan.
err.txt

mohan krish

unread,
May 24, 2013, 5:14:31 AM5/24/13
to Mifos software development
hi,

I am trying to clone the code and open it in eclipse,

but am getting following error when try to "mvn clean install"



-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Forking command line: cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_43\jre\bin\java" -Xmx1024m -XX:MaxPermSize=128m -jar "C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire\surefirebooter3272495276449254769.jar" "C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire\surefire5230397197479818440tmp" "C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire\surefire5344915624734666379tmp""
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Mifos - Parent .................................... SUCCESS [1.407s]
[INFO] Mifos - Common .................................... SUCCESS [30.875s]
[INFO] Mifos - DB Management ............................. FAILURE [2:33.015s]
[INFO] Mifos - Domain Data Transfer Objects .............. SKIPPED
[INFO] Mifos - Test Framework ............................ SKIPPED
[INFO] Mifos - Service Interfaces ........................ SKIPPED
[INFO] Mifos - User Interface ............................ SKIPPED
[INFO] Mifos - Accounting Integration .................... SKIPPED
[INFO] Mifos - Questionnaire ............................. SKIPPED
[INFO] Mifos - Cashflow .................................. SKIPPED
[INFO] Mifos - Abstract Domain ........................... SKIPPED
[INFO] Mifos - Organization .............................. SKIPPED
[INFO] Mifos - Application Domain ........................ SKIPPED
[INFO] Mifos - Reporting Libs (BIRT JARs) ................ SKIPPED
[INFO] Mifos - Reporting ................................. SKIPPED
[INFO] Mifos - REST API .................................. SKIPPED
[INFO] Mifos - Application ............................... SKIPPED
[INFO] Mifos - Base Server (Jetty) ....................... SKIPPED
[INFO] Mifos - Workspace Server .......................... SKIPPED
[INFO] Mifos - WAR ....................................... SKIPPED
[INFO] Mifos - Test of packaged WAR ...................... SKIPPED
[INFO] Mifos - Test of packaged Executable WAR ........... SKIPPED
[INFO] Mifos - Acceptance Tests .......................... SKIPPED
[INFO] Mifos - Android Client Tests ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:06.281s
[INFO] Finished at: Fri May 24 14:19:37 IST 2013
[INFO] Final Memory: 26M/63M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (integration-test) on project mifos-db: Error occured in starting fork, check output in log -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (integration-test) on project mifos-db: Error occured in starting fork, check output in log
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error occured in starting fork, check output in log
        at org.apache.maven.plugin.surefire.SurefirePlugin.assertNoException(SurefirePlugin.java:634)
        at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:623)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:136)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: Error occured in starting fork, check output in log
        at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:200)
        at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:100)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:134)
        ... 22 more
[ERROR]
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :mifos-db




err.txt

Michael Vorburger

unread,
May 24, 2013, 6:42:34 AM5/24/13
to Mifos software development
Hi,

you are working on Mifox 2.x, not Mifos X (NG), I'm assuming this is intentional? If you want to start contributing to Mifos X (NG), you pulled the wrong code and are looking at the wrong instructions.. Now assuming that you do want to get a Mifox 2.x set-up, this:

Forking command line: cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_43\jre\bin\java" -Xmx1024m -XX:MaxPermSize=128m -jar "C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire\surefirebooter3272495276449254769.jar" "C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire\surefire5230397197479818440tmp" "C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire\surefire5344915624734666379tmp""
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

indicates that the second JVM which surefire (Maven test plug-in) forks to run the tests cannot get enough memory from your Windows OS to run. If you have very little total RAM on your workstation, it might not be enough free to develop on Mifos. What you can try to do is close EVERYTHING else you're running, and see if that helps. Also, OS have a "memory fragmentation" problem sometimes - try just completely restarting your Windows and launch the Mifos build BEFORE you start anything else (Outlook, Chrome, whatever) - that might help, sometimes.

Best of luck.

Regards,
Michael


_______________________
Michael Vorburger
http://www.vorburger.ch


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer

Michael Vorburger

unread,
May 24, 2013, 6:45:33 AM5/24/13
to Mifos software development
The err.txt log you attached here is not useful for us to help you out here.

You would have to "refer to C:\Documents and Settings\esolve\head\head-2.6.0\head\db\target\surefire-reports\integration for the individual test results."

Most likely the DB integration tests couldn't connect to your mysql - your uid/pwd or something must be wrong, kind of thing.


_______________________
Michael Vorburger
http://www.vorburger.ch


mohan krish

unread,
May 29, 2013, 6:05:56 AM5/29/13
to Mifos software development
Hi,

Need help getting started with Mifos development, how to get source code of mifos. if i want to customize mifos

I have followed the steps given by mifos from the following links

https://mifosforge.jira.com/wiki/display/MIFOS/Mifos+Version+Control+Guide
https://mifosforge.jira.com/wiki/display/MIFOS/Developer+Setup
https://mifosforge.jira.com/wiki/display/MIFOS/Workspace+2.0

but unfortunately i can't able to build the code properly, what i did as follows

Installed git (git version 1.8.1.msysgit.1)
 
git config --global core.autocrlf tru
git config --global user.name "mohankrish"
git config --global user.email mohank...@gmail.com
git clone git://github.com/mifos/head.git

and i cloned the code base, it was done successfully.
later i installed maven 3.0.3 and mysql database with two tables of mifos and test.

Then when i try to run mvn clean install with debug mode

"mvn -X clean install -Dmaven.skip*true" in cloned head

its is getting following error while running in db management .


                -------------------------------------------------------
                 T E S T S
                -------------------------------------------------------
                Forking command line: cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_26\jre\bin\java" -Xmx1024m -XX:MaxPermSize=128m -jar "C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire\surefirebooter6481233139902658577.jar" "C:\Documents and Settings\esolve\head\db\target\surefire-reports\sur

                Error occurred during initialization of VM
                Could not reserve enough space for object heap
                Could not create the Java virtual machine.

                Results :

                Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

                [INFO] ------------------------------------------------------------------------
                [INFO] Reactor Summary:
                [INFO]
                [INFO] Mifos - Parent .................................... SUCCESS [5.734s]
                [INFO] Mifos - Common .................................... SUCCESS [52.579s]
                [INFO] Mifos - DB Management ............................. FAILURE [3:39.781s]

                [INFO] Mifos - Domain Data Transfer Objects .............. SKIPPED
                [INFO] Mifos - Test Framework ............................ SKIPPED
                [INFO] Mifos - Service Interfaces ........................ SKIPPED
                [INFO] Mifos - User Interface ............................ SKIPPED
                [INFO] Mifos - Accounting Integration .................... SKIPPED
                [INFO] Mifos - Questionnaire ............................. SKIPPED
                [INFO] Mifos - Cashflow .................................. SKIPPED
                [INFO] Mifos - Abstract Domain ........................... SKIPPED
                [INFO] Mifos - Organization .............................. SKIPPED
                [INFO] Mifos - Application Domain ........................ SKIPPED
                [INFO] Mifos - Reporting Libs (BIRT JARs) ................ SKIPPED
                [INFO] Mifos - Reporting ................................. SKIPPED
                [INFO] Mifos - REST API .................................. SKIPPED
                [INFO] Mifos - Application ............................... SKIPPED
                [INFO] Mifos - Base Server (Jetty) ....................... SKIPPED
                [INFO] Mifos - Workspace Server .......................... SKIPPED
                [INFO] Mifos - WAR ....................................... SKIPPED
                [INFO] Mifos - Test of packaged WAR ...................... SKIPPED
                [INFO] Mifos - Test of packaged Executable WAR ........... SKIPPED
                [INFO] Mifos - Acceptance Tests .......................... SKIPPED
                [INFO] Mifos - Android Client Tests ...................... SKIPPED
                [INFO] ------------------------------------------------------------------------
                [INFO] BUILD FAILURE
                [INFO] ------------------------------------------------------------------------
                [INFO] Total time: 4:39.719s
                [INFO] Finished at: Wed May 29 14:34:07 IST 2013
                [INFO] Final Memory: 27M/66M
                C:\Documents and Settings\esolve\head>git -versin
                 
system properties

windows xp 32bit operating system
intel core 2 duo
2.99GB of RAM

installed

java version "1.6.0_26"
mysql
maven 3.0.3
eclipse j2ee 3.7 and installed (M2e)
git version 1.8.1.msysgit.1

environment variables

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26
JAVA_OPTIONS=-Xms1024M -Xmx1024M -XX:MaxPermSize=256m
M2_HOME=E:\apache-maven-3.0.3
MIFOS_CONF=C:\mifos-install\mifos-v2.6.1\mifos-v2.6.1\config

kindly find attachments and help as to fix the errors


regards,
mohan.

mohan krish

unread,
May 29, 2013, 6:22:06 AM5/29/13
to Mifos software development
sorry i missed the attachment files in last post, so
kindly find it here

attachment file path :  C:\Documents and Settings\esolve\head\db\target\surefire-reports\surefire
surefire1583142670857235820tmp
surefire3650415017864297726tmp
surefire6747622059613326801tmp
surefire7197119674666883155tmp

Michael Vorburger

unread,
May 29, 2013, 6:51:47 AM5/29/13
to Mifos software development
On Wed, May 29, 2013 at 12:22 PM, mohan krish <mohank...@gmail.com> wrote:
 
Need help getting started with Mifos development, how to get source code of mifos. if i want to customize mifos

Mifos 2.x or Mifos X?
 
"mvn -X clean install -Dmaven.skip*true" in cloned head

please try "mvn -X -Dmaven.test.skip=true clean install" instead.

even faster, "mvn -Dcpd.skip=true -Dmaven.test.skip=true -Dpmd.skip=true -Dfindbugs.skip=true".
 
                Error occurred during initialization of VM
                Could not reserve enough space for object heap
                Could not create the Java virtual machine.
(...)

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26
JAVA_OPTIONS=-Xms1024M -Xmx1024M -XX:MaxPermSize=256m
M2_HOME=E:\apache-maven-3.0.3
MIFOS_CONF=C:\mifos-install\mifos-v2.6.1\mifos-v2.6.1\config

try NOT setting an -Xms at all, so JAVA_OPTIONS=-Xmx1024M -XX:MaxPermSize=256m.

mohan krish

unread,
May 29, 2013, 7:45:25 AM5/29/13
to Mifos software development
Need help getting started with Mifos development for

Mifos 2.x 


thanks, ill try with above setup and let your know

regards,
mohan 

mohan krish

unread,
May 30, 2013, 9:18:44 AM5/30/13
to Mifos software development
hi

I followed the above setup used this cmd "mvn -X -Dmaven.test.skip=true clean install"
to maven clean install then it was successfully installed

Reactor Summary:

Mifos - Parent .................................... SUCCESS [12.203s]
Mifos - Common .................................... SUCCESS [41.609s]
Mifos - DB Management ............................. SUCCESS [5.907s]
Mifos - Domain Data Transfer Objects .............. SUCCESS [3.265s]
Mifos - Test Framework ............................ SUCCESS [15.188s]
Mifos - Service Interfaces ........................ SUCCESS [21.906s]
Mifos - User Interface ............................ SUCCESS [37.516s]
Mifos - Accounting Integration .................... SUCCESS [7.000s]
Mifos - Questionnaire ............................. SUCCESS [21.875s]
Mifos - Cashflow .................................. SUCCESS [20.672s]
Mifos - Abstract Domain ........................... SUCCESS [3.546s]
Mifos - Organization .............................. SUCCESS [4.579s]
Mifos - Application Domain ........................ SUCCESS [53.468s]
Mifos - Reporting Libs (BIRT JARs) ................ SUCCESS [0.735s]
Mifos - Reporting ................................. SUCCESS [1:06.265s]
Mifos - REST API .................................. SUCCESS [23.375s]
Mifos - Application ............................... SUCCESS [4:50.969s]
Mifos - Base Server (Jetty) ....................... SUCCESS [3.453s]
Mifos - Workspace Server .......................... SUCCESS [7.235s]
Mifos - WAR ....................................... SUCCESS [8:18.109s]
Mifos - Test of packaged WAR ...................... SUCCESS [1:01.094s]
Mifos - Test of packaged Executable WAR ........... SUCCESS [1:05.562s]
Mifos - Acceptance Tests .......................... SUCCESS [2:36.813s]
Mifos - Android Client Tests ...................... SUCCESS [3.125s]
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 23:47.562s
Finished at: Thu May 30 17:45:15 IST 2013
Final Memory: 48M/181M
------------------------------------------------------------------------


Then i imported as a maven project
 File → Import... → Maven, Existing Maven Projects
but am getting error symbol in two projects
mifos-reporting
mifos-webapp

and getting following errors while try to launch debug as
Mifos START 8080.launch


i have attached the errors and mifos.log files
kindly help as to fix it.

regards,
mohan.



java problems.txt
jsp problems.txt
Mifos.log
mifos.JPG

Michael Vorburger

unread,
May 31, 2013, 6:31:54 PM5/31/13
to Mifos software development
Mohan,

thanks for posting comprehensive logs. All that you need to look at in such a case is what red Java errors there are on projects in the workspace, and post those. The Warnings and JSP usually aren't of much interest. The Mifos.log, in this case, also isn't - as long as the src doesn't compile, obviously it has some issues when it starts up - makes sense? Just trying to help you learn something - while offering the solution as well of course:

The key to your issue is most probably this in your java problems.txt:
Incompatible conditional operand types Exception and RESTCallInterruptException	UncaughtExceptionHandler.java	/mifos-webapp/src/main/java/org/mifos/framework/servlet	line 59	Java Problem
RESTCallInterruptException cannot be resolved to a type	UncaughtExceptionHandler.java	/mifos-webapp/src/main/java/org/mifos/framework/servlet	line 59	Java Problem
RESTCallInterruptException cannot be resolved to a type	UncaughtExceptionHandler.java	/mifos-webapp/src/main/java/org/mifos/framework/servlet	line 63	Java Problem
RESTCallInterruptException cannot be resolved to a type	UncaughtExceptionHandler.java	/mifos-webapp/src/main/java/org/mifos/framework/servlet	line 63	Java Problem
Google that, and you'll hit http://comments.gmane.org/gmane.comp.finance.mifos.devel/12489 ... read and then try that - problem gone? ;-) FTR: Udai had some fun with AspectJ (see http://www.eclipse.org/aspectj/ if interested) there... ;-) Great stuff, of course, but made the workspace a little harder.

Hope this helps?

Regards,
Michael


_______________________
Michael Vorburger
http://www.vorburger.ch


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

mohan krish

unread,
Jun 5, 2013, 8:59:19 AM6/5/13
to Mifos software development
and i installed AspectJ m2e configurator connector (AKA "Maven Integration for AJDT") from market place in eclipse
then i builded once again

java problems, red mark were disappeared but those remaining  Warnings and JSP problems were there . and mifos-rest
module still it has red mark error

maven errors
  1. Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.4:compile (execution: default, phase: compile)
  2. Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.4:test-compile (execution: default, phase: test-compile)
The maven errors are still appearing ,even i tried with that 9th step show in the above link, but its says "no market place items are avaliable"


kindly find the attachments file and help as to fix  errors .


regards,
mohan




eclipse.JPG
eclipse1.JPG

mohan krish

unread,
Jun 12, 2013, 4:36:00 AM6/12/13
to Mifos software development
hi

any update on this..?

regards,
mohan

Paweł Reise

unread,
Jun 12, 2013, 4:44:48 AM6/12/13
to mifos-d...@lists.sourceforge.net
Hello Mohan,

Maybe you can try version 1.0 of m2e plugin - http://download.eclipse.org/technology/m2e/releases/1.0/1.0.100.20110804-1717 (note: you can get it from download.eclipse.org/technology/m2e/releases/ repo in Eclipse (Help->Install New Software) by unchecking "Show only the latest versions of available software" option and choosing this version).

I remember It helped me, when I had this kind of errors in Eclipse.

Best regards,
Pawel Reise
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

mohan krish

unread,
Jun 13, 2013, 9:44:12 AM6/13/13
to Mifos software development
Hi Paweł Reise and Michael Vorburger,

THANK YOU SO MUCH for your help

as you suggested. its working fine now, i can able to run it in eclipse..

now maven dependency errors were gone and some of few jsp errors "tag not found" like that but its working.


kindly find the attachments and thanks.
 
Thanks and regards,
mohan
eclipse.JPG
Mifos.log

mohan krish

unread,
Jul 30, 2013, 2:52:55 AM7/30/13
to Mifos software development
Hi,


In eclipse i opened the source code, and i made some few minor changes in it and
i tested it in eclipse, its running properly. Now i need to repack it into mifos.war file,
any one help as to repack it in proper way using eclipse.
 

Best regards,
mohan.

Michael Vorburger

unread,
Jul 30, 2013, 4:11:36 AM7/30/13
to Developer

Mohan, just use 'mvn package' (on a command line, not Eclipse)!

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

mohan krish

unread,
Jul 30, 2013, 4:24:57 AM7/30/13
to Mifos software development
hi,

I used with the following cmd 'mvn package' in cmd,  but am getting  following error while run.
kindly find the attachment.


regards,
mohan

mvn-cmd.txt

Michael Vorburger

unread,
Jul 30, 2013, 7:56:07 AM7/30/13
to Mifos software development
Mohan, that just a unit test failure, you can tell Maven to ignore that by skipping test excecuting using "mvn -Dmaven.test.skip=true package" - try it, it should pass and you'll get your WAR.

BTW: The -Dmaven.test.skip=true is just like on the other thread where you've answered Sharanappa (tx BTW; it's nice to see you share what you've learnt with others).


_______________________
Michael Vorburger
http://www.vorburger.ch


Natalia Szprega

unread,
Jul 30, 2013, 8:18:51 AM7/30/13
to mifos-d...@lists.sourceforge.net
Hello Mohan,

this test may fail also bcause bad java version. You can check your current version by command: "java -version". You should have 1.6.0.x. You can download it from following page: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u20-oth-JPR (6u20).

Regards,
Natalia
-- 
MifCloud support

Website: www.mifcloud.com
Facebook: www.facebook.com/MifCloud
Twitter: www.twitter.com/mif_cloud
Email: sup...@mifcloud.com

mohan krish

unread,
Jul 30, 2013, 8:35:07 AM7/30/13
to Mifos software development
Hi Natalia and Michael Vorburger,

Thanks for your fast reply ....!

As he suggested, i used the following cmd

"mvn -Dmaven.test.skip=true package"

its working fine, and successfully created the "mifos.war" file.
In the following location "E:\mifos\head-2.6.0\mifos-head\war\target\mifos.war"

kindly find the attached log.

thanks & regards,
mohan.
mvn-cmd.txt

mohan krish

unread,
Sep 4, 2013, 1:36:24 AM9/4/13
to Mifos software development
Hi,

I  have changed few things in mifos 2.6.0 code and its reflected properly when i up mifos inside of eclipse.
But my changes were not reflected in the output "mifos.war" file.

I have created the "mifos.war" file using the following command in
eclipse workspace located path "E:\mifos\head-2.6.0\mifos-head\" by cmd.

"mvn -Dmaven.test.skip=true package"

kindly help as to fix this problem.

thanks and regards,
mohan.


Michael Vorburger

unread,
Sep 4, 2013, 4:27:14 AM9/4/13
to Developer

You could try and check if "mvn -Dmaven.test.skip=true clean package", note the added clean, make any difference? That would help only if those changes not reflected in WAR are e.g. files you deleted, but are still seeing (because they remain in the target/ directory unless you clean). It may be something completely different also, it's impossible to tell without more details re. what you changed and what's different in the built WAR from the workspace.. Best of luck.

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

mohan krish

unread,
Sep 5, 2013, 6:05:54 AM9/5/13
to Mifos software development
Hi,

Thanks for the cmd "mvn -Dmaven.test.skip=true clean package",
now changes too got reflected in the output "mifos.war" file after using the above command.

Thanks & regards,
mohan.
Reply all
Reply to author
Forward
0 new messages