Using source code to compile,loss some modle,like LDAP

Hello Team!

I’m using the source code to compile the nexus repository.
Could not find the ldap functionality.
I followed the instructions in the README. MD file:

The compile result is success:

By filtering the compile log, no fields about LDAP are filtered out.
The nexus start log no fields about LDAP are filtered out too.
Does the default build of the Nexus source code install LDAP?
Or maybe I missed some complie operation?

These are installed modules

[INFO] Reactor Summary for org.sonatype.nexus:nexus-parent 3.38.1-01:
[INFO]
[INFO] org.sonatype.nexus:nexus-parent .................... SUCCESS [  0.538 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport . SUCCESS [  0.013 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-commons SUCCESS [  0.012 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-db SUCCESS [  0.012 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-goodies SUCCESS [  0.013 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-groovy SUCCESS [  0.010 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-guice SUCCESS [  0.010 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-httpclient SUCCESS [  0.013 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-internal SUCCESS [  0.011 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-jetty SUCCESS [  0.009 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-jruby SUCCESS [  0.009 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-logging SUCCESS [  0.012 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-maven SUCCESS [  0.010 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-metrics SUCCESS [  0.011 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-osgi SUCCESS [  0.011 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-other SUCCESS [  0.015 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-rest SUCCESS [  0.010 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-security SUCCESS [  0.012 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-testing SUCCESS [  0.009 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-ui SUCCESS [  0.008 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-all SUCCESS [  0.009 s]
[INFO] org.sonatype.nexus:nexus-components ................ SUCCESS [  0.273 s]
[INFO] org.sonatype.nexus:nexus-testsupport ............... SUCCESS [  0.755 s]
[INFO] org.sonatype.nexus.buildsupport:extjs-maven-plugin . SUCCESS [  1.776 s]
[INFO] org.sonatype.nexus.buildsupport:nexus-buildsupport-it-deps SUCCESS [  0.022 s]
[INFO] org.sonatype.nexus:nexus-task-logging .............. SUCCESS [  1.234 s]
[INFO] org.sonatype.nexus:nexus-pax-logging ............... SUCCESS [  0.803 s]
[INFO] org.sonatype.nexus:nexus-features .................. SUCCESS [  0.312 s]
[INFO] org.sonatype.nexus.assemblies:nexus-assemblies ..... SUCCESS [  0.014 s]
[INFO] org.sonatype.nexus.assemblies:nexus-startup-feature  SUCCESS [  1.348 s]
[INFO] org.sonatype.nexus:nexus-common .................... SUCCESS [  2.687 s]
[INFO] org.sonatype.nexus:nexus-bootstrap ................. SUCCESS [  0.538 s]
[INFO] org.sonatype.nexus.assemblies:nexus-boot-feature ... SUCCESS [  0.060 s]
[INFO] org.sonatype.nexus:nexus-crypto .................... SUCCESS [  0.471 s]
[INFO] org.sonatype.nexus:nexus-distributed-event-service-api SUCCESS [  0.206 s]
[INFO] org.sonatype.nexus:nexus-audit ..................... SUCCESS [  0.245 s]
[INFO] org.sonatype.nexus:nexus-formfields ................ SUCCESS [  0.291 s]
[INFO] org.sonatype.nexus:nexus-validation ................ SUCCESS [  0.686 s]
[INFO] org.sonatype.nexus:nexus-jmx ....................... SUCCESS [  0.367 s]
[INFO] org.sonatype.nexus:nexus-cache ..................... SUCCESS [  0.308 s]
[INFO] org.sonatype.nexus:nexus-rest ...................... SUCCESS [  0.696 s]
[INFO] org.sonatype.nexus:nexus-test-common ............... SUCCESS [  0.118 s]
[INFO] org.sonatype.nexus:nexus-security .................. SUCCESS [  2.432 s]
[INFO] org.sonatype.nexus:nexus-thread .................... SUCCESS [  0.368 s]
[INFO] org.sonatype.nexus:nexus-transaction ............... SUCCESS [  0.367 s]
[INFO] org.sonatype.nexus:nexus-orient .................... SUCCESS [  2.681 s]
[INFO] org.sonatype.nexus:nexus-guice-servlet ............. SUCCESS [  0.215 s]
[INFO] org.sonatype.nexus:nexus-datastore-api ............. SUCCESS [  0.289 s]
[INFO] org.sonatype.nexus:nexus-blobstore-api ............. SUCCESS [  0.343 s]
[INFO] org.sonatype.nexus:nexus-supportzip-api ............ SUCCESS [  0.331 s]
[INFO] org.sonatype.nexus:nexus-scheduling ................ SUCCESS [  0.749 s]
[INFO] org.sonatype.nexus:nexus-blobstore ................. SUCCESS [  0.822 s]
[INFO] org.sonatype.nexus:nexus-webresources-api .......... SUCCESS [  0.228 s]
[INFO] org.sonatype.nexus:nexus-mime ...................... SUCCESS [  0.296 s]
[INFO] org.sonatype.nexus:nexus-extender .................. SUCCESS [  0.534 s]
[INFO] org.sonatype.nexus:nexus-blobstore-file ............ SUCCESS [  0.472 s]
[INFO] org.sonatype.nexus:nexus-capability ................ SUCCESS [  1.092 s]
[INFO] org.sonatype.nexus:nexus-commands .................. SUCCESS [  0.241 s]
[INFO] org.sonatype.nexus:nexus-email ..................... SUCCESS [  0.199 s]
[INFO] org.sonatype.nexus:nexus-httpclient ................ SUCCESS [  0.336 s]
[INFO] org.sonatype.nexus:nexus-servlet ................... SUCCESS [  0.259 s]
[INFO] org.sonatype.nexus:nexus-plugin-api ................ SUCCESS [  0.232 s]
[INFO] org.sonatype.nexus:nexus-datastore ................. SUCCESS [  0.396 s]
[INFO] org.sonatype.nexus:nexus-datastore-mybatis ......... SUCCESS [  0.477 s]
[INFO] org.sonatype.nexus:nexus-ssl ....................... SUCCESS [  0.332 s]
[INFO] org.sonatype.nexus:nexus-test-db ................... SUCCESS [  0.222 s]
[INFO] org.sonatype.nexus:nexus-upgrade ................... SUCCESS [  0.665 s]
[INFO] org.sonatype.nexus:nexus-base ...................... SUCCESS [  0.991 s]
[INFO] org.sonatype.nexus:nexus-extdirect ................. SUCCESS [  0.488 s]
[INFO] org.sonatype.nexus:nexus-rest-jackson2 ............. SUCCESS [  0.213 s]
[INFO] org.sonatype.nexus:nexus-rest-client ............... SUCCESS [  0.238 s]
[INFO] org.sonatype.nexus:nexus-siesta .................... SUCCESS [  0.471 s]
[INFO] org.sonatype.nexus:nexus-swagger ................... SUCCESS [  0.267 s]
[INFO] org.sonatype.nexus:nexus-ui-plugin ................. SUCCESS [01:53 min]
[INFO] org.sonatype.nexus:nexus-rapture ................... SUCCESS [03:28 min]
[INFO] org.sonatype.nexus:nexus-quartz .................... SUCCESS [  2.430 s]
[INFO] org.sonatype.nexus.assemblies:nexus-base-feature ... SUCCESS [  0.418 s]
[INFO] org.sonatype.nexus:nexus-repository-config ......... SUCCESS [  3.709 s]
[INFO] org.sonatype.nexus:nexus-repository-view ........... SUCCESS [  1.107 s]
[INFO] org.sonatype.nexus.bundles:nexus-thirdparty-bundles  SUCCESS [  0.037 s]
[INFO] org.sonatype.nexus.bundles:org.sonatype.nexus.bundles.elasticsearch SUCCESS [ 20.352 s]
[INFO] org.sonatype.nexus:nexus-elasticsearch ............. SUCCESS [  0.380 s]
[INFO] org.sonatype.nexus:nexus-selector .................. SUCCESS [  0.454 s]
[INFO] org.sonatype.nexus:nexus-webhooks .................. SUCCESS [  0.318 s]
[INFO] org.sonatype.nexus:nexus-repository-services ....... SUCCESS [  8.726 s]
[INFO] org.sonatype.nexus:nexus-repository ................ SUCCESS [  3.020 s]
[INFO] org.sonatype.nexus:nexus-repository-content ........ SUCCESS [ 26.522 s]
[INFO] org.sonatype.nexus:nexus-cleanup-config ............ SUCCESS [  2.781 s]
[INFO] org.sonatype.nexus:nexus-cleanup ................... SUCCESS [  0.979 s]
[INFO] org.sonatype.nexus:nexus-script .................... SUCCESS [  0.678 s]
[INFO] org.sonatype.nexus:nexus-core ...................... SUCCESS [ 11.042 s]
[INFO] org.sonatype.nexus.plugins:nexus-plugins ........... SUCCESS [  0.010 s]
[INFO] org.sonatype.nexus.plugins:nexus-audit-plugin ...... SUCCESS [  0.721 s]
[INFO] org.sonatype.nexus.plugins:nexus-ssl-plugin ........ SUCCESS [  0.952 s]
[INFO] org.sonatype.nexus.plugins:nexus-coreui-plugin ..... SUCCESS [02:17 min]
[INFO] org.sonatype.nexus.plugins:nexus-repository-httpbridge SUCCESS [  0.648 s]
[INFO] org.sonatype.nexus.plugins:nexus-repository-maven .. SUCCESS [  2.109 s]
[INFO] org.sonatype.nexus.plugins:nexus-script-plugin ..... SUCCESS [  2.766 s]
[INFO] org.sonatype.nexus.plugins:nexus-task-log-cleanup .. SUCCESS [  0.406 s]
[INFO] org.sonatype.nexus.plugins:nexus-blobstore-s3 ...... SUCCESS [  3.159 s]
[INFO] org.sonatype.nexus.plugins:nexus-blobstore-tasks ... SUCCESS [  0.998 s]
[INFO] org.sonatype.nexus.plugins:nexus-onboarding-plugin . SUCCESS [  0.417 s]
[INFO] org.sonatype.nexus.plugins:nexus-default-role-plugin SUCCESS [  0.447 s]
[INFO] org.sonatype.nexus.plugins:nexus-repository-apt .... SUCCESS [01:02 min]
[INFO] org.sonatype.nexus.plugins:nexus-repository-raw .... SUCCESS [  1.221 s]
[INFO] org.sonatype.nexus.plugins:nexus-restore-apt ....... SUCCESS [  0.539 s]
[INFO] org.sonatype.nexus.plugins:nexus-restore-raw ....... SUCCESS [  0.535 s]
[INFO] org.sonatype.nexus.plugins:nexus-restore-maven ..... SUCCESS [  0.519 s]
[INFO] org.sonatype.nexus.assemblies:nexus-core-feature ... SUCCESS [  0.143 s]
[INFO] org.sonatype.nexus.assemblies:nexus-cma-feature .... SUCCESS [  0.038 s]
[INFO] org.sonatype.nexus:nexus-main ...................... SUCCESS [  0.264 s]
[INFO] org.sonatype.nexus:nexus-oss-edition ............... SUCCESS [  0.231 s]
[INFO] org.sonatype.nexus:nexus-orient-console ............ SUCCESS [  0.126 s]
[INFO] org.sonatype.nexus.assemblies:nexus-base-template .. SUCCESS [02:18 min]
[INFO] org.sonatype.nexus:nexus-orient-component-migrator . SUCCESS [  1.621 s]
[INFO] org.sonatype.nexus:nexus-pax-exam .................. SUCCESS [  8.586 s]
[INFO] org.sonatype.nexus.plugins:nexus-example-content ... SUCCESS [  0.774 s]
[INFO] org.sonatype.nexus.testsuite:nexus-testsuite ....... SUCCESS [  0.056 s]
[INFO] org.sonatype.nexus.testsuite:nexus-docker-testsupport SUCCESS [  1.506 s]
[INFO] org.sonatype.nexus.testsuite:nexus-repository-testsupport SUCCESS [  4.193 s]
[INFO] org.sonatype.nexus.testsuite:nexus-repository-content-testsupport SUCCESS [  0.991 s]
[INFO] org.sonatype.nexus.testsuite:nexus-content-suite ... SUCCESS [  0.543 s]
[INFO] org.sonatype.nexus.testsuite:nexus-it-suite ........ SUCCESS [  1.142 s]
[INFO] org.sonatype.nexus.testsuite:nexus-it-suite-data ... SUCCESS [  0.203 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

And this is start log:
nexus-start-log.docx (35.7 KB)

Thank you.


Hi Smbands Shi,

Does the default build of the Nexus source code install LDAP?
Or maybe I missed some complie operation?

No, you’re not missing any compilation steps.
The LDAP authentication plug-in, among some other plug-ins, is not open source and is not published in sonatype/nexus-public repository. The LDAP, and some other plug-ins, are included only in binary distribution available on our download page.

:smiling_face_with_tear:
@dsawa Thank you for your quick reply.

Can I know how to add these plug-ins at source compile time?
I just want to add a page before I login.
By the way, Does the nexus support Two-factor authentication?

Thank you!

Can I know how to add these plug-ins at source compile time?

You can try by modifying your pom.xml to include them, but then you probably would also have either adjust Karaf configuration or instead try installing them as external plugins.

I just want to add a page before I login.

May I ask what are you trying to build? If it’s about branding, we already support it: Branding Capability

By the way, Does the nexus support Two-factor authentication?

Yes, if you use SAML authentication and your SAML provider supports it: SAML

@dsawa
Thanks for you reply.

You can try by modifying your pom.xml to include them, but then you probably would also have either adjust Karaf configuration or instead try installing them as external plugins.

I’m not developer,Do you have some examples or documents for installing them as external plugins?

May I ask what are you trying to build? If it’s about branding, we already support it: Branding Capability

Sure
We just want to add a verification page when login to Nexus,this page will be controll the login result.
When users input their username and password and press “login”,then Nexus will pop-up a page used to enter email verification code or SMS verification code.
except use Nexus Repository Pro, Can you give me some suggestions?How to do it?
Thank you again.

Try these resources:

Oh Yeah,Thanks a lot!!!

Let’s me try it.