![]() So we can use these defaults to get building our. jar file will be found in the src/main/resources directory ![]() jar file will be found in the directory src/main/java and any additional resources that should be copied into the. There are similar conventions that Maven uses, for example Maven expects that the Java source code to be compiled and packaged within the. jar file, we don't have to tell Maven what packaging to use. Maven uses convention over configuration, this means that you only need to tell Maven the things that are different from the defaults.įor example, the default packaging is jar, so conveniently for us here, as we want to build a. We save the project model in a file called pom.xml Convention over configuration ![]() This gives us the following project model 4.0.0 java-archive 1.0-SNAPSHOT jar file for local consumption only, so we will use the coordinates
0 Comments
Leave a Reply. |