I have a project divided into several sub-modules (each of them are jar
libraries):
myapp
myapp-commons
myapp-client
myapp-server
I've configured my pom.xml
in order to create 3 assemblies (client.zip
, oracle.tar.gz
and server.tar.gz
) that are finally stored in the myapp/target
directory.
I want now is to distribute two of them (oracle.tar.gz
and server.tar.gz
) to a server using FTP.
Even if I didn't try yet, I know that I can do that quite easily using some lines of Ant inside my pom.xml
, but I don't really like this option (I will solve my problem with Ant only if there are no other solution).
There are some SO questions (here or here) that offer solutions for that.
My question is to know if there is a better way to do that? I know about the Wagon Maven2 plugin but I didn't succeed in configuring it in order to deploy the assemblies (and not the JAR created).