You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Howard <ho...@renci.org> on 2014/03/05 21:23:49 UTC
Using github as a maven repo
Hi all
I should preface this all by saying that I am not an experienced maven
user, though I would not describe myself as a complete newbie, so I
won't be too surprised if I am just doing something stupid here. Please
let me know if this is the wrong group for this type of question.
I've got a project where we are keeping all of our code on GitHub. The
project name is DataBridge Because this is an National Science
Foundation funded Open Source project I thought it might make sense to
store the jar files we produce in a maven repository on GitHub. I found
this web page
http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
and followed the instructions for one project that produces one jar. It
seems to have worked great for putting the jar file up on Github. The
problem is occurring when I try to download the jar as an artifact in
another pom for another project that depends on it. I can download the
jar and it's pom using wget at the following addresses:
wget
https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar
wget
https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.pom
but I don't seem to be able to find the magic to get maven to grab them.
I'm thinking the problem is that I have the repository set incorrectly.
It's set to
<repositories>
<repository>
<id>github</id>
<url>https://github.com/HowardLander/DataBridge/blob/mvn-repo</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
Here's what I get from mvn -e compile
howard@databridge.renci.org:/projects/databridge/howard/DataBridge/network/BigData/XMLSim
$ mvn -e compile
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building XMLTest 1
[INFO]
------------------------------------------------------------------------
Downloading:
https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/databridge-util-1.0-BETA.pom
[WARNING] The POM for
org.renci.databridge-util:databridge-util:jar:1.0-BETA is missing, no
dependency information available
Downloading:
https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.593s
[INFO] Finished at: Wed Mar 05 11:56:41 EST 2014
[INFO] Final Memory: 4M/15M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project XMLTest: Could not resolve
dependencies for project com.RENCI.app:XMLTest:jar:1: Could not find
artifact org.renci.databridge-util:databridge-util:jar:1.0-BETA in
github (https://github.com/HowardLander/DataBridge/blob/mvn-repo) ->
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal on project XMLTest: Could not resolve dependencies for
project com.RENCI.app:XMLTest:jar:1: Could not find artifact
org.renci.databridge-util:databridge-util:jar:1.0-BETA in github
(https://github.com/HowardLander/DataBridge/blob/mvn-repo)
That seems fairly clear: it can't find
https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar.
Any suggestions?
For reference here's the part of the pom that is trying to download the
jar:
<dependency>
<groupId>org.renci.databridge-util</groupId>
<artifactId>databridge-util</artifactId>
<version>1.0-BETA</version>
</dependency>
The jar in question is part of the databridge-util project. Here's the
jar that pushes (successfully as far as I can tell) the jar and it's
related artifacts to the github.
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.8</version>
<configuration>
<message>Maven artifacts for
${project.version}</message> <!-- git commit message -->
<noJekyll>true</noJekyll> <!-- disable webpage processing -->
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
<!-- matches distribution management repository url above -->
<branch>refs/heads/mvn-repo</branch> <!-- remote branch name -->
<includes><include>**/*</include></includes>
<repositoryName>DataBridge</repositoryName> <!-- github repo name -->
<repositoryOwner>HowardLander</repositoryOwner> <!-- github username -->
</configuration>
<executions>
<!-- run site-maven-plugin's 'site' target as part of the
build's normal 'deploy' phase -->
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
Thanks much
Howard Lander
--
Howard Lander <ma...@renci.org>
Senior Research Software Developer
Renaissance Computing Institute (RENCI) <http://www.renci.org>
The University of North Carolina at Chapel Hill
Duke University
North Carolina State University
100 Europa Drive
Suite 540
Chapel Hill, NC 27517
919-445-9651
Re: Using github as a maven repo
Posted by Joachim Van der Auwera <li...@progs.be>.
Why not have it included in maven central. This is quite easy for open
source projects and much more practical for your users. See
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
Kind regards,
Joachim
On 03/05/2014 09:23 PM, Howard wrote:
> Hi all
>
> I should preface this all by saying that I am not an experienced maven
> user, though I would not describe myself as a complete newbie, so I
> won't be too surprised if I am just doing something stupid here.
> Please let me know if this is the wrong group for this type of question.
>
> I've got a project where we are keeping all of our code on GitHub. The
> project name is DataBridge Because this is an National Science
> Foundation funded Open Source project I thought it might make sense to
> store the jar files we produce in a maven repository on GitHub. I
> found this web page
>
> http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
>
>
> and followed the instructions for one project that produces one jar.
> It seems to have worked great for putting the jar file up on Github.
> The problem is occurring when I try to download the jar as an artifact
> in another pom for another project that depends on it. I can download
> the jar and it's pom using wget at the following addresses:
>
> wget
> https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar
> wget
> https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.pom
>
> but I don't seem to be able to find the magic to get maven to grab
> them. I'm thinking the problem is that I have the repository set
> incorrectly. It's set to
>
> <repositories>
> <repository>
> <id>github</id>
> <url>https://github.com/HowardLander/DataBridge/blob/mvn-repo</url>
> <snapshots>
> <enabled>true</enabled>
> <updatePolicy>always</updatePolicy>
> </snapshots>
> </repository>
> </repositories>
>
> Here's what I get from mvn -e compile
>
> howard@databridge.renci.org:/projects/databridge/howard/DataBridge/network/BigData/XMLSim
> $ mvn -e compile
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building XMLTest 1
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/databridge-util-1.0-BETA.pom
> [WARNING] The POM for
> org.renci.databridge-util:databridge-util:jar:1.0-BETA is missing, no
> dependency information available
> Downloading:
> https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.593s
> [INFO] Finished at: Wed Mar 05 11:56:41 EST 2014
> [INFO] Final Memory: 4M/15M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project XMLTest: Could not resolve
> dependencies for project com.RENCI.app:XMLTest:jar:1: Could not find
> artifact org.renci.databridge-util:databridge-util:jar:1.0-BETA in
> github (https://github.com/HowardLander/DataBridge/blob/mvn-repo) ->
> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal on project XMLTest: Could not resolve dependencies for
> project com.RENCI.app:XMLTest:jar:1: Could not find artifact
> org.renci.databridge-util:databridge-util:jar:1.0-BETA in github
> (https://github.com/HowardLander/DataBridge/blob/mvn-repo)
>
> That seems fairly clear: it can't find
> https://github.com/HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar.
> Any suggestions?
>
> For reference here's the part of the pom that is trying to download
> the jar:
>
> <dependency>
> <groupId>org.renci.databridge-util</groupId>
> <artifactId>databridge-util</artifactId>
> <version>1.0-BETA</version>
> </dependency>
>
> The jar in question is part of the databridge-util project. Here's the
> jar that pushes (successfully as far as I can tell) the jar and it's
> related artifacts to the github.
>
> <plugin>
> <groupId>com.github.github</groupId>
> <artifactId>site-maven-plugin</artifactId>
> <version>0.8</version>
> <configuration>
> <message>Maven artifacts for
> ${project.version}</message> <!-- git commit message -->
> <noJekyll>true</noJekyll> <!-- disable webpage processing -->
> <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
> <!-- matches distribution management repository url above -->
> <branch>refs/heads/mvn-repo</branch> <!-- remote branch name -->
> <includes><include>**/*</include></includes>
> <repositoryName>DataBridge</repositoryName> <!-- github repo name -->
> <repositoryOwner>HowardLander</repositoryOwner> <!-- github username -->
> </configuration>
> <executions>
> <!-- run site-maven-plugin's 'site' target as part of the
> build's normal 'deploy' phase -->
> <execution>
> <goals>
> <goal>site</goal>
> </goals>
> <phase>deploy</phase>
> </execution>
> </executions>
> </plugin>
>
> Thanks much
> Howard Lander
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Using github as a maven repo
Posted by Stephen Connolly <st...@gmail.com>.
Please please please use central.
Every time you host your own public repo a kitten is horribly mutilated by
the minions of the underworld.
More seriously if anyone adds your repo they impact their build performance
as they now have another repo to check artifacts against... It's not a big
problem if you only have to add one repo... But the problem grows and next
thing you know your maven build is checking 50 repos for every artifact and
build time is a dog.
This is why a repo manager is helpful and publishing to central if you can
is the *best* thing to do
On Wednesday, 5 March 2014, Howard <ho...@renci.org> wrote:
> Thanks Rafa!
>
> That was in fact the answer. Well, I did admit it was likely something
> stupid. :)
>
> Thanks also to Anders and Joachim for answering. I will definitely think
> about hosting our jars at maven central. I didn't realize it was easy. I
> did have a look at managing a repository here at RENCI, but since we hope
> the usefulness of the project outlives it's funding, it would probably make
> more sense for our repo to be off site.
>
> Thanks again
> Howard
>
>
> On 3/5/14, 3:48 PM, rafal.krupinski@smtsoftware.com
> rafal.krupinski@smtsoftware.com wrote:
>
>>
>> Dnia 5 marzec 2014 o 21:23 Howard <ho...@renci.org> napisa?(a):
>>>
>> [...]
>>
>>> For reference here's the part of the pom that is trying to download the
>>> jar:
>>>
>>> <dependency>
>>> <groupId>org.renci.databridge-util</groupId>
>>> <artifactId>databridge-util</artifactId>
>>> <version>1.0-BETA</version>
>>> </dependency>
>>>
>> Read your POM, there is no databridge-util in the groupId.
>>
>> Dependency should read
>>
>> <dependency>
>> <groupId>org.renci</groupId>
>> <artifactId>databridge-util</artifactId>
>> <version>1.0-BETA</version>
>> </dependency>
>>
>> Regards,
>>
>> Rafał
>>
>> PS
>>
>> I love when people reply without providing actual answer :)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> --
> Howard Lander <ma...@renci.org>
> Senior Research Software Developer
> Renaissance Computing Institute (RENCI) <http://www.renci.org>
> The University of North Carolina at Chapel Hill
> Duke University
> North Carolina State University
> 100 Europa Drive
> Suite 540
> Chapel Hill, NC 27517
> 919-445-9651
>
--
Sent from my phone
Re: Using github as a maven repo
Posted by Howard <ho...@renci.org>.
Thanks Rafa!
That was in fact the answer. Well, I did admit it was likely something
stupid. :)
Thanks also to Anders and Joachim for answering. I will definitely
think about hosting our jars at maven central. I didn't realize it was
easy. I did have a look at managing a repository here at RENCI, but
since we hope the usefulness of the project outlives it's funding, it
would probably make more sense for our repo to be off site.
Thanks again
Howard
On 3/5/14, 3:48 PM, rafal.krupinski@smtsoftware.com
rafal.krupinski@smtsoftware.com wrote:
>
>> Dnia 5 marzec 2014 o 21:23 Howard <ho...@renci.org> napisa?(a):
> [...]
>> For reference here's the part of the pom that is trying to download the
>> jar:
>>
>> <dependency>
>> <groupId>org.renci.databridge-util</groupId>
>> <artifactId>databridge-util</artifactId>
>> <version>1.0-BETA</version>
>> </dependency>
> Read your POM, there is no databridge-util in the groupId.
>
> Dependency should read
>
> <dependency>
> <groupId>org.renci</groupId>
> <artifactId>databridge-util</artifactId>
> <version>1.0-BETA</version>
> </dependency>
>
> Regards,
>
> Rafał
>
> PS
>
> I love when people reply without providing actual answer :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Howard Lander <ma...@renci.org>
Senior Research Software Developer
Renaissance Computing Institute (RENCI) <http://www.renci.org>
The University of North Carolina at Chapel Hill
Duke University
North Carolina State University
100 Europa Drive
Suite 540
Chapel Hill, NC 27517
919-445-9651
Re: Using github as a maven repo
Posted by "rafal.krupinski@smtsoftware.com rafal.krupinski@smtsoftware.com" <ra...@smtsoftware.com>.
> Dnia 5 marzec 2014 o 21:23 Howard <ho...@renci.org> napisa?(a):
[...]
> For reference here's the part of the pom that is trying to download the
> jar:
>
> <dependency>
> <groupId>org.renci.databridge-util</groupId>
> <artifactId>databridge-util</artifactId>
> <version>1.0-BETA</version>
> </dependency>
Read your POM, there is no databridge-util in the groupId.
Dependency should read
<dependency>
<groupId>org.renci</groupId>
<artifactId>databridge-util</artifactId>
<version>1.0-BETA</version>
</dependency>
Regards,
Rafał
PS
I love when people reply without providing actual answer :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Using github as a maven repo
Posted by Anders Hammar <an...@hammar.net>.
You should be using a real repository manager instead. There are several
free or cheap hosting options.
/Anders
On Wed, Mar 5, 2014 at 9:23 PM, Howard <ho...@renci.org> wrote:
> Hi all
>
> I should preface this all by saying that I am not an experienced maven
> user, though I would not describe myself as a complete newbie, so I won't
> be too surprised if I am just doing something stupid here. Please let me
> know if this is the wrong group for this type of question.
>
> I've got a project where we are keeping all of our code on GitHub. The
> project name is DataBridge Because this is an National Science Foundation
> funded Open Source project I thought it might make sense to store the jar
> files we produce in a maven repository on GitHub. I found this web page
>
> http://stackoverflow.com/questions/14013644/hosting-a-
> maven-repository-on-github
>
> and followed the instructions for one project that produces one jar. It
> seems to have worked great for putting the jar file up on Github. The
> problem is occurring when I try to download the jar as an artifact in
> another pom for another project that depends on it. I can download the jar
> and it's pom using wget at the following addresses:
>
> wget https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar
> wget https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.pom
>
> but I don't seem to be able to find the magic to get maven to grab them.
> I'm thinking the problem is that I have the repository set incorrectly.
> It's set to
>
> <repositories>
> <repository>
> <id>github</id>
> <url>https://github.com/HowardLander/DataBridge/blob/mvn-repo</url>
> <snapshots>
> <enabled>true</enabled>
> <updatePolicy>always</updatePolicy>
> </snapshots>
> </repository>
> </repositories>
>
> Here's what I get from mvn -e compile
>
> howard@databridge.renci.org:/projects/databridge/howard/
> DataBridge/network/BigData/XMLSim $ mvn -e compile
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] Building XMLTest 1
> [INFO] ------------------------------------------------------------
> ------------
> Downloading: https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/
> databridge-util-1.0-BETA.pom
> [WARNING] The POM for org.renci.databridge-util:databridge-util:jar:1.0-BETA
> is missing, no dependency information available
> Downloading: https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/
> databridge-util-1.0-BETA.jar
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] Total time: 1.593s
> [INFO] Finished at: Wed Mar 05 11:56:41 EST 2014
> [INFO] Final Memory: 4M/15M
> [INFO] ------------------------------------------------------------
> ------------
> [ERROR] Failed to execute goal on project XMLTest: Could not resolve
> dependencies for project com.RENCI.app:XMLTest:jar:1: Could not find
> artifact org.renci.databridge-util:databridge-util:jar:1.0-BETA in github
> (https://github.com/HowardLander/DataBridge/blob/mvn-repo) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project XMLTest: Could not resolve dependencies for project
> com.RENCI.app:XMLTest:jar:1: Could not find artifact
> org.renci.databridge-util:databridge-util:jar:1.0-BETA in github (
> https://github.com/HowardLander/DataBridge/blob/mvn-repo)
>
> That seems fairly clear: it can't find https://github.com/
> HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-
> util/1.0-BETA/databridge-util-1.0-BETA.jar. Any suggestions?
>
> For reference here's the part of the pom that is trying to download the
> jar:
>
> <dependency>
> <groupId>org.renci.databridge-util</groupId>
> <artifactId>databridge-util</artifactId>
> <version>1.0-BETA</version>
> </dependency>
>
> The jar in question is part of the databridge-util project. Here's the
> jar that pushes (successfully as far as I can tell) the jar and it's
> related artifacts to the github.
>
> <plugin>
> <groupId>com.github.github</groupId>
> <artifactId>site-maven-plugin</artifactId>
> <version>0.8</version>
> <configuration>
> <message>Maven artifacts for ${project.version}</message>
> <!-- git commit message -->
> <noJekyll>true</noJekyll> <!-- disable webpage processing -->
> <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
> <!-- matches distribution management repository url above -->
> <branch>refs/heads/mvn-repo</branch> <!-- remote branch name -->
> <includes><include>**/*</include></includes>
> <repositoryName>DataBridge</repositoryName> <!-- github repo name -->
> <repositoryOwner>HowardLander</repositoryOwner> <!-- github username -->
> </configuration>
> <executions>
> <!-- run site-maven-plugin's 'site' target as part of the
> build's normal 'deploy' phase -->
> <execution>
> <goals>
> <goal>site</goal>
> </goals>
> <phase>deploy</phase>
> </execution>
> </executions>
> </plugin>
>
> Thanks much
> Howard Lander
>
> --
> Howard Lander <ma...@renci.org>
> Senior Research Software Developer
> Renaissance Computing Institute (RENCI) <http://www.renci.org>
> The University of North Carolina at Chapel Hill
> Duke University
> North Carolina State University
> 100 Europa Drive
> Suite 540
> Chapel Hill, NC 27517
> 919-445-9651
>
Re: Using github as a maven repo
Posted by Thomas Broyer <t....@gmail.com>.
Le 5 mars 2014 23:47, "Olivier Lamy" <ol...@apache.org> a écrit :
>
> Ideologic POV: Perso I'm very happy to download software from various
> sources (I believe in linux you can have different sources)
> So why we should have only ONE "artifacts source"?
+1
> Having a sort of routing per groupId is definitely something we need to
develop.
Maybe have a look at how Ivy does it? ;-)
> NOTE: It's just an idea and ATM don't have time for that.
>
>
> On 6 March 2014 09:34, Barrie Treloar <ba...@gmail.com> wrote:
> > I've updated the stackoverflow question
> >
http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
> > with these answers.
> > http://stackoverflow.com/a/22210816/552958
> >
> > And spammed the best hits on google for similar questions.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
>
> --
> Olivier Lamy
> Ecetera: http://ecetera.com.au
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Re: Using github as a maven repo
Posted by Stephen Connolly <st...@gmail.com>.
On Wednesday, 5 March 2014, Olivier Lamy <ol...@apache.org> wrote:
> Ideologic POV: Perso I'm very happy to download software from various
> sources (I believe in linux you can have different sources)
> So why we should have only ONE "artifacts source"?
I agree that a decentralised scheme is needed. jdc was working on one last
time he popped his head here, I've not heard much since.
However that is ideal world. Right now we live in the real world, and
better or worse as that may be, the practical way to work in that world is
pushing artifacts to central.
>
> Having a sort of routing per groupId is definitely something we need to
> develop.
>
> NOTE: It's just an idea and ATM don't have time for that.
>
>
> On 6 March 2014 09:34, Barrie Treloar <baerrach@gmail.com <javascript:;>>
> wrote:
> > I've updated the stackoverflow question
> >
> http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
> > with these answers.
> > http://stackoverflow.com/a/22210816/552958
> >
> > And spammed the best hits on google for similar questions.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
> >
>
>
>
> --
> Olivier Lamy
> Ecetera: http://ecetera.com.au
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
>
--
Sent from my phone
Re: Using github as a maven repo
Posted by Olivier Lamy <ol...@apache.org>.
Ideologic POV: Perso I'm very happy to download software from various
sources (I believe in linux you can have different sources)
So why we should have only ONE "artifacts source"?
Having a sort of routing per groupId is definitely something we need to develop.
NOTE: It's just an idea and ATM don't have time for that.
On 6 March 2014 09:34, Barrie Treloar <ba...@gmail.com> wrote:
> I've updated the stackoverflow question
> http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
> with these answers.
> http://stackoverflow.com/a/22210816/552958
>
> And spammed the best hits on google for similar questions.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Using github as a maven repo
Posted by Barrie Treloar <ba...@gmail.com>.
I've updated the stackoverflow question
http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
with these answers.
http://stackoverflow.com/a/22210816/552958
And spammed the best hits on google for similar questions.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Using github as a maven repo
Posted by Thomas Broyer <t....@gmail.com>.
>From the point of view of Git, you're bloating your repo forcing everyone
to download all the JARs when they clone your repo.
>From the point of view of GitHub, they don't want you to do that and might
very well break it in the future. At least use gh-pages, but that doesn't
solve the Git issue.
>From the point of view of Maven, repos are a pain for users of your libs,
because each repo will be checked for each dependency. What seemed like a
good idea was badly executed and didn't work well in practice. Please stick
to Central or possibly Bintray.
Le 5 mars 2014 21:24, "Howard" <ho...@renci.org> a écrit :
> Hi all
>
> I should preface this all by saying that I am not an experienced maven
> user, though I would not describe myself as a complete newbie, so I won't
> be too surprised if I am just doing something stupid here. Please let me
> know if this is the wrong group for this type of question.
>
> I've got a project where we are keeping all of our code on GitHub. The
> project name is DataBridge Because this is an National Science Foundation
> funded Open Source project I thought it might make sense to store the jar
> files we produce in a maven repository on GitHub. I found this web page
>
> http://stackoverflow.com/questions/14013644/hosting-a-
> maven-repository-on-github
>
> and followed the instructions for one project that produces one jar. It
> seems to have worked great for putting the jar file up on Github. The
> problem is occurring when I try to download the jar as an artifact in
> another pom for another project that depends on it. I can download the jar
> and it's pom using wget at the following addresses:
>
> wget https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.jar
> wget https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/1.0-BETA/databridge-util-1.0-BETA.pom
>
> but I don't seem to be able to find the magic to get maven to grab them.
> I'm thinking the problem is that I have the repository set incorrectly.
> It's set to
>
> <repositories>
> <repository>
> <id>github</id>
> <url>https://github.com/HowardLander/DataBridge/blob/mvn-repo</url>
> <snapshots>
> <enabled>true</enabled>
> <updatePolicy>always</updatePolicy>
> </snapshots>
> </repository>
> </repositories>
>
> Here's what I get from mvn -e compile
>
> howard@databridge.renci.org:/projects/databridge/howard/
> DataBridge/network/BigData/XMLSim $ mvn -e compile
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] Building XMLTest 1
> [INFO] ------------------------------------------------------------
> ------------
> Downloading: https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/
> databridge-util-1.0-BETA.pom
> [WARNING] The POM for org.renci.databridge-util:databridge-util:jar:1.0-BETA
> is missing, no dependency information available
> Downloading: https://github.com/HowardLander/DataBridge/blob/
> mvn-repo/org/renci/databridge-util/databridge-util/1.0-BETA/
> databridge-util-1.0-BETA.jar
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] Total time: 1.593s
> [INFO] Finished at: Wed Mar 05 11:56:41 EST 2014
> [INFO] Final Memory: 4M/15M
> [INFO] ------------------------------------------------------------
> ------------
> [ERROR] Failed to execute goal on project XMLTest: Could not resolve
> dependencies for project com.RENCI.app:XMLTest:jar:1: Could not find
> artifact org.renci.databridge-util:databridge-util:jar:1.0-BETA in github
> (https://github.com/HowardLander/DataBridge/blob/mvn-repo) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project XMLTest: Could not resolve dependencies for project
> com.RENCI.app:XMLTest:jar:1: Could not find artifact
> org.renci.databridge-util:databridge-util:jar:1.0-BETA in github (
> https://github.com/HowardLander/DataBridge/blob/mvn-repo)
>
> That seems fairly clear: it can't find https://github.com/
> HowardLander/DataBridge/blob/mvn-repo/org/renci/databridge-
> util/1.0-BETA/databridge-util-1.0-BETA.jar. Any suggestions?
>
> For reference here's the part of the pom that is trying to download the
> jar:
>
> <dependency>
> <groupId>org.renci.databridge-util</groupId>
> <artifactId>databridge-util</artifactId>
> <version>1.0-BETA</version>
> </dependency>
>
> The jar in question is part of the databridge-util project. Here's the
> jar that pushes (successfully as far as I can tell) the jar and it's
> related artifacts to the github.
>
> <plugin>
> <groupId>com.github.github</groupId>
> <artifactId>site-maven-plugin</artifactId>
> <version>0.8</version>
> <configuration>
> <message>Maven artifacts for ${project.version}</message>
> <!-- git commit message -->
> <noJekyll>true</noJekyll> <!-- disable webpage processing -->
> <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
> <!-- matches distribution management repository url above -->
> <branch>refs/heads/mvn-repo</branch> <!-- remote branch name -->
> <includes><include>**/*</include></includes>
> <repositoryName>DataBridge</repositoryName> <!-- github repo name -->
> <repositoryOwner>HowardLander</repositoryOwner> <!-- github username -->
> </configuration>
> <executions>
> <!-- run site-maven-plugin's 'site' target as part of the
> build's normal 'deploy' phase -->
> <execution>
> <goals>
> <goal>site</goal>
> </goals>
> <phase>deploy</phase>
> </execution>
> </executions>
> </plugin>
>
> Thanks much
> Howard Lander
>
> --
> Howard Lander <ma...@renci.org>
> Senior Research Software Developer
> Renaissance Computing Institute (RENCI) <http://www.renci.org>
> The University of North Carolina at Chapel Hill
> Duke University
> North Carolina State University
> 100 Europa Drive
> Suite 540
> Chapel Hill, NC 27517
> 919-445-9651
>