Before my pet projects become serious enough to deserve real version control (and its headaches) I like to just email myself the sources after I worked for a while. How can this be done easily with maven?
A:
I don't know why you wouldn't set up version control, it is amazingly simple.
stimms
2009-02-25 19:30:49
+1
A:
You would use an assembly using the src
descriptor to accomplish the wrapping up of all the sources and the pom.xml into a nice zip that you could then manually email to yourself. If you wanted to get really fancy, you could use the Maven ant plugin to call the ant task that can send emails.
The core command you would run from the command line would be:
mvn assembly:assembly
The assembly plugin usage page gives some great detail on using this plugin to aggregate everything into a bundle (zip).
Matthew McCullough
2009-02-26 04:13:35