0

I'd like to automatize the following:

  • when I build my Java SE project on Netbeans, the jar and its dependencies should be uploaded to a server and started.

How do I do that? If scripting or config some xml is involved, Where could I find some tutorial on the syntax to be used?

assylias
  • 310,138
  • 72
  • 642
  • 762
seinecle
  • 9,311
  • 14
  • 59
  • 111

1 Answers1

2

You should use the Maven Invoker Plugin for this and set a postBuildHookScript, as described here. From the script, handle the JAR upload. This answer discusses uploading files to remote servers using bash.

Community
  • 1
  • 1
Emile Pels
  • 3,486
  • 1
  • 16
  • 22