recommenders / rival

RiVal recommender system evaluation toolkit
rival.recommenders.net
Apache License 2.0
150 stars 40 forks source link

Create jar file of 0.3-SNAPSHOT to be used outside eclipse #115

Closed afcarvalho1991 closed 8 years ago

afcarvalho1991 commented 8 years ago

Hello,

I've been trying to create a jar from the 0.3-SNAPSHOT, but I'm getting a error.

user:rival-master afc$ man deploy
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] RiVal
[INFO] RiVal Core
[INFO] RiVal Data Splitter
[INFO] RiVal Recommendation
[INFO] RiVal Evaluation
[INFO] RiVal Package
[INFO] RiVal Examples
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building RiVal 0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ rival ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (validate-environment) @ rival ---
[INFO] 
[INFO] >>> findbugs-maven-plugin:3.0.1:check (analyze-compile) @ rival >>>
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:findbugs (findbugs) @ rival ---
Apr 21, 2016 1:45:22 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
WARNING: Module [groovy-all] - Unable to load extension class [org.codehaus.groovy.runtime.NioGroovyMethods]
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (analyze-compile) @ rival <<<
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (analyze-compile) @ rival ---
[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (default) @ rival ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ rival ---
[INFO] Installing /Users/afc/workspace/rival-master/pom.xml to /Users/afc/.m2/repository/net/recommenders/rival/rival/0.3-SNAPSHOT/rival-0.3-SNAPSHOT.pom
[INFO] Installing /Users/afc/workspace/rival-master/target/rival-0.3-SNAPSHOT-site.xml to /Users/afc/.m2/repository/net/recommenders/rival/rival/0.3-SNAPSHOT/rival-0.3-SNAPSHOT-site.xml
[INFO] 
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ rival ---
Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/recommenders/rival/rival/0.3-SNAPSHOT/maven-metadata.xml
Uploading: https://oss.sonatype.org/content/repositories/snapshots/net/recommenders/rival/rival/0.3-SNAPSHOT/rival-0.3-20160421.124526-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] RiVal ............................................. FAILURE [7.412s]
[INFO] RiVal Core ........................................ SKIPPED
[INFO] RiVal Data Splitter ............................... SKIPPED
[INFO] RiVal Recommendation .............................. SKIPPED
[INFO] RiVal Evaluation .................................. SKIPPED
[INFO] RiVal Package ..................................... SKIPPED
[INFO] RiVal Examples .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.751s
[INFO] Finished at: Thu Apr 21 13:45:27 WEST 2016
[INFO] Final Memory: 16M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project rival: Failed to deploy artifacts: Could not transfer artifact net.recommenders.rival:rival:pom:0.3-20160421.124526-1 from/to ossrh (https://oss.sonatype.org/content/repositories/snapshots): Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/net/recommenders/rival/rival/0.3-SNAPSHOT/rival-0.3-20160421.124526-1.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Is it possible or not? It seems that i need some sort of authentication. If possible the jar should contain all the dependencies associated to the rival project...

My goal is to be able to launch my project and include the jar with rival using the terminal something along this lines:

javac -cp path_of_the_jar/jarName.jar className.java

Thanks, André

alansaid commented 8 years ago

you don't want to do mvn deploy as that attempts to deploy a new jar to maven central. Instead you want to do mvn install which will install the jar in your local maven repository

afcarvalho1991 commented 8 years ago

Thanks, for the quick reply! I will have a look later today.