Search Hadoop and all its sub project:

Switch to Threaded View
Subject: Re: control over artifact and version when packaging and deploying to maven local repo
Ok, a few things:

1) I can build with

sbt "++2.10.2 update"
sbt "++2.10.2 package"
sbt "++2.10.2 assembly-package-dependency"

but the following asks for a PGP passphrase

sbt "++2.10.2 publish-local"

 and fails

Please enter PGP passphrase: ******** /Users/reefedjib/.sbt/gpg/secring.asc (No such file or directory)

This seems related:  I do not know my passphrase if it is not my user's password.
2) then I decide to publish to the local maven repo, with the following commands:
Robs-MacBook-Pro:kafka reefedjib$ mvn install:install-file -Dfile=core/target/scala-2.10/kafka_2.10-0.8.0-beta1.jar -DgroupId=org.apache -DartifactId=kafka_2.10 -Dversion=0.8.1 -Dpackaging=jar

Robs-MacBook-Pro:kafka reefedjib$ mvn install:install-file -Dfile=core/target/scala-2.10/kafka-assembly-0.8.0-beta1-deps.jar -DgroupId=org.apache -DartifactId=kafka-deps-2.10 -Dversion=0.8.1 -Dpackaging=jar

these work AND I get control over what they are published as.

Robs-MacBook-Pro:kafka reefedjib$ ll ~/.m2/repository/org/apache/kafka_2.10/0.8.1/
total 4896
drwxr-xr-x  5 reefedjib  staff      170 Aug  3 09:44 .
drwxr-xr-x  4 reefedjib  staff      136 Aug  3 09:44 ..
-rw-r--r--  1 reefedjib  staff      172 Aug  3 09:55 _maven.repositories
-rw-r--r--  1 reefedjib  staff  2494775 Aug  3 09:53 kafka_2.10-0.8.1.jar
-rw-r--r--  1 reefedjib  staff      464 Aug  3 09:44 kafka_2.10-0.8.1.pom

Robs-MacBook-Pro:kafka reefedjib$ ll ~/.m2/repository/org/apache/kafka-deps-2.10/0.8.1/
total 52616
drwxr-xr-x  5 reefedjib  staff       170 Aug  3 09:44 .
drwxr-xr-x  4 reefedjib  staff       136 Aug  3 09:44 ..
-rw-r--r--  1 reefedjib  staff       182 Aug  3 09:56 _maven.repositories
-rw-r--r--  1 reefedjib  staff  26929642 Aug  3 09:54 kafka-deps-2.10-0.8.1.jar
-rw-r--r--  1 reefedjib  staff       469 Aug  3 09:44 kafka-deps-2.10-0.8.1.pom

allowing me to reference them as:

libraryDependencies ++= Seq(
  "org.apache" %% "kafka" % "0.8.1",
  "org.apache" %% "kafka-deps" % "0.8.1"

Note that I have a resolver defined:
  "Local Maven Repo" at "file://" + Path.userHome + "/.m2/repository"

3) If I could publish-local AND control the naming of the modules, then I could just skip the mvm install steps.  

So, a couple of questions:
Have you seen this publish-local issue before, on a macbook?
Is there a way I can specify the artifactId and version for use by sbt when I publish-local into ivy?

On Aug 3, 2013, at 9:10 AM, Joe Stein <[EMAIL PROTECTED]> wrote:

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB