
Building jar: C:\dev\workspace\aproject\target\Īfter the maven command has completed, we can see the normal jar artifact (aproject-1.1.jar) and the source jar file () have been generated for the project. Removing: jar from forked lifecycle, to prevent recursive invocation. Building jar: C:\dev\workspace\aproject\target\aproject-1.1.jar Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 sec

jar/.war file into your local Maven repository. For first time users, it is recommended that you step through the material in a sequential fashion. Surefire report directory: C:\dev\workspace\aproject\target\surefire-reports Install will then compile, test & package your Java project and even install/copy your built. This guide is intended as a reference for those working with Maven for the first time, but is also intended to serve as a cookbook with self-contained references and solutions for common use cases. Compiling 1 source file to C:\dev\workspace\aproject\target\test-classes Compiling 1 source file to C:\dev\workspace\aproject\target\classes Using default encoding to copy filtered resources. Deleting directory C:\dev\workspace\aproject\target The console output of "mvn clean package" is shown here: Console output for 'mvn clean package' on 'aproject' project I'll perform a "mvn clean package" on "aproject" to generate the normal jar file and the source jar file. pom.xml 4.0.0 com.maventest aproject jar 1.1 aproject junit junit 3.8.1 test maven-source-plugin attach-sources jar wagon-webdav 1.0-beta-2 archiva.internal Internal Release Repository dav: archiva.snapshots Internal Snapshot Repository dav: To have the JAR available as a dependency that I can bring in using a normal maven include, I can install the JAR locally to my.
#DOES MAVEN INSTALL INCLUDE PACKAGE FULL#
Here is the full pom.xml file for a project called "aproject" that utilizes the maven-source-plugin.

maven-source-plugin attach-sources jar and packages your app, and the appengine:deploy goal does the following. By default this goal attaches to the package phase of the maven S W default lifecycle. If Maven is installed, a long string of information beginning with Apache Maven. It specifies the "jar" goal, which is the goal that generates the source jar file. Here is a plugin entry from a pom.xml file that includes the "maven-source-plugin".

Maven S W does a great job of automating this process. Deploying this source jar to a remote repository can be useful for other developers so that they can 'attach source' and debug into the project source code.
#DOES MAVEN INSTALL INCLUDE PACKAGE CODE#
The maven-source-plugin can be used to generate a source code jar W file for a project. Ive been thinking about the installation I did of Node and I remembered that when I finished installing Node, it showed the following message asking to install.
