grnq / joid

Java OpenID = JOID OpenID providers and relying parties for OpenID 1.1 and 2.0
Other
4 stars 0 forks source link

New build configuration + OSGi enabled #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Changes:

• Created new build configuration primarily driven by Maven 2+
      o Setup new clean multi-project configuration
              •   joid-tsik – ./tsik
              •   joid-api – ./api
              •   joid-examples-consumer ./examples/consumer 
              •   joid-examples-server ./examples/server
              •   joid-store-hibernate ./stores/hibernate
      o Ant build uses maven-ant-tasks without need to install maven with following ant targets:
              •   clean
              •   build (also runs tests which must pass to build jars)
              •   javadocs
              •   test
              •   all => clean, build, javadocs

• New build benefits:
      o No longer storing version-less jars in svn under ./lib
      o Enabled OSGi Bundle generation: metadata added to jar manifest
      o Easily start up web application for server example using embedded jetty in both IDE and command line:
              •   cd ./examples/server; mvn jetty:run
              •   in eclipse run ./examples/server/src/test/java/org/verisign/joid/examples/server/Start as application in run or debug mode
      o Easily start up example Associate and Authenticate CLI applications in ./examples/consumer using the following:
              •   mvn –Passociate –Darg=http://foo/bar test
              •   mvn –Pauthenticate –Darg=foobar test
      o Hibernate DbStore no longer uses mysql but uses hsql embedded database for testing so users don’t have to install mysql to run the tests. DbStore tests run out of the box with hsql now.
      o Hibernate jars no longer needed along with other project jars since Maven and the Ant maven tasks download all dependencies with the correct versions.
      o To facilitate deployment to maven repository the tsik jar is wrapped by the joid-tsik.jar OSGi bundle.
      o All tests run in mvn install target and are required to pass before building the jars in the API.

Original issue reported on code.google.com by akaras...@gmail.com on 29 Mar 2011 at 3:30

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by birkan.d...@gmail.com on 21 Jul 2011 at 10:50