davideuler / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
0 stars 0 forks source link

Migrate to maven #481

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to follow the defacto standard of open source java projects, it could 
be really cool to have gitblit on maven.

Moreover, in order to create simple jar of custom 
com.gitblit.auth.AuthenticationProvider or com.gitblit.IUserService, it would 
be nice to have those interfaces in a specific jar, available on maven central 
repository.

Original issue reported on code.google.com by netan...@gmail.com on 6 Aug 2014 at 4:04

GoogleCodeExporter commented 9 years ago
Thanks for the suggestion but Gitblit will not be switching to Maven anytime 
soon.

Original comment by James.Mo...@gmail.com on 6 Aug 2014 at 4:12

GoogleCodeExporter commented 9 years ago
And even if I help (create pull request on migrating to maven) on that point?

Original comment by netan...@gmail.com on 6 Aug 2014 at 4:14

GoogleCodeExporter commented 9 years ago
Last time I checked, Maven can not generate multiple artifacts from a single 
project.  Maybe this is no longer true.  I'll review whatever you'd like to 
share, but my expectation is that I will not use it so I am not sure if it is 
worth your effort.

Original comment by James.Mo...@gmail.com on 6 Aug 2014 at 4:20

GoogleCodeExporter commented 9 years ago
Actually, what I do in my projects is simply multiple folders, one for each 
artifact.

The interest of Maven is to have your code standardized, and more easily 
sharable with other Java projects & libs (via Maven central).

Moreover, when you have your well defined pom.xml, you can load the whole 
project in any IDE via their Maven integration plugin.

Original comment by netan...@gmail.com on 6 Aug 2014 at 4:26

GoogleCodeExporter commented 9 years ago
Yeah, I know. I do use Maven for other things, but I am not interested in 
refactoring the project into multiple modules to use Maven reactor builds.

How about creating an Ant target to build a jar of the classes you require?  
That would be much quicker.

Alternatively, you could just reference the gitblit.jar from my self-hosted 
Maven repo[1].

[1]: http://gitblit.github.io/gitblit-maven

Original comment by James.Mo...@gmail.com on 6 Aug 2014 at 5:00