surjit / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

java: provide maven descriptors for oauth #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Maven (http://maven.apache.org/) is a software project management and
comprehension tool. When a java project provides a POM descriptor it ease
the adoption of the library to other developers that use maven to build
their projects.

Here is a patch that add maven support to oauth. As side effect, now you
can run the example applications without needing any servlet
container..simply from the command line:

juan@dinah ~/src/oauth/example/oauth-provider $  mvn
org.mortbay.jetty:maven-jetty-plugin:run

starts a servlet container that it can be accessed using:
   http://localhost:9090/oauth-provider/

(Also it would be nice to get the jars and poms deployed at
http://repo1.maven.org/maven2/)

Regards,
   Juan.

Original issue reported on code.google.com by jcodagn...@gmail.com on 24 Dec 2007 at 5:17

Attachments:

GoogleCodeExporter commented 9 years ago
I'm attaching a new, slightly tweaked patch: /tmp/maven-r2.diff.  The new patch 
adds
support for automatically creating a maven repository in svn to make it easy for
other projects to depend on the OAuth code.

Running 'mvn deploy' followed by 'svn add maven' will create the maven 
repository in
subversion.

I added these lines to pom.xml:

+  <distributionManagement>
+    <repository>
+      <id>oauth-repo</id>
+      <name>Local OAuth Repository</name>
+      <url>file:./maven</url>
+    </repository>
+  </distributionManagement>

Original comment by eaton.li...@gmail.com on 29 Jan 2008 at 1:05

Attachments:

GoogleCodeExporter commented 9 years ago
I applied Eaton's patch, revised it a bit and committed revision 436.  This 
issue 
can be closed, I think.

Original comment by jmkrist...@gmail.com on 29 Jan 2008 at 5:25

GoogleCodeExporter commented 9 years ago

Original comment by jmkrist...@gmail.com on 29 Jan 2008 at 5:26