DevOps Classroom notes 05/Apr/2025

Maven Contd..

  • Maven Remote Repositories can be hosted using Many tools
    • Jfrog Artifactory
    • Nexus
    • Github Pacakges
    • Azure Artifacts

Lets redefine CI

Activity: Build a Java Project

  • This project requires jdk 17 and maven 3.9.9
  • This requires downloading and setting up maven, refer classroom video for steps

Activity: Build a Java Project which has maven wrapper

  • This project requires jdk 17 and maven 3.9.9
./mvnw package

Gradle

  • This was introduced by google for building andriod projects
  • Gradle has features for both ant and maven
  • Gradle has a feature of incremental build

Compare Maven and Gradle

Here’s how some common tasks compare between Maven and Gradle:

Task Maven Command Gradle Command
Clean mvn clean gradlew clean
Compile mvn compile gradlew build
Run Tests mvn test gradlew test
Package JAR mvn package gradlew jar
Add Dependencies ` in POM| Add independencies {}`

Building .net core projects

Building reactjs projects using npm

  • Lets try build,test, package of a react js aplication
  • todoMvc is sample repo
  • To install node and npm i prefer nvm
  • Basic steps: Navigate to package.json to find out scripts
  • Generally
npm install
npm run build
npm run test
  • There are other alternatives like npx, yarn etc…
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%