[Dspace-tech] help for StatisticsAddOn

1 view
Skip to first unread message

badboy

unread,
Aug 25, 2015, 5:25:45 PM8/25/15
to dspac...@lists.sourceforge.net
Hi,

    I download Stats_v3.zip recently, and install it with dspace1.6.2.
    I can execute the 'setup.sh' script successfully. but I meet the following error when I excute 'mvn package':

...
[INFO] Error building POM (may not be this project's POM).
Project ID: org.dspace.modules:jspui
POM Location: /home/badboy/soft/dspace16/dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml
Validation Messages:

   [0]  'dependencies.dependency.version' is missing for org.dspace:dspace-uminho-stats-api:jar
   [1]  'dependencies.dependency.version' is missing for org.dspace:dspace-uminho-stats-jspui-api:jar
Reason: Failed to validate POM for project org.dspace.modules:jspui at /home/badboy/soft/dspace16/dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.dspace.modules:jspui at /home/badboy/soft/dspace16/dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml
       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
...

 so I modify the file --/home/badboy/soft/dspace16/
dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml, and a line like '<version>3.0</version>'

        <dependency>
            <groupId>org.dspace</groupId>
            <artifactId>dspace-uminho-stats-api</artifactId>
            <version>3.0</version>
        </dependency>
        <dependency>
            <groupId>org.dspace</groupId>
            <artifactId>dspace-uminho-stats-jspui-api</artifactId>
            <version>3.0</version>
        </dependency>

and excute  'mvn package' again,  but it failed again, the error information just like:

Downloading: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom
[WARNING] Unable to get resource 'org.dspace:dspace-uminho-stats-api:pom:3.0' from repository apache.org (http://repository.jboss.org/maven2): Authorization failed: Access denied to: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom
Downloading: http://download.java.net/maven/2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-api:pom:3.0' in repository java.net (http://download.java.net/maven/2)
Downloading: http://repo1.maven.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-api:pom:3.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom
[WARNING] Unable to get resource 'org.dspace:dspace-uminho-stats-jspui-api:pom:3.0' from repository apache.org (http://repository.jboss.org/maven2): Authorization failed: Access denied to: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom
Downloading: http://download.java.net/maven/2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-jspui-api:pom:3.0' in repository java.net (http://download.java.net/maven/2)
Downloading: http://repo1.maven.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-jspui-api:pom:3.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar
[WARNING] Unable to get resource 'org.dspace:dspace-uminho-stats-api:jar:3.0' from repository apache.org (http://repository.jboss.org/maven2): Authorization failed: Access denied to: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar
Downloading: http://download.java.net/maven/2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-api:jar:3.0' in repository java.net (http://download.java.net/maven/2)
Downloading: http://repo1.maven.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-api:jar:3.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.jar
[WARNING] Unable to get resource 'org.dspace:dspace-uminho-stats-jspui-api:jar:3.0' from repository apache.org (http://repository.jboss.org/maven2): Authorization failed: Access denied to: http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.jar
Downloading: http://download.java.net/maven/2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.jar
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-jspui-api:jar:3.0' in repository java.net (http://download.java.net/maven/2)
Downloading: http://repo1.maven.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.jar
[INFO] Unable to find resource 'org.dspace:dspace-uminho-stats-jspui-api:jar:3.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.dspace:dspace-uminho-stats-api:jar:3.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.dspace -DartifactId=dspace-uminho-stats-api -Dversion=3.0 -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.dspace -DartifactId=dspace-uminho-stats-api -Dversion=3.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.dspace.modules:jspui:war:1.6.2
        2) org.dspace:dspace-uminho-stats-api:jar:3.0

2) org.dspace:dspace-uminho-stats-jspui-api:jar:3.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.dspace -DartifactId=dspace-uminho-stats-jspui-api -Dversion=3.0 -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.dspace -DartifactId=dspace-uminho-stats-jspui-api -Dversion=3.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.dspace.modules:jspui:war:1.6.2
        2) org.dspace:dspace-uminho-stats-jspui-api:jar:3.0

----------
2 required artifacts are missing.

for artifact:
  org.dspace.modules:jspui:war:1.6.2

from the specified remote repositories:
  maven.dspace.org-snapshot (http://maven.dspace.org/snapshot),
  central (http://repo1.maven.org/maven2),
  java.net (http://download.java.net/maven/2),
  apache.org (http://repository.jboss.org/maven2)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52 seconds
[INFO] Finished at: Tue Nov 29 10:15:45 CST 2011
[INFO] Final Memory: 89M/231M
[INFO] ------------------------------------------------------------------------


what can I do or what about any suggestion?


Thanks

Jack
Reply all
Reply to author
Forward
0 new messages