Hi all,

I followed Alvaro's instructions and it worked. Thanks a lot.

Mark, I used the <proxy> tag in settings.xml on the advice of Stuart
Lewis, since I am behind a proxy.

Cheers
Gary


Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Diggory
Sent: Tuesday, 15 April 2008 11:43 AM
To: DSpace Tech
Subject: Re: [Dspace-tech] Failed mvn package

Running on:

> mark-diggorys-computer-2:~ mdiggory$ mvn --version Maven version: 
> 2.0.8 Java version: 1.5.0_13 OS name: "mac os x" version: "10.4.11" 
> arch: "i386" Family: "unix"


I removed my ~/.m2 directory to force all dependencies to be downloaded
again and successfully built DSpace 1.5.0 from scratch against the
dspace 1.5.0 tag that the releases were constructed from...

> svn co http://dspace.svn.sourceforge.net/viewvc/dspace/tags/dspace-1_5
> cd dspace-1_5/dspace
> mvn package


I encountered no errors. I highly suspect that downloading and placing
jars on the classpath outside of maven is bound to break the dependency
chain and cause problems in your build.

The version of the site plugin that was downloaded by default in
Maven...

> mark-diggorys-computer-2:~ mdiggory$ ls -a -l ~/.m2/repository/org/ 
> apache/maven/plugins/maven-site-plugin/2.0-beta-6/
> total 280
> drwxr-xr-x   6 mdiggory  mdiggory     204 Apr 14 18:33 .
> drwxr-xr-x   5 mdiggory  mdiggory     170 Apr 14 18:33 ..
> -rw-r--r--   1 mdiggory  mdiggory  120863 Apr 14 18:27 maven-site- 
> plugin-2.0-beta-6.jar
> -rw-r--r--   1 mdiggory  mdiggory      40 Apr 14 18:27 maven-site- 
> plugin-2.0-beta-6.jar.sha1
> -rw-r--r--   1 mdiggory  mdiggory   11205 Apr 14 18:27 maven-site- 
> plugin-2.0-beta-6.pom
> -rw-r--r--   1 mdiggory  mdiggory      40 Apr 14 18:27 maven-site- 
> plugin-2.0-beta-6.pom.sha1


Why the need for a proxy in your settings.xml?

Cheers,
Mark




On Apr 14, 2008, at 3:21 PM, Sandoval, Alvaro wrote:
> Hi Gary:
>
>
>
> You can find the maven-site-plugin in the following URL:
>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-
> plugin/
>
>
>
> Download the directory 2.06beta and the file maven-metadata- 
> central.xml into this directory:
>
> /home/dspace/.m2/repository/org/apache/maven/plugins/maven-site-
> plugin/
>
>
>
> And then run 'mvn package'
>
>
>
> I had problems with missing classes, when I tried to ran the
> command: create-administrator
>
> I had to download every missing class, and include them into CLASSPATH

> variable.
>
>
>
> So what I did:
>
> - Include the following directory in the CLASSPATH: [dspace-dir]/ 
> dspace-api/target/classes
>
> - I downloaded the following classes, and included them into
> CLASSPATH:
>
> apache-log4j-1.2.15
>
> commons-cli-1.1
>
> commons-pool-1.3
>
> commons-dbcp-1.2.2
>
> postgresql-8.1-412.jdbc3
>
> JavaMail API 1.4.1
>
>
>
> I hope that helps you.
>
>
>
> Regards,
>
> Alvaro
>
>
>
> De: [EMAIL PROTECTED] [mailto:dspace-tech- 
> [EMAIL PROTECTED] En nombre de Gary Browne Enviado el: 
> Domingo, 13 de Abril de 2008 22:22
> Para: dspace-tech
> Asunto: Re: [Dspace-tech] Failed mvn package
>
>
>
> Hi Lucia/Alvaro,
>
>
>
> Thanks for your replies. Lucia:
>
>
>
> Gary,
>
> I've had the same error and I've fixed it like this:
>
> 1.- Specify proxies in settings.xml at <maven>/conf directory.
>
> 2.- Execute 'maven -U package' in order of getting the last revision 
> of each package.
>
> I hope this helps you.
>
>
>
> I tried this and unfortunately it didn't work.
>
> Alvaro, could you (or someone on the list) perhaps give a little more 
> detail on what needs to be setup with maven as far as loading plugins 
> ie: where to get them, what to get, what to put where once you have 
> downloaded them, etc.
>
> Any help would be most appreciated.
>
> Thanks
>
> Gary
>
>
>
>
>
> Gary Browne
> Development Programmer
> Library IT Services
> University of Sydney
>
> ph: 9351-5946
>
>
>
>
>
> From: Sandoval, Alvaro [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 12 April 2008 12:02 AM
> To: Gary Browne
> Subject: RE: [Dspace-tech] Failed mvn package
>
> Gary:
>
>
>
> I had the same error.
>
> I fixed downloading the specified plugin from the repository into the 
> local repository. Then ran 'mvn package' again, and everything went 
> perfect.
>
>
>
> Regards,
>
> Alvaro
>
>
>
> De: [EMAIL PROTECTED] [mailto:dspace-tech- 
> [EMAIL PROTECTED] En nombre de Gary Browne
> Enviado el: Viernes, 11 de Abril de 2008 3:15
> Para: dspace-tech
> Asunto: [Dspace-tech] Failed mvn package
>
>
>
> Hi people
>
>
>
> I'm trying to install 1.5. When I do a mvn package, i get the  
> following:
>
>
>
>
> [ERROR] BUILD ERROR
> [INFO]  
> ----------------------------------------------------------------------

> --
> [INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does  
> not exist or no valid version could be found
>
> The first time I tried it, there was something about being  
> blacklisted. Woah, that's pretty heavy, man. I mean I'm just trying  
> to install dspace. Really, I'm a nice guy.
>
>
>
> I've done a search on google and all I could find were pointers to  
> problems with proxy configuration. I tried setting up a  
> settings.xml file under user_home/.mvn to no avail.
>
>
>
> Anyone else had this problem? Any hints?
>
>
>
> Thanks
>
> Gary
>
>
>
>
>
> Gary Browne
> Development Programmer
> Library IT Services
> University of Sydney
>
> ph: 9351-5946
>
>
>
> ----------------------------------------------------------------------

> ---
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save  
> $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http:// 
> java.sun.com/javaone_______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech


------------------------------------------------------------------------
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j
avaone
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to