Igor Konoplyanko
Igor Konoplyanko

Reputation: 9374

Maven: where to store examples source code?

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 ?

Upvotes: 3

Views: 91

Answers (1)

artbristol
artbristol

Reputation: 32407

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)

Upvotes: 3

Related Questions