Comments on: Adding Googles GData Java API to your maven repository http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/ thoughts on hardware, software, development and tech news Sun, 13 Jul 2014 10:40:36 +0000 hourly 1 http://wordpress.org/?v=3.2.1 By: Johng312 http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-193207 Johng312 Tue, 08 Jul 2014 07:58:13 +0000 http://www.techbits.de/?p=181#comment-193207 Purchase Generic Bactrim 800mg Without Prescription in Arlington ebfbededgffb Purchase Generic Bactrim 800mg Without Prescription in Arlington ebfbededgffb

]]>
By: nice man http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-79041 nice man Wed, 21 Dec 2011 05:10:24 +0000 http://www.techbits.de/?p=181#comment-79041 hi http://www.w3school.com hi
http://www.w3school.com

]]>
By: tom http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-67510 tom Tue, 27 Jul 2010 17:38:33 +0000 http://www.techbits.de/?p=181#comment-67510 ahghgh...those "while()" blocks above should be "while(<cmd>)" ahghgh…those “while()” blocks above should be “while(<cmd>)”

]]>
By: tom http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-67509 tom Tue, 27 Jul 2010 17:37:39 +0000 http://www.techbits.de/?p=181#comment-67509 Here's another variant on the windows theme, but for those *nix/osx inclined. Assuming you grab the "gdata-java.xxx.zip" file from http://code.google.com/p/gdata-java-client/downloads/list, here's a couple scripts I wrote to help install those from their exploded location into your company's repo: {code} install.pl #!/usr/bin/perl -w my $artifactId=$ARGV[0]; my $version=$ARGV[1]; my $jar=$ARGV[2]; die "must supply artifactId, version and jar on command line" unless ($artifactId && $version && $jar); my $cmd = "/usr/share/maven-2.1.0/bin/mvn deploy:deploy-file -DgroupId=com.google.gdata -DartifactId=$artifactId -Dversion=$version -Dfile=$jar -Dpackaging=jar -DgeneratePom=true -Durl=file:/// -Drepository="; print "executing command = $cmd\n"; open(CMD, "$cmd|") or die "Could not exec $cmd $!"; while() { print $_; } close(CMD); {code} installall.pl {code} #!/usr/bin/perl -w my @jars = `ls *.jar`; chomp(@jars); foreach my $jar (@jars) { #print "found jar $jar\n"; if($jar =~ /(.*)-(\d\.\d)\.jar/) { #print "\tartifact is $1 and version is $2\n"; my $cmd = "./install.pl $1 $2 $jar"; open(CMD, "$cmd|") or die "Could not execute $cmd $!"; while() { print $_; } close(CMD); } } {code} Here’s another variant on the windows theme, but for those *nix/osx inclined. Assuming you grab the “gdata-java.xxx.zip” file from http://code.google.com/p/gdata-java-client/downloads/list, here’s a couple scripts I wrote to help install those from their exploded location into your company’s repo:

{code}
install.pl
#!/usr/bin/perl -w

my $artifactId=$ARGV[0];
my $version=$ARGV[1];
my $jar=$ARGV[2];
die “must supply artifactId, version and jar on command line” unless ($artifactId && $version && $jar);

my $cmd = “/usr/share/maven-2.1.0/bin/mvn deploy:deploy-file -DgroupId=com.google.gdata -DartifactId=$artifactId -Dversion=$version -Dfile=$jar -Dpackaging=jar -DgeneratePom=true -Durl=file:/// -Drepository=”;
print “executing command = $cmd\n”;
open(CMD, “$cmd|”) or die “Could not exec $cmd $!”;
while() {
print $_;
}
close(CMD);

{code}

installall.pl
{code}
#!/usr/bin/perl -w

my @jars = `ls *.jar`;
chomp(@jars);
foreach my $jar (@jars) {
#print “found jar $jar\n”;
if($jar =~ /(.*)-(\d\.\d)\.jar/) {
#print “\tartifact is $1 and version is $2\n”;
my $cmd = “./install.pl $1 $2 $jar”;
open(CMD, “$cmd|”) or die “Could not execute $cmd $!”;
while() {
print $_;
}
close(CMD);
}
}

{code}

]]>
By: pascal http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-65985 pascal Thu, 10 Jun 2010 22:12:22 +0000 http://www.techbits.de/?p=181#comment-65985 Hello, I have pushed a bit further my gdata maven repository stored on google code http://code.google.com/p/mandubian-mvn following David Carter idea based on Tattletale to extract dependencies and generate the Poms automatically. I have also added a Nexus Index to this repository and version up to 1.41.3 are currently mavenized! Have fun! Pascal Hello,
I have pushed a bit further my gdata maven repository stored on google code http://code.google.com/p/mandubian-mvn following David Carter idea based on Tattletale to extract dependencies and generate the Poms automatically. I have also added a Nexus Index to this repository and version up to 1.41.3 are currently mavenized! Have fun! Pascal

]]>
By: NotATroll http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-59799 NotATroll Fri, 16 Apr 2010 14:45:02 +0000 http://www.techbits.de/?p=181#comment-59799 An even better solution would be to stop using Maven at all. An even better solution would be to stop using Maven at all.

]]>
By: dcarter http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-57837 dcarter Mon, 29 Mar 2010 01:58:33 +0000 http://www.techbits.de/?p=181#comment-57837 Take a look at this project: http://github.com/dcarter/Google-Data-APIs-Mavenized It contains a script to generate poms with full dependency information for all the gdata jars, and instructions for using the jars/poms that are hosted on a Sonatype public repository. Soon the project will be syncing these artifacts to the Maven central repo. Take a look at this project: http://github.com/dcarter/Google-Data-APIs-Mavenized It contains a script to generate poms with full dependency information for all the gdata jars, and instructions for using the jars/poms that are hosted on a Sonatype public repository. Soon the project will be syncing these artifacts to the Maven central repo.

]]>
By: mogi http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-54903 mogi Sat, 06 Mar 2010 09:33:21 +0000 http://www.techbits.de/?p=181#comment-54903 an even better solution would be to write a script that iterates over all files, parses their name and decides the values of the parameters. an even better solution would be to write a script that iterates over all files, parses their name and decides the values of the parameters.

]]>
By: Tim O'Brien http://www.techbits.de/2009/08/06/adding-googles-gdata-java-api-to-your-maven-repository/comment-page-1/#comment-51034 Tim O'Brien Fri, 07 Aug 2009 13:09:38 +0000 http://www.techbits.de/?p=181#comment-51034 A better solution would be to get a repository manager and upload the artifacts (or automate this with the deploy:deploy-file goal). I'd suggest nexus: http://nexus.sonatype.org A better solution would be to get a repository manager and upload the artifacts (or automate this with the deploy:deploy-file goal).

I’d suggest nexus: http://nexus.sonatype.org

]]>