On 8/31/12 1:01 PM, "Jamshid Afshar" <[email protected]> wrote:
>1) Is jmdns 2.1 on maven and is <groupId> "jmdns" correct? I created a >pom.xml to build our CAStorSDK.jar but get this error with that jmdns >dependency: > >[snip] >If I use <groupId> "org.jvnet.hudson" it works. This is the correct groupId > >2) How do I publish our CAStorSDK.jar (which is open source) to maven >central? What's the <repository> url for Apache Maven Central? Do I >need any special credentials? > >I tested with pom.xml publishing to a <repository> >file:///tmp/repository/maven2 and that worked -- "mvn deploy" created >the directory and contents. I could then reference that file system >repository in another pom.xml to build a simple app. > >Thanks, >Jamshid See here for an overview of the process: http://maven.apache.org/repository/index.html. The easiest way seems to be to get into the OSSRH repository: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+ Usage+Guide > >On Thu, Aug 30, 2012 at 2:49 AM, Hugo Trippaers ><[email protected]> wrote: >> Hey Chiradeep, >> >> Jmdns is available from maven directly, so you can add the following >>piece to the dependency list in the pom.xml: >> >> <dependency> >> <groupId>jmdns</groupId> >> <artifactId>jmdns</artifactId> >> <version>2.1</version> >> </dependency> >> >> As CAstorSDK doesn't seem to be on maven, so in that case we have to >>tell the developer to download it into the deps directory himself and we >>can add the following to the file install-non-oss.sh: >> >> mvn install:install-file -Dfile=CAStorSDK.jar >>-DgroupId=com.cloud.castorsdk -DartifactId=castorsdk -Dversion=1.0 >>-Dpackaging=jar >> >> And this to the pom.xml >> >> <dependency> >> <groupId>com.cloud.castorsdk</groupId> >> <artifactId>castorsdk</artifactId> >> <version>1.0</version> >> </dependency> >> >> >> Cheers, >> >> Hugo >> >> -----Original Message----- >> From: Chiradeep Vittal [mailto:[email protected]] >> Sent: Wednesday, August 29, 2012 11:56 PM >> To: CloudStack DeveloperList >> Subject: Adding CAStor SDK jar >> >> I am trying to merge this patch [1] into Apache master. It brings in a >>new jar file CAStorSDK.jar and adds a dependency to jmdns-2.1.jar As >>discussed in [2], these jars cannot be checked in. >> >> Under the new maven build system, how do we bring in these dependencies? >> >> Thanks >> >> [1] https://reviews.apache.org/r/6473/ >> [2] http://goo.gl/033PO >>
