Not able to add the own add-on

I have completed the setup of the Plone 6 backend and would like to add my own add-on, which will serve as a JWT connector for the Plone site. I followed the official guide to add a custom add-on using Buildout and completed all the steps provided in the documentation. However, I am unable to find the add-on listed on the site.

If you use buildout, you probably need to add it to the 'develop' part of buildout (where it says 'src/my.addon'). Can you share your buildout.cfg ?

did you use mr.developer?

extensions =
    mr.developer
always-checkout = force
auto-checkout =
    myaddon

[sources]
myaddon = fs myaddon path=src

it should be something like this.

This is my buildout code :-
[buildout]

auto-checkout +=
ploneconf.site

extends =

parts =
instance

[instance]
recipe = plone.recipe.zope2instance

user = admin:admin
http-address = 8080
eggs =
Plone
ploneconf.site

test-eggs +=
ploneconf.site [test]

I have created new add-on "ploneconf.site" I have made the necessary changes but add-on is not visible on my plone site

(newplone) akash@akash-VirtualBox:~/newplone$ bin/buildout
Section buildout contains unused option(s): 'auto-checkout'.
This may be an indication for either a typo in the option's name or a bug in the used recipe.
Installing instance.
root: Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
root: Scanning index of all packages (this may take a while)
Getting distribution for 'ploneconf.site'.
While:
Installing instance.
Getting distribution for 'ploneconf.site'.
Error: Couldn't find a distribution for 'ploneconf.site'.

I am facing this error even after using mr.developer

You've to go to src folder and do
git clone ploneconf.site
to use the addon as developer. Then re run buildout.

If you wish just to use it as is, just remove the mr.developer part.

If you want to just develop it, do a git clone ploneconf.site and make build and then make start. make help show available commands.

@yurj I have tried to run the "git clone ploneconf.site" in src folder path (plone/sources/ploneconf.site/src) but got the error :-- "repository ploneconf.site does not exist"

sorry, it is
git clone https://github.com/collective/ploneconf.site.git

akash@akash-VirtualBox:~/newplone/sources/ploneconf.site/src$ git clone ploneconf.site
Cloning into 'ploneconf.site'...
remote: Enumerating objects: 915, done.
remote: Counting objects: 100% (624/624), done.
remote: Compressing objects: 100% (356/356), done.
remote: Total 915 (delta 282), reused 504 (delta 213), pack-reused 291 (from 1)
Receiving objects: 100% (915/915), 153.84 KiB | 1.85 MiB/s, done.
Resolving deltas: 100% (342/342), done.

akash@akash-VirtualBox:~/newplone$ bin/buildout
Installing instance.
root: Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
root: Scanning index of all packages (this may take a while)
Getting distribution for 'ploneconf.site'.
While:
Installing instance.
Getting distribution for 'ploneconf.site'.
Error: Couldn't find a distribution for 'ploneconf.site'.

@yurj I am facing the same issue

Maybe you miss this in your buildout config?

Not sure, but maybe we need to add it to 'auto-checkout' also ?

auto-checkout =
    my.addon

[buildout]

parts =
instance

[instance]
recipe = plone.recipe.zope2instance

user = admin:admin
http-address = 8080
eggs =
Plone
ploneconf.site

test-eggs +=
ploneconf.site [test]

extensions =
mr.developer
always-checkout = force
auto-checkout =
ploneconf.site

[sources]
myaddon = fs ploneconf.site path=src

[version]
ploneconf.site = 4.2.1

This is my buildout code, still i am not able to add the add-on

If there is no serious reason to use buildout, you may want to go the recommended way using pip instead.

If you are new to Plone and want to create a new Plone project, then see the documentation Admin guide — Plone Documentation v6.0 on how to set up a project with backend and frontend. You can find also a chapter on how to integrate an existing backend add-on.

As you are mentioning 'ploneconf.site', I guess you are reading the 'Mastering Plone development' training. So the 'voting' story 33. Roundtrip [The voting story] frontend, backend, and REST – Mastering Plone 6 development — Plone Training 2024 documentation may be of interest for you, as there a new backend add-on and a new frontend add-on is created (with cookieplone) and integrated in the Plone project.

A bit more background of your work would be helpful to help you.

  • existing or new project?
  • do you want to create a new add-on?
  • how did you create the add-on? you may want to use cookieplone. where did you create the add-on? is it already on github?

If you follow the documentation on docs.plone.org, a tutorial, or a training, then please mention, which one you follow. And post it with url. Plone is evolving and not all tutorials are immediately up to date.

We are happy to make good documentation and tutorials. Help us with your feedback!

@ksuess I want to create the jwt connector for the new project, I want to create my new add-on,
I am creating the new add-on using :- Write Your Own Python Add-On to Customize Plone – Mastering Plone 6 Development — Plone Training 2022 2022 documentation
I have follow this guide for adding the add-on but changes are not visible on plone site please help me out with this

You are reading a training documentation of 2022. Please check out the current one.

You may want to jump to 33. Roundtrip [The voting story] frontend, backend, and REST – Mastering Plone 6 development — Plone Training 2024 documentation

Can you help me which plone version I should follow and do the on premise setup which will help me to add the add-on easily

no

this works:

[buildout]
extends = https://dist.plone.org/release/6.0.13/versions.cfg
parts =
    instance
extensions =
    mr.developer

always-checkout = force
auto-checkout =
    ploneconf.site

[instance]
recipe = plone.recipe.zope2instance

user = admin:admin
http-address = 8080
eggs =
    Plone
    ploneconf.site


[sources]
ploneconf.site = fs ploneconf.site path=src

the trick is that extension= must be before the [instance] part.

As @ksuess suggested, you should also explore other ways to install Plone.

@yurj can you please let me know for which version of plone this method is working fine

https://dist.plone.org/release/6.0.13/versions.cfg

6.0.13

the same of the 2022 training: training_buildout/constraints.txt at main · collective/training_buildout · GitHub

but if you followed it, it should have worked from the beginning.