Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: where to store examples source code?

Tags:

maven

Currently I'm working on open source project. There exists bunch of java classes which are simple examples.

How should I organize this project with maven. Should I provide some packaging for them ?

like image 426
Igor Konoplyanko Avatar asked Sep 09 '26 21:09

Igor Konoplyanko


1 Answers

Put the examples in a separate project and add your main project as a dependency. Package them according to what kind of code they are. (e.g. if the samples build a webapp, make the packaging a war)

like image 87
artbristol Avatar answered Sep 12 '26 11:09

artbristol