Powered by Blogger.

Friday 6 October 2023

How to add External Jar file in Pom.xml file

1 comment :
Add Externals Jar file in Pom.xml
There are many ways to configure external jar file but we are telling you an easy way, for this you should have whatever jar file you want to add, after that you know the .m2/repository folder.
Add dependencies in pom.xml and after saving the file, a folder is auto created inside the .m2/repository which is named after the groupId in dependency, such a groupId name is a143mkJar.
For Example : I have two Jar file one is EncryptDecryptA143mk-2.7.7.jar and Ldap-a143mkJar-2.7.7.jar
groupId is a143mkJar
artifactId is EncryptDecryptA143mk 
version is 2.7.7 

Add dependences in pom.xml:

Put the Jar file in maven repository Directory like this.
.m2/repository/a143mkJar/EncryptDecryptA143mk/2.7.7/EncryptDecryptA143mk-2.7.7.jar
.m2/repository/a143mkJar/Ldap-a143mkJar/2.7.7/Ldap-a143mkJar-2.7.7.jar

Tuesday 19 September 2023

How to PACKAGE Spring Boot application to JAR and WAR

No comments :
Maven is a popular build tool, that takes your project’s Java source code, compiles it, tests it and converts it into an executable Java program: either a .jar or a .war file.  
Package Spring Boot application to JAR OR WAR file:
The default packaging type of a Spring Boot project is jar if the attribute is not present in the pom.xml file. It’s better to check your project’s pom.xml file to make sure that the packaging type is jar or War:

If you use an IDE such as Eclipse or Spring Tool Suite, right-click on the project, then select Run As > Maven Configuration Like:
  • CLEAN
  • BUILD
  • INSTALL
  • PACKAGE.................etc.







Wednesday 5 July 2023

Simple LDAP sign-on Authentication Using Ldap-a143mkJar

1 comment :
LDAP sign-on is an authentication scheme that allows a user to log in with a single ID to any of several related, independent, software systems or web applications. In this post user will login through Outlook Mail. Ldap-a143mkJar.jar
Process of Ldap sign-On (LSO) Authentication:



Download the jar file and implement some methods / functions have been used, the names of the methods are as follows:

Call Class object LdapClient ldapClientClass=new LdapClient();
  1. A143mkLdapConnection(ldapUrl, ldapDnConn, userEmailId, password);
There are some parameters in methods, which we initialize by creating configuration object like this.

String ldapUrl= "ldap://172.0.0.0:389/"; 
String lDapDnConn="dc=domainName,dc=com"; 
String userEmailId="EmailMail@mailDomen.com"; 
String password="mailPassword"; 

How to create a project/main class/other class to follow us.




while creating the controller/main class Ldapconn.java.


Output :