Install OrientDB with source code sucessfully,but no release directory - orientdb

After I have installed orientdb with source code sucessfully,but no release directory in a level! I want to know how to fix the problem

The doc about installation from sources is updated:
http://orientdb.com/docs/last/Tutorial-Installation.html#source-code-installation
the old releases directory isn't created anymore by maven.

With Maven when you use the command "mvn clean install" from your folder with the source code, the folder with your version of OrientDb will be created under the following path rootfolder/distrubution/target
The folder "releases" isn't created but with Maven, for example, will be created the folder orientdb-community.2.1.10-snapshot.dir

Related

Rename ESP-IDF project folder on VS Code

After renaming project folder ESP-IDF build will return error:
Build directory 'd:\githubs\fmc-320\firmware\vscode\test\01-log\build'
configured for project
'd:\workspace\fmc-320\firmware\vscode\test\01-log' not
'd:\githubs\fmc-320\firmware\vscode\test\01-log'. Run 'idf.py
fullclean' to start again.
I know I can start a fresh new project with old code, but there is a clever way to do this by patching the actual project?
Usually just performing a fullclean and rebuilding is enough. Did you try?

How do I download the Gson library?

Should be simple question.
When I go to https://github.com/google/gson I can only download the library as a zip folder as opposed to a jar file.
Where can I get the jar file?
First you need to clone the repository locally on your computer:
git clone https://github.com/google/gson
Then you go inside the project folder ./gson and you create the jar file running:
mvn package
Of course to do this you need to have maven installed, if you are under osx you can install it running
brew install maven
Otherwise you can look for the installation for your system on the maven official website
After running mvn package the jar file will be in ./gson/gson/target/gson-2.7.1-SNAPSHOT.jar
There is a MVN Repo http://mvnrepository.com/ there you will find how to add to a maven OR in your case how to download the lib jars
am bit late but for anyone in future,
https://mvnrepository.com/artifact/com.google.code.gson/gson/2.8.0
ofcourse if its vresion changes you can figure it out from the base url.
I just downloaded it here:
https://jar-download.com/explore-java-source-code.php?a=gson&g=com.google.code.gson&v=2.7&downloadable=1
Is working for me.

How to Install conscript in Windows

Conscript is needed for giter8 to check out project templates directly from Github and as Scalatra.org states
is recommended way to generate Scalatra project skeletons.
When conscript-0.4.4.jar is ran error "Error downloading sbt-launch-0.13.0 happens".
sbt-launch-0.13.0.jar was removed from sbt site. so you have to:
Install sbt from the official site.
Copy "sbt-launch.jar" from "C:\Program Files (x86)\sbt\bin" into "C:\Users{Username}.conscript"
Make another copy of "sbt-launch.jar" in "C:\Program Files (x86)\sbt\bin" and rename it to "sbt-launch-0.13.0.jar"
Run your conscript installation jar ("conscript-0.4.4-1.jar") and wait for it to finish.
Add "C:\Users{Username}\bin" to your PATH environment variable.

Maven dependency Hibernate library cannot be read

I'm getting the following error in eclipse.
Archive for required library: '~/.m2/repository/org/hibernate/hibernate-core/4.2.1.Final/hibernate-core-4.2.1.Final.jar' in project
I've done Maven->Update Project and still it can't recognize the library.
I've verified that the jar file exists in the location mentioned.
This post has the same error as I do but I double checked my pom and there are no duplicates.
Check access settings for file '~/.m2/repository/org/hibernate/hibernate-core/4.2.1.Final/hibernate-core-4.2.1.Final.jar' if you are using *nix system,
Also make sure you can open hibernate-core-4.2.1.Final.jar archive using third party tools e.g. 7zip or winrar. from my experience many times maven in eclipse does not properly download dependency and downloaded jar is corrupted. If that is the case you can manually download this jar and replace it in .m2 repository.
Try to run maven task eclipse:eclipse from command prompt
open command prompt, Change Directory to project root directory and type
mvn eclipse:eclipse
And go back to eclipse and refresh project and see will it works :)

Setting up apache solr in eclipse

I am trying to set up Solr in eclipse by following the instructions here: http://hokiesuns.blogspot.com/2010/01/setting-up-apache-solr-in-eclipse.html.
The distribution of Solr that I downloaded does not have WEB-INF directory. I have added the jars that I found in lib to build path. However I get invalid run configuration error.
Can anyone who has Solr set up in eclipse please confirm their settings and configurations.
here's something that might help from a quick googling: In this sort of configuration Maven proves a life savior. Looking for a maven archetype (predefined project structure) I've found this. So in an empty dir try to run the mvn archetype:generate command they are quoting and finally if you are using eclipse run mvn eclipse:eclipse for the eclipse specific files so you can do Import > Existing Maven Projects from eclipse.
The problem was that I had not extracted the war.
As Jem pointed out , the .war exists in dist directory. However dist directory itself doesnt exists in the downloaded source :).
You need to do
ant dist
in the apache folder to get this.
Hope that helps someone else. I was able to get solr up and running using the command line as well as eclipse.
Check the .war file in dist. It has a WEB-INF directory.
So extract the war file and use the files in the lib directory.
For this example I had to make a "classes" directory in WEB-INF