Hi I have 2 projects (A and B). A has a dependency of B. Now I want to create a jar file of A which should have properties file of A and also properties file of B. I have unpacked the B and got the properties file of B. But not able to move that file to the root directory
In case you want to create a runnable jar, add or replace the last dependency set with the following: / GROUPID:ARTIFACTID:jar:* true Replace GROUPID and ARTIFACTID with your group id and artifact id. This will unpack the jar in the base directory so that the packages with your classes to run and the META-INF folder that will tell the programm what to execute when the jar is launched. You can still put this jar somewhere else with another dependencySet if you so desire. Next, you have to configure maven to run your main class. In order to do this, add the following to build/plugins/plugin/configuration/ in of your pom.xml:
PACKAGE.CLASS
Replace PACKAGE and CLASS with the package and the class name of your main class. This will tell maven to write an entry to the MANIFEST.MF containing the location of the main class.
Sir, I made one project in maven using ecllipse IDE. I used many images/icons and fxml files for project. used shade pluging to build it with all dependencies. When the jar with all dependecies is made it gave errors that unable to locate the resource. it shows the alert window which i made during exception. Unable to understand what to do. Kindly provide some solution. I don't have complete knowledge on maven. I used it to make use of different dependencies. The project works fine in Ecllipse IDE.
I am getting error URI not registered for the headers, could you tell me how to resolve it, I tried alt + enter and all the 4 options but because of company security the download is blocked. So I am stuck here
Intermediate to advanced level of maven. Very well done screencast . Please do more of these.
You have a wonderful, and to the point teaching style. Please make more videos on Java development. Thanks
Good video. Only thing is command line was cut off so had to wait till you hit return to see what you typed.
Awesome Screencast. Very good introduction to Assembly plugin and its uses. Could you please give an overview on module sets too
Hi I have 2 projects (A and B). A has a dependency of B. Now I want to create a jar file of A which should have properties file of A and also properties file of B. I have unpacked the B and got the properties file of B. But not able to move that file to the root directory
In case you want to create a runnable jar, add or replace the last dependency set with the following:
/
GROUPID:ARTIFACTID:jar:*
true
Replace GROUPID and ARTIFACTID with your group id and artifact id.
This will unpack the jar in the base directory so that the packages with your classes to run and the META-INF folder that will tell the programm what to execute when the jar is launched. You can still put this jar somewhere else with another dependencySet if you so desire. Next, you have to configure maven to run your main class. In order to do this, add the following to build/plugins/plugin/configuration/ in of your pom.xml:
PACKAGE.CLASS
Replace PACKAGE and CLASS with the package and the class name of your main class. This will tell maven to write an entry to the MANIFEST.MF containing the location of the main class.
Thank you for your sharing, it saves my life🙃
how bro?
This is awesome. Really helpful. Thank you David.
Sir, I made one project in maven using ecllipse IDE. I used many images/icons and fxml files for project. used shade pluging to build it with all dependencies. When the jar with all dependecies is made it gave errors that unable to locate the resource. it shows the alert window which i made during exception. Unable to understand what to do. Kindly provide some solution. I don't have complete knowledge on maven. I used it to make use of different dependencies. The project works fine in Ecllipse IDE.
Thanks dude, it really helped.
very much helpful,,, thanks David... for sharing it
Thanks . it was a nice explanation.
save my life , thanks mate.
Nice one.very good flow.Thanks a lot for this video
nice clear presentation. tks
Helped me a lot. Thanks
10:47 saved my life today
Thank you. Immensely helpful.
Very Helpful
Thank you!
Thank you. Its helpfull
Thanks!
Thanks David..
nice one.
The header of the example.xml was cut off:
I am getting error URI not registered for the headers, could you tell me how to resolve it, I tried alt + enter and all the 4 options but because of company security the download is blocked. So I am stuck here
Thank you!