SERP Hacker support forum - serposcope

Support forum for open-source softwares built by serphacker.com : serposcope the rank checker.

You are not logged in.

#1 2016-05-12 12:52:35

apiyii
Member
Registered: 2016-05-11
Posts: 5

Build Environment

Hello;

I try to setup build environment on my OSx El Capitan.

1- Git Clone Project Files
2- Java 1.8 installed - Netbeans installed
3- Maven installed by Brew.

When i try to run sqlcodegen.sh i get this error.
Could you give more information to get build environment.
Thanks.

Mc-Air:serposcope myuser$ ./core/scripts/sqlcodegen.sh
readlink: illegal option -- f
usage: readlink [-n] [file ...]
./core/scripts/sqlcodegen.sh: line 7: cd: /src/main/resources/db/: No such file or directory
*.sql doesn't exists
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.117 s
[INFO] Finished at: 2016-05-12T15:50:30+03:00
[INFO] Final Memory: 5M/77M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/myuser). Please verify you invoked Maven from the correct directory. -> [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/disp … tException

Offline

#2 2016-05-12 15:35:35

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Build Environment

hi, can you display output of

man readlink

from your mac ?

Offline

#3 2016-05-12 15:37:26

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Build Environment

just readlink in mac doesn't have the same behavior on linux. replace readlink with greadlink from coreutils : http://stackoverflow.com/a/4031502/1344303

Offline

#4 2016-05-12 15:45:00

apiyii
Member
Registered: 2016-05-11
Posts: 5

Re: Build Environment

Thank you for help;

I solved issue like this:

COREPATH=/Users/myuser/serposcope/core

after that it gives "mvn not found command" i run "mvn -Dcodegen clean install"
inside of core directory and it's working right now.
I get clean nice build.

I have 2 issues left :
1 - How could i set mySQL ?
2- When i try to run SUPERDEVMODE i get errors.

i call this from in serposcope directory.
mvn ninja:run \
-Dninja.mainClass=serposcope.lifecycle.Daemon \
-Dninja.jvmArgs="-Dlogback.configurationFile=dev/logback-stdout.xml -Dserposcope.datadir=/var/tmp/serposcope -Dserposcope.db.options=;AUTO_SERVER=TRUE"

Error:

[ERROR] No plugin found for prefix 'ninja' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/myuser/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]


Thanks.

Last edited by apiyii (2016-05-12 15:45:42)

Offline

#5 2016-05-12 16:10:07

apiyii
Member
Registered: 2016-05-11
Posts: 5

Re: Build Environment

And i solved issue, sorry for this basic questions.

I run this command inside of web directory. And it's working right now.

When i get build, it's created serposcope.jar inside of web directory.

Offline

#6 2016-05-12 20:17:28

apiyii
Member
Registered: 2016-05-11
Posts: 5

Re: Build Environment

I try everything to get ready SUPERDEVMODE but i couldn't succeed.
Could you please tell me how can i enable this feature?

What should i do?
Thanks.

Offline

#7 2016-05-13 09:54:06

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Build Environment

go in web folder, and just try "mvn ninja:run" command first

Offline

Board footer