Open amercier opened 12 years ago
Can you try version 0.0.2
instead of 0.0.1-SNAPSHOT
please? The README was out of date...
I've got the following error now :
amercier@ubuntu:~/Documents/poc-selenese$ mvn aa:validate
[INFO] Scanning for projects...
Downloading: https://raw.github.com/mjg123/mjg-repo/master/repo/com/github/mjg123/aa-maven-plugin/0.0.2/aa-maven-plugin-0.0.2.pom
[WARNING] Unable to get resource 'com.github.mjg123:aa-maven-plugin:pom:0.0.2' from repository mjg-repo (https://raw.github.com/mjg123/mjg-repo/master/repo): Error transferring file: raw.github.com
Downloading: http://repo1.maven.org/maven2/com/github/mjg123/aa-maven-plugin/0.0.2/aa-maven-plugin-0.0.2.pom
[INFO] Unable to find resource 'com.github.mjg123:aa-maven-plugin:pom:0.0.2' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/com/github/mjg123/aa-maven-plugin/0.0.2/aa-maven-plugin-0.0.2.pom
[INFO] Unable to find resource 'com.github.mjg123:aa-maven-plugin:pom:0.0.2' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: com.github.mjg123:aa-maven-plugin
Reason: POM 'com.github.mjg123:aa-maven-plugin' not found in repository: Unable to download the artifact from any repository
com.github.mjg123:aa-maven-plugin:pom:0.0.2
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
mjg-repo (https://raw.github.com/mjg123/mjg-repo/master/repo)
for project com.github.mjg123:aa-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Aug 17 08:10:18 PDT 2012
[INFO] Final Memory: 2M/7M
[INFO] ------------------------------------------------------------------------
It's weird though, cause I can access https://raw.github.com/mjg123/mjg-repo/master/repo/com/github/mjg123/aa-maven-plugin/0.0.2/aa-maven-plugin-0.0.2.pom through my web browser. I'll double-check my maven proxy settings to see if it's a proxy issue.
Yeha ! It was indeed a proxy problem. I was able to use your repo suing the following command:
mvn aa:validate -Dhttps.proxyHost=<myproxyhost> -Dhttps.proxyPort=<myproxyport>
I never had this problem before as "standard" mvn repos use http and no https.
The solution to this issue would be to host the repo on http://mjg123.github.com/mjg-repo/... by creating a gh-pages branch.
Apparently this is a well known Maven Wagon bug: http://jira.codehaus.org/browse/WAGON-125
I tried making my own repo on https://github.com/amercier/amercier-mvn-repo and setup a gh-pages branch.
Apparently, it is possible to access XML files but not POM files :
Edit: POM is now accessible! It was probably a file transfer delay. I finally got everything working!
Great! Thanks for your detective work. I'll create a gh-pages branch and close the issue :)
Sweet! Thanks for your work as I would not have been able to setup my own repo without this :D
I've got an error while using this plugin:
Here is my pom.xml: