I want to create a jar file containing downloaded and processed Internet files. And I want to do it using Mave. So, instead of compiling my .java classes and create a jar with them, I want to execute my code (who gets the files, process them, etc) and then package the resulting files in a jar.
How is the best approach to accomplish this? Maybe a plugin?
Thanks.
EDIT: What I want is a Maven project that, when you execute mvn:package or mvn:install finally you get a jar file, as always. The difference is that this files must be downloaded and processed by my code.
You could use the Maven Exec plugin.