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
  • 321,522
  • 82
  • 660
  • 783
seinecle
  • 10,118
  • 14
  • 61
  • 120

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,837
  • 1
  • 15
  • 23