I'm trying to compile mifos using maven but got the following errors...
Anybody know how to resolve this? Is there any possibility to compile mifos using ant (where is the build.xml)?
Thanks.
--
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Mifos - Application
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/riki/mifos/application/target
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /home/riki/mifos/application && svn --non-interactive info
[INFO] Working directory: /home/riki/mifos/application
[INFO] Storing buildNumber: 16747 at timestamp: 1267319405321
[INFO] Executing: /bin/sh -c cd /home/riki/mifos/application && svn --non-interactive info
[INFO] Working directory: /home/riki/mifos/application
[INFO] Storing buildScmBranch: tags/v1.4.2/application
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 133 resources to sql
[INFO] Copying 856 resources
[INFO] [resources:copy-resources {execution: copy-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.pom
Downloading: http://download.java.net/maven/2//org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.pom
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.pom
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.pom
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.pom
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.pom
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-testFramework/1.4-SNAPSHOT/mifos-testFramework-1.4-SNAPSHOT.pom
Downloading: http://download.java.net/maven/2//org/mifos/mifos-testFramework/1.4-SNAPSHOT/mifos-testFramework-1.4-SNAPSHOT.pom
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-testFramework/1.4-SNAPSHOT/mifos-testFramework-1.4-SNAPSHOT.pom
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-testFramework/1.4-SNAPSHOT/mifos-testFramework-1.4-SNAPSHOT.pom
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-testFramework/1.4-SNAPSHOT/mifos-testFramework-1.4-SNAPSHOT.pom
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-testFramework/1.4-SNAPSHOT/mifos-testFramework-1.4-SNAPSHOT.pom
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.pom
Downloading: http://download.java.net/maven/2//org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.pom
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.pom
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.pom
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.pom
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.pom
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.pom
Downloading: http://download.java.net/maven/2//org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.pom
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.pom
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.pom
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.pom
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.pom
Downloading: http://maven.mifos.org/maven//com/sun/xml/bind/jaxb-libs/1.0.5/jaxb-libs-1.0.5.pom
Downloading: http://download.java.net/maven/2//com/sun/xml/bind/jaxb-libs/1.0.5/jaxb-libs-1.0.5.pom
Downloading: http://repository.jboss.com/maven2/com/sun/xml/bind/jaxb-libs/1.0.5/jaxb-libs-1.0.5.pom
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//com/sun/xml/bind/jaxb-libs/1.0.5/jaxb-libs-1.0.5.pom
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/com/sun/xml/bind/jaxb-libs/1.0.5/jaxb-libs-1.0.5.pom
Downloading: http://nexus.openqa.org/content/repositories/releases/com/sun/xml/bind/jaxb-libs/1.0.5/jaxb-libs-1.0.5.pom
Downloading: http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-libs/1.0.5/jaxb-libs-1.0.5.pom
Downloading: http://maven.mifos.org/maven//jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.pom
Downloading: http://download.java.net/maven/2//jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.pom
Downloading: http://repository.jboss.com/maven2/jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.pom
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.pom
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.pom
Downloading: http://nexus.openqa.org/content/repositories/releases/jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.pom
Downloading: http://repo1.maven.org/maven2/jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.pom
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.pom
Downloading: http://download.java.net/maven/2//org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.pom
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.pom
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.pom
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.pom
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.pom
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.jar
Downloading: http://download.java.net/maven/2//org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.jar
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.jar
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.jar
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.jar
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-api/1.0-SNAPSHOT/mifos-api-1.0-SNAPSHOT.jar
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.jar
Downloading: http://download.java.net/maven/2//org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.jar
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.jar
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.jar
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.jar
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-serviceInterfaces/1.4-SNAPSHOT/mifos-serviceInterfaces-1.4-SNAPSHOT.jar
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.jar
Downloading: http://download.java.net/maven/2//org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.jar
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.jar
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.jar
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.jar
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-userInterface/1.4-SNAPSHOT/mifos-userInterface-1.4-SNAPSHOT.jar
Downloading: http://maven.mifos.org/maven//org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.jar
Downloading: http://download.java.net/maven/2//org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.jar
Downloading: http://repository.jboss.com/maven2/org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.jar
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2//org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.jar
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.jar
Downloading: http://nexus.openqa.org/content/repositories/releases/org/mifos/mifos-spi/1.0-SNAPSHOT/mifos-spi-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.mifos:mifos-api:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.mifos -DartifactId=mifos-api -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.mifos -DartifactId=mifos-api -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.mifos:mifos-webapp:war:1.4-SNAPSHOT
2) org.mifos:mifos-api:jar:1.0-SNAPSHOT
2) org.mifos:mifos-serviceInterfaces:jar:1.4-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.mifos -DartifactId=mifos-serviceInterfaces -Dversion=1.4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.mifos -DartifactId=mifos-serviceInterfaces -Dversion=1.4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.mifos:mifos-webapp:war:1.4-SNAPSHOT
2) org.mifos:mifos-serviceInterfaces:jar:1.4-SNAPSHOT
3) org.mifos:mifos-userInterface:jar:1.4-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.mifos -DartifactId=mifos-userInterface -Dversion=1.4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.mifos -DartifactId=mifos-userInterface -Dversion=1.4-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.mifos:mifos-webapp:war:1.4-SNAPSHOT
2) org.mifos:mifos-userInterface:jar:1.4-SNAPSHOT
4) org.mifos:mifos-spi:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.mifos -DartifactId=mifos-spi -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.mifos -DartifactId=mifos-spi -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.mifos:mifos-webapp:war:1.4-SNAPSHOT
2) org.mifos:mifos-spi:jar:1.0-SNAPSHOT
----------
4 required artifacts are missing.
for artifact:
org.mifos:mifos-webapp:war:1.4-SNAPSHOT
from the specified remote repositories:
maven-repository.mifos.org (http://maven.mifos.org/maven/),
maven2-jboss-repository (http://repository.jboss.com/maven2),
ibiblio-maven2-repository (http://mirrors.ibiblio.org/pub/mirrors/maven2/),
spring-milestone (http://s3.amazonaws.com/maven.springframework.org/milestone),
maven2-repository.dev.java.net (http://download.java.net/maven/2/),
central (http://repo1.maven.org/maven2),
openqa.org-repository (http://nexus.openqa.org/content/repositories/releases)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 21 seconds
[INFO] Finished at: Sun Feb 28 08:12:05 WIT 2010
[INFO] Final Memory: 18M/33M
[INFO] ------------------------------------------------------------------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Riki,
Hi, have you tried building Mifos from the root of the project? In other words,
mvn clean install
It looks like you are trying to build the application/ module, but
this module can't be built unless you build its dependencies first.
Building from the project root will do that.
We don't use the ant build system anymore, by the way - Mifos is 100% maven now.
-adam
--
Adam Feuer <adamf at pobox dot com>
Thanks for the reply, already did what you ask for and add local.properties to .mifos directory under my home directory.
But still there is an error in this step:
[INFO] Surefire report directory: /home/riki/svnroot/mifos/trunk/application/target/surefire-reports/unit
I wonder if there is any log file that I can look to investigate the cause?
--- On Sat, 2/27/10, Adam Feuer <ad...@pobox.com> wrote:
> Download Intel® Parallel Studio Eval
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
Please refer to /home/riki/svnroot/mifos/trunk/application/target/surefire-reports/unit for the individual test results.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
Please refer to /home/riki/svnroot/mifos/trunk/application/target/surefire-reports/unit for the individual test results.
at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:575)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 24 seconds
[INFO] Finished at: Wed Mar 17 16:18:16 WIT 2010
[INFO] Final Memory: 81M/285M
[INFO] ------------------------------------------------------------------------
I've already looked at /home/riki/svnroot/mifos/trunk/application/target/surefire-reports/unit and found no clues :(
Please help... thanks.
--- On Sat, 2/27/10, Adam Feuer <ad...@pobox.com> wrote:
> From: Adam Feuer <ad...@pobox.com>
> Subject: Re: [Mifos-developer] Maven Error
> To: "Mifos software development" <mifos-d...@lists.sourceforge.net>
> Date: Saturday, February 27, 2010, 7:38 PM
> Download Intel® Parallel Studio Eval
Use "mvn surefire-report:report-only", it will generate report where
you can see the tests failing/error.
Udai
After using "mvn surefire-report:report-only" the result is a succesfull build. Here is the output from my terminal:
[INFO] No goals needed for project - skipping
[INFO] [surefire-report:report-only {execution: default-cli}]
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Mifos - Parent ........................................ SUCCESS [11.958s]
[INFO] Mifos - Common ........................................ SUCCESS [0.241s]
[INFO] Mifos - Test Framework ................................ SUCCESS [0.098s]
[INFO] Mifos - Service Interfaces ............................ SUCCESS [0.158s]
[INFO] Mifos - User Interface ................................ SUCCESS [0.046s]
[INFO] Mifos - Application Programming Interface ............. SUCCESS [0.095s]
[INFO] Mifos - Service Provider Interface .................... SUCCESS [0.043s]
[INFO] Mifos - Application ................................... SUCCESS [1.871s]
[INFO] Mifos - Acceptance Tests .............................. SUCCESS [15.604s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46 seconds
[INFO] Finished at: Thu Mar 18 18:25:53 WIT 2010
[INFO] Final Memory: 43M/205M
[INFO] ------------------------------------------------------------------------
I will do "mvn clean install" again from root and report my results...
--- On Wed, 3/17/10, Udai Gupta <mail...@gmail.com> wrote:
> From: Udai Gupta <mail...@gmail.com>
> Subject: Re: [Mifos-developer] Maven Error
> To: "Mifos software development" <mifos-d...@lists.sourceforge.net>
> Date: Wednesday, March 17, 2010, 6:29 AM
> Riki,
>
> Use "mvn surefire-report:report-only", it will generate
> report where
> you can see the tests failing/error.
>
> Udai
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
"mvn surefire-report:report-only" does not mean that you have got the
build successful. It means that you have generated the reports for the
tests successfully. The purpose of generating reports for tests is to
see the failures/error in tests which running "mvn clean install"
1. run "mvn clean install"
2, if build fails run "mvn surefire-report:report-only" to generate report.
3 see the report in surefire directory to see which tests are failing
or throwing error.
4. resolve the issues and run the "mvn clean install" again.
repeat this until you get success in "mvn clean install"
Udai
Any other hints where to look for the cause? I have looked at /home/riki/svnroot/mifos/trunk/application/target/surefire-reports/unit and find no problem there, or am I looking the wrong way?
Here is my latest build output (no change from last time):
[INFO] Compiling JSP source files to /home/riki/svnroot/mifos/trunk/application/target/jsp-source
[INFO] Compiled completed in 0:00:05.501
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 116 resources
[INFO] Copying 0 resource
[INFO] Copying 2 resources to sql
[INFO] [properties:read-project-properties {execution: default}]
[WARNING] Ignoring missing properties file: /home/riki/svnroot/mifos/trunk/application/null/local.properties
[WARNING] Ignoring missing properties file: /home/riki/svnroot/mifos/trunk/application/null/local.properties
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 500 source files to /home/riki/svnroot/mifos/trunk/application/target/test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: /home/riki/svnroot/mifos/trunk/application/target/surefire-reports/unit
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to /home/riki/svnroot/mifos/trunk/application/target/surefire-reports/unit for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 5 seconds
[INFO] Finished at: Thu Mar 18 18:42:41 WIT 2010
[INFO] Final Memory: 145M/374M
[INFO] ------------------------------------------------------------------------
--- On Thu, 3/18/10, Udai Gupta <mail...@gmail.com> wrote:
> From: Udai Gupta <mail...@gmail.com>
> Subject: Re: [Mifos-developer] Maven Error
> To: "Mifos software development" <mifos-d...@lists.sourceforge.net>
> Date: Thursday, March 18, 2010, 6:40 AM
> Riki,
>
> "mvn surefire-report:report-only" does not mean that you
> have got the
> build successful. It means that you have generated the
> reports for the
> tests successfully. The purpose of generating reports for
> tests is to
> see the failures/error in tests which running "mvn clean
> install"
>
> 1. run "mvn clean install"
> 2, if build fails run "mvn surefire-report:report-only" to
> generate report.
> 3 see the report in surefire directory to see which tests
> are failing
> or throwing error.
> 4. resolve the issues and run the "mvn clean install"
> again.
> repeat this until you get success in "mvn clean install"
>
> Udai
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
After "maven clean install" when you run "mvn
surefire-report:report-only" an HTML report gets generated in surefire
directory where you were looking in xml reports. You can look in that
HTML file to see which tests are failing.
Udai
There was an issue which has been resolved yesterday. Try updating and
building Mifos again.
I've just updated my svn and do the build once again, the error I got last time seem to disappear and I think now I'm a little closer in building my first mifos build :)
This is the last messages that I got when doing 'mvn clean install' from root:
--START--
[INFO] Building war: /home/riki/svnroot/mifos/trunk/application/target/mifos-webapp.war
[INFO] [mifos-settings-sanitizer:sanitize {execution: create_sanitized_application_settings_file}]
[INFO] [sql:execute {execution: drop_db}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Access denied for user 'root'@'localhost' (using password: YES)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 49 seconds
[INFO] Finished at: Sun Mar 21 18:28:49 WIT 2010
[INFO] Final Memory: 147M/372M
[INFO] ------------------------------------------------------------------------
--END--
I think this error have something to do with these warnings:
--START--
[WARNING] Ignoring missing properties file: /home/riki/svnroot/mifos/trunk/application/null/local.properties
[WARNING] Ignoring missing properties file: /home/riki/svnroot/mifos/trunk/application/null/local.properties
--END--
My question is where should I put local.properties file? I already have one in my home directory under .mifos a local.properties file that have this information:
main.database=mifos
main.database.host=localhost
main.database.port=3306
main.database.user=mifos
main.database.password=mifos
which is the correct database setting for me. Is there any other place I should put this local.properties file or did I miss something else?
BTW why I didn't get some of your replies directly to my inbox but instead I read your reply from this URL: http://groups.google.com/group/mifosdeveloper/browse_thread/thread/7033e80ad821343f
I got the URL using Google search, I wonder if there is any setting I should change in my group subscription?
Thank you for your help and patience... I know that compiling mifos should be easy after this, but right now I'm still struggling my first build and still need your guide.
--- On Thu, 3/18/10, Udai Gupta <mail...@gmail.com> wrote:
> From: Udai Gupta <mail...@gmail.com>
> Subject: Re: [Mifos-developer] Maven Error
> To: "Mifos software development" <mifos-d...@lists.sourceforge.net>
> Date: Thursday, March 18, 2010, 6:40 AM
> Riki,
>
> "mvn surefire-report:report-only" does not mean that you
> have got the
> build successful. It means that you have generated the
> reports for the
> tests successfully. The purpose of generating reports for
> tests is to
> see the failures/error in tests which running "mvn clean
> install"
>
> 1. run "mvn clean install"
> 2, if build fails run "mvn surefire-report:report-only" to
> generate report.
> 3 see the report in surefire directory to see which tests
> are failing
> or throwing error.
> 4. resolve the issues and run the "mvn clean install"
> again.
> repeat this until you get success in "mvn clean install"
>
> Udai
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
--START--
--END--
--START--
--END--
> Riki,
>
> "mvn surefire-report:report-only" does not mean that you
> have got the
> build successful. It means that you have generated the
> reports for the
> tests successfully. The purpose of generating reports for
> tests is to
> see the failures/error in tests which running "mvn clean
> install"
>
> 1. run "mvn clean install"
> 2, if build fails run "mvn surefire-report:report-only" to
> generate report.
> 3 see the report in surefire directory to see which tests
> are failing
> or throwing error.
> 4. resolve the issues and run the "mvn clean install"
> again.
> repeat this until you get success in "mvn clean install"
>
> Udai
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
See the instructions here.
http://www.mifos.org/developers/install-mifos/install-windows#make_build
Udai
These warnings can be ignored.
> My question is where should I put local.properties file? I already
> have one in my home directory under .mifos a local.properties file
> that have this information:
>
> main.database=mifos
Try creating/specifying settings for integration.database and
acceptance.database. See
http://www.mifos.org/developers/wiki/LocalPropertiesFile
One more question please... :)
After updating my local.properties file my build is stuck (again) in this process:
[INFO] [surefire:test {execution: integration-test}]
[INFO] Surefire report directory: /home/riki/trunk/mifos/v1.4.2/application/target/surefire-reports/integration
the same goes for the latest trunk.
This time there is no error message but the process just hang at that point no matter how long I wait. I use 2 machine the first is my Laptop (P4 1.6GHz with 1GB of RAM) and the second is my production server (Xeon 2.4GHz Quad Core with 2GB of DDR3 RAM) both machine stop at the sama point of execution.
I wonder if there is a way to skip integration test and go straight to building the WAR file?
Thanks...
--- On Sun, 3/21/10, Udai Gupta <mail...@gmail.com> wrote:
> From: Udai Gupta <mail...@gmail.com>
> Subject: Re: [Mifos-developer] Maven Error
> To: "Mifos software development" <mifos-d...@lists.sourceforge.net>
> Date: Sunday, March 21, 2010, 7:15 AM
> Riki,
>
> See the instructions here.
>
> http://www.mifos.org/developers/install-mifos/install-windows#make_build
>
> Udai
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
This should do that
mvn clean install -Dmaven.test.skip=true
Udai
mvn war:war
Takes about 2 minutes. :-)
Regards
Graeme
Yep, I use this too sometimes, especially when developing with Eclipse
(since most of the classes should already be compiled, resources copied
into place, etc.). The *only* bit this goal does is wrap up a war.
But if all you're doing is creating a war to see Mifos run during
development, also consider using
http://www.mifos.org/developers/wiki/EclipseWTP