Error installing dl4j using maven - maven

Sorry but I am very new to using Maven, trying to install dl4j for the provided examples via the following command, as per the instructions on the dl4j website:
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
This proceeds somewhat, but then terminates with an error:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project dl4j-examples: Compilation failure: Compilation failure:
[ERROR] /Users/nick/Downloads/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/unsupervised/variational/plot/PlotUtil.java:[158,13] cannot find symbol
[ERROR] symbol: method setDomainPannable(boolean)
[ERROR] location: variable plot of type org.jfree.chart.plot.XYPlot
[ERROR] /Users/nick/Downloads/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/unsupervised/variational/plot/PlotUtil.java:[159,13] cannot find symbol
[ERROR] symbol: method setRangePannable(boolean)
[ERROR] location: variable plot of type org.jfree.chart.plot.XYPlot
[ERROR] -> [Help 1]
Now I have jfreechart library in a directory searchable by classpath, so, can someone help me resolve the above?
Running mac high sierra, on a 2016 macbook pro.

There is no need to build/install dl4j to run the examples.
Straight from the dl4j quickstart:
git clone https://github.com/deeplearning4j/dl4j-examples.git
cd dl4j-examples/
mvn clean install

Related

Why deploying maven packages on terminal throws an error but the maven package ends up being published on GitHub packages anyway?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame,
reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic
web app project.
Now, I am trying to make depencies be private Maven packages hosted
for free on GitHub packages. Ok, I managed to publish a package!
After the successful attempt to publish my first maven package, it
ended up with the name of repository-name.repository-name
which looks ugly. As I was trying to tweak it, I ended up changing
this line on my project.clj file:
:pom-addition [:distribution-management [:repository [:id "github"]
[:name "GitHub Packages"]
[:url "https://maven.pkg.github.com/organization-name/repository-name"]]])
Instead of [:url "https://maven.pkg.github.com/organization-name/repository-name"] I
tweaked it to be [:url "https://maven.pkg.github.com/organization-name"].
Now, things got really weird in my opinion.
After executing the terminal command to publish it:
➜ mvn deploy -DaltReleaseDeploymentRepository="${REPO}" -DaltSnapshotDeploymentRepository="${REPO}"
The terminal throws:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.563 s
[INFO] Finished at: 2022-10-28T12:33:16-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project project-name: Failed to retrieve remote metadata project-name:project-name/maven-metadata.xml: Could not transfer metadata project-name:project-name/maven-metadata.xml from/to github (https://maven.pkg.github.com/organization-name): transfer failed for https://maven.pkg.github.com/organization-name/project-name/project-name/maven-metadata.xml, status: 422 Unprocessable Entity -> [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
Now, when I go to https://github.com/orgs/my-organization/packages, the package was indeed published!
And with the name of repository-name instead of repository-name.repository-name.
Why is that so? If the build failed, why is the packaged being published?
Also, what would be standard name for Maven packages on GitHub
packages (especially considering these are Maven packages for a
Clojure project)?

Not a valid command: playGenerateSecret

I would like to create an Application secret. I have already installed sbt and brew.
These are the things I have tried:
sbt play-generate-secret
sbt play-update-secret
sbt playGenerateSecret
sbt
playGenerateSecret
However, every time, I get this message:
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by sbt.TrapExit$ (file:/Users/b/.sbt/boot/scala-2.12.14/org.scala-sbt/sbt/1.5.8/run_2.12-1.5.8.jar)
WARNING: Please consider reporting this to the maintainers of sbt.TrapExit$
WARNING: System::setSecurityManager will be removed in a future release
[info] welcome to sbt 1.5.8 (Homebrew Java 17.0.1)
[info] loading project definition from /Users/b/project
[info] set current project to b (in build file:/Users/b/)
[error] Not a valid command: playGenerateSecret
[error] Not a valid project ID: playGenerateSecret
[error] Expected ':'
[error] Not a valid key: playGenerateSecret (similar: autoGeneratedProject)
[error] playGenerateSecret
[error]
How can I fix this?
Following is what works for me.
Method 1:
cd <project_root_dir>
sbt palyGenerateSecret
Method 2:
cd <project_root_dir>
sbt
this drops into sbt project console. You will see your project name in [].
playGenerateSecret

Building Zeppelin Fails for versions 7.1, 7,2 and 7.3 on YARN error

I've been trying to build Zeppelin from the source in an effort to try and fix the SSL error.
I tried to build from source, and went back to the basic option of
mvn clean package -DskipTests
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:10 min
[INFO] Finished at: 2017-09-21T21:45:31-05:00
[INFO] Final Memory: 254M/3182M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (yarn install) on project zeppelin-web: Failed to run task: 'yarn install --no-lockfile' failed. (error code 1) -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-web
Note: This is the same error that happens with each version and I'm building on a Mac OS X platform. (Not sure if this has anything to do with the problem.)
I'm trying to solve the issue of implementing SSL which has a different problem with the 7.2 binary release.
Also note that currently (9/21/2017) the continuous build of the latest release is also failing. Any suggestions?
Ok, after more digging I found that this was a problem that popped up earlier in the year.
The fix is to make sure that you have git and nodejs installed.
On Mac OS X, I used homebrew to bring down nodejs (Already had git).
On Centos(Linux), I had recently rebuilt the machine for Centos 7.4 and of course didn't download all of the tools. After pulling git and nodejs from yum repos, I was able to rebuild version 7.3
So now Zeppelin builds in both environments.
Note: If you can't use the built binary versions, think of compiling your own version as a last resort.
I only went this route because I tried to set up SSL for Zeppelin and I was getting an error over my PKCS12 keys were causing an error. (Which I still have to fix. ) Something I hope will work in 7.3

I'm trying to build Apache Hadoop 2.5.0 on Windows 7 x64 but I keep running into an unknown error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8
.1:jar (module-javadocs) on project hadoop-maven-plugins: MavenReportException:
Error while creating archive:
[ERROR] Exit code: 1 - C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hado
op\maven\plugin\util\Exec.java:45: error: unknown tag: String
[ERROR] * #param command List<String> containing command and all arguments
[ERROR] ^
[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\Exec.java:46: error: unknown tag: String
[ERROR] * #param output List<String> in/out parameter to receive command output
[ERROR] ^
[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\FileSetUtils.java:50: error: unknown tag: File
[ERROR] * #return List<File> containing every element of the FileSet as a File
[ERROR] ^
[ERROR]
[ERROR] Command line was: C:\Progra~1\Java\jdk1.8.0_20\jre\..\bin\javadoc.exe #o
ptions #packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'C:\hsc\hadoop-maven-plugins\tar
get' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hadoop-maven-plugins
Prior to this, I've run into the usual error where it asks for file read/write access. I've given it all the permissions through chmod as well as manually changing the permission settings in the file properties on windows.
The wiki link sends me to a page that basically says its a problem with the plugin. Unfortunately, there isn't anything there that would indicate how to fix the problem.
I'm on Windows 7x64, trying to build hadoop 2.5.0 using src and using latest version of maven 3.2.3 and jdk 1.8.0_20
I had a similar issue while building the source. Instead of using the following command for compiling:
mvn package -Pdist,native -DskipTests=true -Dtar
I used:
mvn package -Pdist,native -Dmaven.javadoc.skip=true -DskipTests -Dtar
Do try this!
You can also add below property in parent POM to resolve this issue -
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>

Mahout in Action examples doesn't work

I'm new in Mahout and I have a week trying to run the book examples. The book recommends to use an IDE for this but Eclipse and Netbeans are having some troubles with the maven and slf4j installation thats why I tryed to use the ubuntu 13.04 terminal. Can anyone could help me with this?? I downloaded the source code from the 0.7 branch on the git repository and trying to make it work doing the following steps:
Install maven with the
$sudo apt-get install maven (it installs the 3.0.4 version)
Extract the zip with the files and run the command $ mvn package (I think I have to modify the pom file but I'm not sure)
When finishes the package command, it shows me a build success message
Then I want to run one of the examples with the $ mvn exec:java -Dexec.mainClass="mia.recommender.ch02.IREvaluatorIntro" -Dexec.args="src" command but when i run it it shows me this:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.424s
[INFO] Finished at: Wed Jul 10 10:43:36 PDT 2013
[INFO] Final Memory: 8M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project mia: An exception occured while executing the Java class. null: InvocationTargetException: intro.csv -> [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
Thanks in advance!
i think you have to build mahout jar files first! they created in a target folder in each of the mahout main folder such as math,examples and ...
then after extract zip file run this command to build jar files
sudo mvn -DskipTests install -e
after that you can run your example :)

Resources