Install or Upgrade on existing server throws errors for "mvn package"
---------------------------------------------------------------------

                 Key: DS-407
                 URL: http://jira.dspace.org/jira/browse/DS-407
             Project: DSpace 1.x
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 1.6.0
         Environment: Any
            Reporter: Tim Donohue


(1) Login to a server where DSpace 1.5.x has been previously installed (and 
therefore all the DSpace maven modules will have been cached in your ~/.m2/ 
local repository)

(2) Do a fresh install or an upgrade.  In both cases, it recommends to run "mvn 
package"

However, running "mvn package" will give an error similar to:

Couldn't find a version in [1.5.0.0, 1.5.2.0, 1.5.2.1] to match range 
[1.6.0.0,1.7.0.0)   org.dspace:dspace-api-lang:jar:null .

The problem seems to be that Maven by default doesn't go out to the web to look 
for the latest version of "dspace-api-lang" or "dspace-xmlui-lang".  Instead, 
it looks only in your ~/.m2/ directory, and only finds 1.5.x versions there.

The fix seems to be to recommend running "mvn -U package".   The -U option 
forces Maven to check for updates out on the web.

Does anyone have a better/cleaner solution, or should we change our 
Install/Upgrade docs to say "mvn -U pcakge"?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to