Second Video: • Build Executable Jar Create BAT File ...
::::::::::Building JAR File::::::::::
Maven Clean
Maven Install
==============================
Success:-
*********
Jump to "Create .bat file"
Error:-
*********
In my case Maven install gives error for Monte JAR. I am using monte-screen-recorder-0.7.7.jar externally. This version is not available in maven, So we need install into our .m2 repo.
lets look first in .me folder
------------------------------------
(C:\Users\HOME\.m2\repository\com)
------------------------------------
Observation:-
**************
We don't find the monte.
We need to install External JAR to .m2
Follow:- "Install External Jar to .m2"
::::::::::Install External Jar to .m2::::::::::
Command Syntax:-
------------------------------------
mvn install:install-file -Dfile=<Jar File Path/monte-screen-recorder-0.7.7.jar> -DgroupId=<Group ID> -DartifactId=<ArtifactId> -Dversion=<version> -Dpackaging=<packing>
---------
For me command values
+++++++++++++++++++++++++
Jar File Path:- F:/NVDev/ExternalJars/monte-screen-recorder-0.7.7.jar
Group ID:- com.monte.media
ArtifactId:- monte-screen-recorder
version:- 0.7.7
packaging:- jar
++++++++++++++++++++++++++
Lets re-create the command.
====================================
mvn install:install-file -Dfile=F:/NVDev/ExternalJars/monte-screen-recorder-0.7.7.jar -DgroupId=com.monte.media -DartifactId=monte-screen-recorder -Dversion=0.7.7 -Dpackaging=jar
Navigate to Project folder and run above command.
Success:- Jump to "Add Dependency in eclipse"
Error:- maven(mvn) issue may occur, If yes, then Follow below instructions. In my case maven is not installed on system. Jump to "Install Maven"
...............................................
::::::::::::::::Install Maven::::::::::::::::::
...............................................
--------------------------------------------------------
Download Maven (https://maven.apache.org/download.cgi)
--------------------------------------------------------
--------------------------------------------------------
Add "apache-maven-3.8.8 bin folder in System Properties" (C:\Users\HOME\Downloads\apache-maven-3.8.8\bin)
--------------------------------------------------------
--------------------------------------------------------
From your system, Right Click on "This PC" ---> Properties --> Advanced System Settings --> Environment Variable -->From System Variables, Edit on Path --> add in the end apache-maven-3.8.8 bin folder (;C:\Users\HOME\Downloads\apache-maven-3.8.8\bin) --> ok --> ok --> ok
--------------------------------------------------------
We may need to restart system let do.
Now again, open new command prompt and run mvn install command as
=========================================================
mvn install:install-file -Dfile=F:/NVDev/ExternalJars/monte-screen-recorder-0.7.7.jar -DgroupId=com.monte.media -DartifactId=monte-screen-recorder -Dversion=0.7.7 -Dpackaging=jar)
=========================================================
Now it should get install properly.
lets look first in .me folder
---------------------------------------------------------
(C:\Users\HOME\.m2\repository\com) ===> monte folder should be visible
---------------------------------------------------------
..............................................................
:::::::::::::::::::Add Dependency in eclipse::::::::::::::::::
..............................................................
Then now go to eclipse and add maven dependency in pom.xml as follow,
=========================================================
<dependency>
<groupId>com.monte.media</groupId>
<artifactId>monte-screen-recorder</artifactId>
<version>0.7.7</version>
</dependency>
==========================================================
=====================================
Now Maven clean,
=====================================
=====================================
Now Maven Install
=====================================
:::::::::::::::::::Create .bat file::::::::::::::::::
After maven install it should generate the .jar file as required in target folder. Clearly observe in the end it gives complete path of the jar file. Make sure build got success.
Now jar file it ready to use.
lets create a bat file as follow. you can create on any location. I prefer to create it on Desktop. It is kind of an standard-alone application.
===============================
@echo
cd C:\Users\HOME\Downloads\videoRec\videoRec\target
java -jar videoRec-0.0.1-SNAPSHOT.jar
f:
cd F:\IonicApp\YouTubeMaker2
start ionic serve
pause;
===============================
save file with filename.bat
Note:- My Java based spring-boot project is on C:\Users\HOME\Downloads\videoRec\videoRec
And my ionic-angular application is on F:\IonicApp\YouTubeMaker2.
Give there your own paths to make them run.
Смотрите видео Install Maven and Adding External Jar to maven онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Vijayapratap Reddy 11 Ноябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 21 раз и оно понравилось 0 людям.