I made a change to the viewOffices.jsp. How do I rebuild the mifos.war?Â
Carlo,
In the mifos/ directory, you can run 'ant war'.
Also, if you use Eclipse WTP, you don't need to rebuild the war; for jsps,
you can set automatic publishing, or for changes to java files, you need to
restart WTP's tomcat.
Cheers
adam
--
Adam Feuer
afeuer at grameenfoundation dot org
http://mifos.org
http://www.grameenfoundation.org
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
I'm getting this build failure:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred
while exe
cuting this line:
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle\mi
fos\build.xml:495: Unable to resolve artifact: Unable to get dependency
informat
ion: Unable to read the metadata file for artifact
'org.mifos:cheetah-testFramew
ork:jar': Error getting POM for 'org.mifos:cheetah-testFramework' from
the repos
itory: Unable to read local copy of metadata: Cannot read metadata from
'C:\Docu
ments and
Settings\mifosuser1\.m2\repository\org\mifos\cheetah-testFramework\0.0
.3-SNAPSHOT\maven-metadata-spring-milestone.xml': unexpected markup <!d
(positio
n: START_DOCUMENT seen <!d... @1:3)
org.mifos:cheetah-testFramework:pom:0.0.3-SNAPSHOT
for project org.mifos:cheetah-testFramework
org.mifos:cheetah-testFramework:jar:0.0.3-SNAPSHOT
from the specified remote repositories:
openqa.org-repository
(http://nexus.openqa.org/content/repositories/releases),
maven2-jboss-repository (http://repository.jboss.com/maven2),
maven-repository.mifos.org (http://neem.mifos.org/maven/),
central (http://repo1.maven.org/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/)
Path to dependency:
1) org.mifos:gazelle:pom:0.0.3-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Mon Jun 01 18:27:02 EDT 2009
[INFO] Final Memory: 42M/254M
[INFO]
------------------------------------------------------------------------
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle>no
tepad pom.xml
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle>ls
'ls' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle>di
r
Volume in drive C is GSWindowsXP
Volume Serial Number is A8E0-9E57
Directory of C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mi
fos-gazelle
05/30/2009 03:46 PM <DIR> .
05/30/2009 03:46 PM <DIR> ..
05/11/2009 04:40 PM 4,414 .classpath
05/11/2009 04:34 PM <DIR> .externalToolBuilders
05/11/2009 04:34 PM 240 .pmd
05/11/2009 04:40 PM 1,162 .project
05/11/2009 04:34 PM 15,347 .ruleset
05/11/2009 04:40 PM <DIR> .settings
05/30/2009 03:52 PM <DIR> acceptanceTests
05/15/2009 10:53 AM <DIR> common
05/11/2009 04:40 PM 124 findbugs.excludes.xml
05/15/2009 10:54 AM <DIR> mifos
05/15/2009 11:06 AM 45,336 Mifos_log.log
05/12/2009 07:59 PM 0 Mifos_log.log.2009-05-12
05/11/2009 04:40 PM 12,083 pom.xml
05/11/2009 04:34 PM <DIR> resources
05/15/2009 10:54 AM <DIR> serviceInterfaces
05/15/2009 10:53 AM <DIR> target
06/01/2009 06:11 PM 308 temp-testng-customsuite.xml
06/01/2009 06:11 PM <DIR> test-output
05/15/2009 10:54 AM <DIR> testFramework
05/15/2009 10:54 AM <DIR> userInterface
05/11/2009 04:34 PM <DIR> www
9 File(s) 79,014 bytes
14 Dir(s) 339,120,128 bytes free
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle>cd
mifos
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle\mi
fos>ant war
Buildfile: build.xml
make_dir:
svn-revision:
maven_dependencies:
[artifact:dependencies] An error has occurred while processing the Maven
artifac
t tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get
dependency inf
ormation: Unable to read the metadata file for artifact
'org.mifos:cheetah-testF
ramework:jar': Error getting POM for 'org.mifos:cheetah-testFramework'
from the
repository: Unable to read local copy of metadata: Cannot read metadata
from 'C:
\Documents and
Settings\mifosuser1\.m2\repository\org\mifos\cheetah-testFramewor
k\0.0.3-SNAPSHOT\maven-metadata-spring-milestone.xml': unexpected markup
<!d (po
sition: START_DOCUMENT seen <!d... @1:3)
[artifact:dependencies]
org.mifos:cheetah-testFramework:pom:0.0.3-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] for project org.mifos:cheetah-testFramework
[artifact:dependencies]
org.mifos:cheetah-testFramework:jar:0.0.3-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] maven2-jboss-repository
(http://repository.jboss.com/m
aven2),
[artifact:dependencies] maven-repository.mifos.org
(http://neem.mifos.org/mave
n/),
[artifact:dependencies] spring-milestone
(http://s3.amazonaws.com/maven.spring
framework.org/milestone),
[artifact:dependencies] ibiblio-maven2-repository
(http://mirrors.ibiblio.org/
pub/mirrors/maven2/),
[artifact:dependencies] maven2-repository.dev.java.net
(http://download.java.n
et/maven/2/),
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] openqa.org-repository
(http://nexus.openqa.org/content
/repositories/releases)
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.mifos:gazelle:pom:0.0.3-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]
BUILD FAILED
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle\mi
fos\build.xml:495: Unable to resolve artifact: Unable to get dependency
informat
ion: Unable to read the metadata file for artifact
'org.mifos:cheetah-testFramew
ork:jar': Error getting POM for 'org.mifos:cheetah-testFramework' from
the repos
itory: Unable to read local copy of metadata: Cannot read metadata from
'C:\Docu
ments and
Settings\mifosuser1\.m2\repository\org\mifos\cheetah-testFramework\0.0
.3-SNAPSHOT\maven-metadata-spring-milestone.xml': unexpected markup <!d
(positio
n: START_DOCUMENT seen <!d... @1:3)
org.mifos:cheetah-testFramework:pom:0.0.3-SNAPSHOT
Carlo,
It sounds like the testFramework jar in your repository got lost or
corrupted.
Try rebuilding all the modules first, using 'mvn clean install' (or just
'mvn install') from the root of the source tree. You should only have to do
this occasionally.
If that works, then do an 'ant war' from the mifos/ dir.
If we run mvn install from the src directory it gives this error:
BUILD ERROR
An ant BuildException has occurred: the following error occurred while
executing this line:
...\mifos-gazelle\mifos\build.xml:495: Unable to resolve artifact:
Unable to get dependency information: Unable to read the metadata file
for artifact 'org.mifos:cheetah-testFramework:jar': Error getting POM
for 'org.mifos:cheetah-testFramework' from the repository: Unable to
read local copy of metadata: Cannot read metadata from
.m2\repository\org\mifos\cheeta-testFramework\0.0.3-SNAPSHOT\maven-metad
ata-sprint-milestone.xml': unexpected markup seen...
If we mvn clean install does it delete any new source files we created?
Just want to doublecheck
Thanks,
Mike
-----Original Message-----
From: Adam Feuer [mailto:afe...@grameenfoundation.org]
Sent: Monday, June 01, 2009 6:55 PM
To: Romero, Carlo
Cc: mifos-d...@lists.sourceforge.net; Hsieh, Michael
Subject: Re: Rebuilding MIFOS war after JSP change
The error you are seeing is a bit odd. I'm not certain what would cause
it, but you might try deleting the whole mifos hierarchy from your local
repository (delete the directory (<your home
directory>\.m2\repository\org\mifos) and then try "mvn clean install"
again.
"mvn clean install" should delete all the output generated by the build,
but it doesn't clear out anything from your repository.
--Van
Carlo,
However, it will overwrite all the mifos artifacts in your repository
with newly generated ones.
-adam
--
Adam Feuer <adamf at pobox dot com>
Just to be clear, when you say that mvn clean install will overwrite
mifos artifacts, does this mean that the new java files I created in my
directory will be left alone, or will they be removed?
-----Original Message-----
From: adam...@gmail.com [mailto:adam...@gmail.com] On Behalf Of Adam
Feuer
Sent: Tuesday, June 02, 2009 1:27 PM
To: Developer
Cc: Hsieh, Michael; Romero, Carlo
Subject: Re: [Mifos-developer] Rebuilding MIFOS war after JSP change
[artifact:dependencies] Reason: Error getting POM for
'org.mifos:cheetah-testFra
mework' from the repository: Unable to read local copy of metadata:
Cannot read
metadata from 'C:\Documents and
Settings\mifosuser1\.m2\repository\org\mifos\che
etah-testFramework\0.0.3-SNAPSHOT\maven-metadata-spring-milestone.xml':
unexpect
ed markup <!d (position: START_DOCUMENT seen <!d... @1:3)
[artifact:dependencies]
org.mifos:cheetah-testFramework:pom:0.0.3-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] for project org.mifos:cheetah-testFramework
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred
while exe
cuting this line:
C:\Documents and Settings\mifosuser1\My Documents\MIFOS
Gazelle\mifos-gazelle\mi
fos\build.xml:495: Unable to resolve artifact: Unable to get dependency
informat
ion: Unable to read the metadata file for artifact
'org.mifos:cheetah-testFramew
ork:jar': Error getting POM for 'org.mifos:cheetah-testFramework' from
the repos
itory: Unable to read local copy of metadata: Cannot read metadata from
'C:\Docu
ments and
Settings\mifosuser1\.m2\repository\org\mifos\cheetah-testFramework\0.0
.3-SNAPSHOT\maven-metadata-spring-milestone.xml': unexpected markup <!d
(positio
n: START_DOCUMENT seen <!d... @1:3)
org.mifos:cheetah-testFramework:pom:0.0.3-SNAPSHOT
Wondering if there is something broken in that file that is causing
problems?
Jeff
> -----Original Message-----
> From: Romero, Carlo [mailto:Carlo....@gs.com]
> Sent: Tuesday, June 02, 2009 12:01 PM
> To: Van Mittal-Henkle; Developer; Hsieh, Michael
> Subject: Re: [Mifos-developer] Rebuilding MIFOS war after JSP change
>
Do you mean new .java source files inside the Mifos Subversion working
copy? These will not be deleted by "mvn clean install".
Mifos artifacts are things like .pom and .jar files, stored by Maven in
your local repository ( http://tinyurl.com/r8dg93 ).
Here is the file:
<?xml version="1.0" encoding="UTF-8"?>
<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0
http://maven.apache.org/xsd/metadata-1.0.0.xsd"
xmlns="http://maven.apache.org/METADATA/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<groupId>org.mifos</groupId>
<artifactId>cheetah-testFramework</artifactId>
<version>0.0.3-SNAPSHOT</version>
</metadata>
Interesting, here is the contents of my file
(..\.m2\repository\org\mifos\cheetah-testFramework\0.0.3-SNAPSHOT\maven-
metadata-spring-milestone.xml):
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.mifos</groupId>
<artifactId>cheetah-testFramework</artifactId>
<version>0.0.3-SNAPSHOT</version>
</metadata>
Could you try replacing your file with the contents above and see if mvn
clean install works? I've attached the file to the email as well in
case there are formatting problems in the email.
Carlo,
Jeff
------------------------------------------------------------------------------
Hrm. Sounds like this file is corrupted. Given the position, it might be
a problem with the byte-order mark. I have no clue how that could have
been corrupted. Perhaps a cross-platform bug in Maven?
Since the XML in your other email was cut & pasted, I can't tell what
the byte-order mark looks like in the actual file as it is stored on
your disk.
This seems to be similar to http://tinyurl.com/pspjnk .
Anyway, as a workaround, you might try replacing the file with the
attached file.
That change seems to have made it work.
By the way, the original version of the file was not what I originally
sent, it was actually this:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Goldman Sachs Content Filter</title>
<LINK REL ="stylesheet" TYPE="text/css"
HREF="http://www2.web.gs.com/cacheflow/errors.css" TITLE="Style">
<!-- Category: Content Authentication-->
<script type="text/javascript" language="JavaScript">
<!-- hide me
// additions for auto-focus changes
function setFocus(PROXY_SG_USERNAME, PROXY_SG_PASSWORD)
{
if (PROXY_SG_USERNAME.value.length > 0) {
PROXY_SG_PASSWORD.focus();
}
else {
PROXY_SG_USERNAME.focus();
}
}
// end hide -->
</script>
</head>
<body bgcolor="#ffffff">
<table width="100%" border="0" cellpadding="1"
cellspacing="0" bgcolor="#ccccff">
<tr> <td> <font size="-3"> </font> </td>
</tr>
<tr> <td valign="middle"> <h2> <img
SRC="http://home.gs.com/art/logos/gs_black_51x51.gif" ALT="Goldman
Sachs" border="0" height="51" width="51"> Goldman Sachs Content
Filter - Authentication Required</h2>
<hr size="1" color="black"> </td> </tr>
<tr> <td align="center"> <br> </td> </tr>
</table>
<br>
<b>You are trying to reach <font color=red>
http://s3.amazonaws.com/maven.springframework.org/milestone/org/mifos/ch
eetah-testFramework/0.0.3-SNAPSHOT/maven-metadata.xml </b></font><p>
<font size=-1><ul><li>
<p>You are accessing a site that normally would be blocked by firm
policy.
Access to this site is logged and audited. By entering this site, you
acknowledge that
you understand the firm's policies and that you are accessing this site
for a legitimate business
purpose. If you are unsure of the appropriateness of your access, please
speak to your manager or HCM
representative. If you have any questions please contact gs-siteblock.
You should re-read
the firm's <a
href="http://infosec.web.gs.com/policies/highlevel/internet.shtml">
policy on the use of the
Internet, E-Mail, Voice-mail and other messaging systems</a> and comply
strictly with that policy.
</p>
<font size="-1"><br><br>
<body onload="javascript:setFocus(document.forms[0].username,
document.forms[0].password);">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>
<table border="0" cellpadding="0" cellspacing="0" width="350">
<tr>
<td nowrap>
<span class="txtHeading">
Please Enter Your User Name and Password</span>
<span class="txtWarning">
</span><br />
<br />
<form method="POST"
action=http://www.cfauth.com/?bcfru=aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbWF2
ZW4uc3ByaW5nZnJhbWV3b3JrLm9yZy9taWxlc3RvbmUvb3JnL21pZm9zL2NoZWV0YWgtdGVz
dEZyYW1ld29yay8wLjAuMy1TTkFQU0hPVC9tYXZlbi1tZXRhZGF0YS54bWw=>
<table border="0" cellpadding="1" cellspacing="0"
width="350" bgcolor="#6699CC">
<tr>
<td>
<table width="100%" border="0" cellpadding="0"
cellspacing="0"
bgcolor="#E6E7E8">
<tr>
<td colspan="3" height="25">
<img src="sp.gif" alt="" border="0" width="1"
height="25" />
</td>
</tr>
<tr>
<td nowrap>
<span class="normal"> <b>User
Name:</b></span></td>
<td width="15"><img src="sp.gif" alt="" border="0"
width="15"
height="1" /></td>
<td width="99%">
<input type="text" name="PROXY_SG_USERNAME" value=""
size="20" maxlength="127" /></td>
</tr>
<tr>
<td colspan="3" height="8">
<img src="sp.gif" alt="" border="0" width="1" height="8"
/></td>
</tr>
<tr>
<td nowrap>
<span
class="normal"> <b>Password:</b></span></td>
<td width="15"><img src="sp.gif" alt="" border="0"
width="15" height="1" /></td>
<td width="99%">
<input type="password" name="PROXY_SG_PASSWORD"
size="20"
maxlength="127" /></td>
</tr>
<tr>
<td colspan="3" height="8">
<img src="sp.gif" alt="" border="0" width="1" height="8"
/></td>
</tr>
<tr>
<td nowrap> </td>
<td width="15"><img src="sp.gif" alt="" border="0"
width="15" height="1" /></td>
<tr>
<td colspan="3" height="8">
<img src="sp.gif" alt="" border="0" width="1" height="8"
/></td>
</tr>
<tr>
<td nowrap> </td>
<td width="15"><img src="sp.gif" alt="" border="0"
width="15" height="1" /></td>
<INPUT TYPE=HIDDEN NAME="PROXY_SG_REQUEST_ID" VALUE=>
<td width="99%"><input type="submit" value="Login"></td>
</tr>
<tr>
<td colspan="3" height="8">
<img src="sp.gif" alt="" border="0" width="1" height="8"
/></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<BR>
Reporting proxy: cfcdc2 - 12.47.208.18<br><br>
© Copyright 2000 - The Goldman Sachs Group, Inc. -
All rights reserved.
</font>
</body>
</html>
Carlo,
Jeff
------------------------------------------------------------------------------
Carlo,
It looks like the GS proxy thinks maven is a web browser, and is
asking it to log in. You may have to launch a web browser and log in
to the proxy before using maven.
cheers
adam
--
Adam Feuer <adamf at pobox dot com>
------------------------------------------------------------------------------
-----Original Message-----
From: Adam Feuer [mailto:ad...@pobox.com]
Sent: Wednesday, June 03, 2009 1:12 PM
To: Developer
Cc: Jeff Brewster; Hsieh, Michael
Subject: Re: [Mifos-developer] Rebuilding MIFOS war after JSP change
Carlo,
Yes. Read the file - what maven downloaded was the proxy's login page
instead of the proper maven xml file describing the artifact.
-adam
--
Adam Feuer <adamf at pobox dot com>
------------------------------------------------------------------------------