filtering on io.jenkins does not find any archetype causing inability to create a new plugin

9 views
Skip to first unread message

Bassam Khouri

unread,
Dec 21, 2018, 4:32:27 PM12/21/18
to Jenkins Developers
Hi, 

I'm a complete newbie to Jenkins plugin development, and I'm attempting to create a new plugin.  I'm following the instructions here:


I have the following java and maven versions installed

java -version

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

mvn -version

Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T14:41:47-04:00)

Maven home: /usr/local/Cellar/maven/3.6.0/libexec

Java version: 1.8.0_144, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre

Default locale: en_CA, platform encoding: UTF-8

OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"


The next step, Creating a Plugin, indicated to run mvn -U archetype:generate -Dfilter=io.jenkins.archetypes: and indicates I will be presented with an option of which type of plugin I want to create.  However, I encounter the following:

mvn -U archetype:generate -Dfilter=io.jenkins.archetypes:

...

[INFO--- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom ---

[INFO] Generating project in Interactive mode

[INFO] Your filter doesn't match any archetype, so try again with another value.

[INFO------------------------------------------------------------------------

[INFOBUILD SUCCESS

[INFO------------------------------------------------------------------------

[INFO] Total time:  4.705 s

[INFO] Finished at: 2018-12-21T16:05:37-05:00

[INFO------------------------------------------------------------------------


I have been searching the web for a solution, but nothing I try is successful. 

What am I doing wrong?

Bassam

Daniel Beck

unread,
Dec 22, 2018, 5:40:37 AM12/22/18
to jenkin...@googlegroups.com
Weird, works for me, even on a new user account without ~/.m2 directory.

Did you previously configure Maven's settings.xml, and that might interfere here? If you're unsure, rename the file ~.m2/settings.xml to anything else (IOW, remove it but keep a backup), and try again.
> --
> 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/69f46c0e-2ebd-4b5e-9166-ae4adb855efb%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages