Dynamic Artifact Id Name in Maven

In this tutorial, i will give you an example how to create Artifact Id dynamically using maven. below my pom.xml: <groupId>sample-project</groupId> <artifactId>sampleproject–${your_parameter}</artifactId> <version>0.1.0</version><groupId>sample-project</groupId> <artifactId>sampleproject–${your_parameter}</artifactId>

Read More

How To Include All Dependencies Jar into Main Jar Maven

My pom.xml : <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>prepare-package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/classes/lib</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin>

Read More

How To Connect JAVA To MongoDB

In this tutorial, I want to share my experience in connecting JAVA to MongoDB. My maven dependencies: <dependency> <groupId>org.mongodb</groupId> <artifactId>mongodb-driver</artifactId> <version>3.9.0</version> </dependency> <dependency> <groupId>org.mongodb</groupId>

Read More

JAVA Web Crawler Using Jsoup

In this tutorial, I want to share my learning experience about web crawler using jsoup framework. For the beginning, I write a simple code

Read More