Start in creating a new plugin

40 views
Skip to first unread message

Amr Osama

unread,
Sep 17, 2017, 11:10:51 AM9/17/17
to Jenkins Developers
First of all i want to create a jenkins plugin using eclipse having mvn 3.5 installed and jenkins 1.651.3 , and i just went throw you documentation , i cant find the first step which says 
to put some code in this path (Windows users will find them in %USERPROFILE%\.m2\settings.xml), i cant find this path , secondly the step after is to write this command $ mvn -DdownloadSources=true -DdownloadJavadocs=true -DoutputDirectory=target/eclipse-classes -Declipse.workspace=/path/to/workspace eclipse:eclipse eclipse:configure-workspace it gives me error which i will copy now

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.1
0:eclipse (default-cli): Goal requires a project to execute but there is no POM
in this directory (C:\Users\aelmetwa). Please verify you invoked Maven from the
correct directory. -> [Help 1]
so please if any body know the solution for this issue please answer.
P.S i am new to windows OS.
Thank you.

Slide

unread,
Sep 17, 2017, 11:17:12 AM9/17/17
to Jenkins Developers
If you haven't executed maven before, then the .m2 directory probably won't exist. You can create the .m2 directory in the %USERPROFILE% directory, %USERPROFILE% is a variable, you can put it into Windows Explorer or the command line and it will resolve to the correct location (e.g., in the command line you can run dir %USERPROFILE% and it will list the contents of the actual directory where the user profile is located). 

For the second item, it looks like you aren't inside the directory where your plugin resides. You need to cd to that directory and then run the command.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/63164a7d-b4f6-4150-a683-8c1b6afa7c51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amr Osama

unread,
Sep 18, 2017, 8:15:37 AM9/18/17
to Jenkins Developers

Thanks alot now i want to debugs the hello world plugin to jenkins using eclipse
i run this command as in documentation mvnDebug hpi:run this error message appear in the command line
Listening for transport dt_socket at address: 8000
Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - expect
ed >JDWP-Handshake<
i read that i must set debugger option in eclipse to port 8000 but i do not know how to do that , so please help.
thank you again.
Reply all
Reply to author
Forward
0 new messages