stackoverflowmailer / atunit

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

Maven repository #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm an avid Maven user and I would very much like to use AtUnit. Since AtUnit 
is not packaged and 
deployed to a Maven repository it's a bit hard. I know that I can install 
AtUnit locally / deploy to my 
own repository, but that is a bit of a hackish way of doing it IMO.

Original issue reported on code.google.com by gudmundu...@gmail.com on 19 Nov 2008 at 10:30

GoogleCodeExporter commented 9 years ago
+1!

Original comment by arn...@gmail.com on 19 Nov 2008 at 11:38

GoogleCodeExporter commented 9 years ago
I've managed to make a pom.xml file that builds AtUnit and runs all the tests 
successfully. The downside is 
that if it is used, it will pull in all of the optional deps of AtUnit. The 
only way around that is to split the 
project up into several modules, one module per framework, such as: 
atunit-core, atunit-spring, atunit-
guice, atunit-easymock and atunit-jmock.

The atunit-core module would have to be independant of the other modules to 
avoid cross deps. By the looks 
of it, AtUnit.java refers directly to all of the "submodules", which means that 
there is some refactoring that has 
to be done.

I would like to get some input from Logan before I continue with this.

regards,
Guðmundur Bjarni

Original comment by gudmundu...@gmail.com on 19 Nov 2008 at 11:42

Attachments:

GoogleCodeExporter commented 9 years ago
I took this a bit further and forked the project onto github (using git-svn) to 
track
all the changes I made.

I've broken AtUnit up into several Maven modules and changed a bit of code to 
make
everything play nicely.

The most prominent change is that I killed off the Container.Option.* and
MockFramework.Option.*. I changed the @Container and @MockFramework annotations 
so
that they behave in exactly the same way as @ContainerClass and 
@MockFrameworkClass
did, thus making those annotations obsolete. This is a bit of an API breakage 
but, a
simplification and improvement in my opinion.

If you want to check it out, head to: http://github.com/gudmundur/atunit

regards,
Guðmundur Bjarni

Original comment by aquato...@gmail.com on 20 Nov 2008 at 1:22

GoogleCodeExporter commented 9 years ago
any chance this will get into maven central one time? :)

Original comment by avithan@gmail.com on 29 Nov 2010 at 8:06

GoogleCodeExporter commented 9 years ago
Read this to embed a repository in your project in a few lines:

Neatest solution:
http://blog.dub.podval.org/2010/01/maven-in-project-repository.html

Original comment by basilt...@gmail.com on 14 Jun 2012 at 12:07

GoogleCodeExporter commented 9 years ago
Any chance we'll ever get a Maven artifact?

Original comment by exabr...@gmail.com on 10 Jul 2012 at 3:06