github / maven-plugins

Official GitHub Maven Plugins
MIT License
587 stars 197 forks source link

artifact egit.github.core 3.1.0.201310021548-r not available on maven central #74

Open hakan42 opened 10 years ago

hakan42 commented 10 years ago

I updated my build jobs to site-maven-plugin 0.10 to fix the upload problem.

Now, with Maven 3.2.2, I get the following failure in my build log:

[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.10:site (github-site) on project opencagedata-geocoder: Execution github-site of goal com.github.github:site-maven-plugin:0.10:site failed: Plugin com.github.github:site-maven-plugin:0.10 or one of its dependencies could not be resolved: Could not find artifact org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r in nexus (http://my-own-nexus-installation/nexus/content/groups/public) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute

Actually. looking at maven, central, I cannot find this artifact there as well, see the following link: http://repo1.maven.org/maven2/org/eclipse/mylyn/github/org.eclipse.egit.github.core/

ganeshs commented 10 years ago

+1

I get the exact same error.

jodastephen commented 10 years ago

Looks like we have to introduce this repository (eg. in settings.xml)

  <repositories>
    <repository>
      <id>egit</id>
      <name>Eclipse egit</name>
      <url>https://repo.eclipse.org/content/repositories/egit-releases/</url>
    </repository>
  </repositories>
helsing commented 9 years ago

I had this exact problem. I did try to add the Eclipse egit repository in my settings.xml, as suggested above, but with no luck. Finally I found out my problem was caused by an overly generic mirror-configuration in my settings.xml. I had my Maven Central UK mirror be a mirror of '*', which matched also the egit-repository (which it shouldn't). Changed my Maven Central UK mirror configuration to mirror only 'central', as seen below. There is no need to add egit-repository in settings.xml (that's already setup in the pom.xml of github-maven-plugins-parent).

<settings>
...
  <mirrors>
    <mirror>
      <id>UK</id>
      <name>Maven Central UK</name>
      <url>http://uk.maven.org/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
  ...
</settings>
hazendaz commented 9 years ago

I have been using this and it seems like it works ok.

                <plugin>
                    <groupId>com.github.github</groupId>
                    <artifactId>site-maven-plugin</artifactId>
                    <version>0.10</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.eclipse.mylyn.github</groupId>
                            <artifactId>org.eclipse.egit.github.core</artifactId>
                            <version>2.1.5</version>
                        </dependency>
                    </dependencies>
                </plugin>
puce77 commented 9 years ago

I always thought Sonatype wouldn't allow you to deploy artifacts to Maven Central which have dependencies not available in Maven Central. I'm astonished this seems not the case. At least it is a best practice I think.

puce77 commented 9 years ago

My work-around:

andrealbinop commented 9 years ago

Hello,

It's been a while since this issue was opened and the provided solutions are quite ankward to work with CI servers such as TravisCI and CircleCI. Is there any intention to work with a org.eclipse.egit.github.core that is available in Maven Central? If not this plugin is quite useless for aforementioned CI servers...

reubenwarwema commented 7 years ago

@puce77 hello mate. I am relatively green to in circleci and i just hit a snugg on the above mentioned issue. In my efforts to resolve it, I think am not "putting" the required solutions right within my pom.xml settings file. Please review my repository at https://github.com/reubenwarwema/podam wont build on CircleCI.

PS: Throw me a bone at the very least, and am sure i will crack it. Cheers

puce77 commented 7 years ago

@reubenwarwema I just have it working on my local machine where Jenkins uses my Nexus installation. The egit repository is configured in Nexus.

reubenwarwema commented 7 years ago

@puce77 what would I need to change in my repository, to have it successfully build. Like I'd mentioned, am a little green in this but won't mind being pointed on where to read/what to do.

PS: After following the instructions at http://books.sonatype.com/nexus-book/2.8/reference/maven-sect-single-group.html, I got an error

Unrecognized tag: 'mirrors'. Maybe am not editing my pom.xml file appropriately

FanJups commented 7 months ago

Having this issue after updating from actions v3 to v4 https://github.com/osscameroon/js-generator/actions/runs/8133268790/job/22224649594

2024-03-03T21:56:57.1202008Z [ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.12:site (default) on project jsgenerator-core: Execution default of goal com.github.github:site-maven-plugin:0.12:site failed: Plugin com.github.github:site-maven-plugin:0.12 or one of its dependencies could not be resolved: Failed to collect dependencies at com.github.github:site-maven-plugin:jar:0.12 -> com.github.github:github-maven-core:jar:0.12 -> org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r: Failed to read artifact descriptor for org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r: Could not transfer artifact org.eclipse.mylyn.github:org.eclipse.egit.github.core:pom:3.1.0.201310021548-r from/to egit (https://repo.eclipse.org/content/repositories/egit-releases/): authorization failed for https://repo.eclipse.org/content/repositories/egit-releases/org/eclipse/mylyn/github/org.eclipse.egit.github.core/3.1.0.201310021548-r/org.eclipse.egit.github.core-3.1.0.201310021548-r.pom, status: 403 Forbidden -> [Help 1] 2024-03-03T21:56:57.1215665Z org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.github:site-maven-plugin:0.12:site (default) on project jsgenerator-core: Execution default of goal com.github.github:site-maven-plugin:0.12:site failed: Plugin com.github.github:site-maven-plugin:0.12 or one of its dependencies could not be resolved: Failed to collect dependencies at com.github.github:site-maven-plugin:jar:0.12 -> com.github.github:github-maven-core:jar:0.12 -> org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r

FanJups commented 7 months ago

Don't know what happened, no problem anymore :)