Closed khmarbaise closed 12 years ago
Have you configured the login/password or OAuth2 token to use in the plugin's configuration section?
Yes i have configured username/password entries like in the github-maven-example like this in my settings.xml:
<profiles>
<profile>
<id>github</id>
<properties>
<github.global.userName>user</github.global.userName>
<github.global.password>password</github.global.password>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
Try adding the repositoryName
and repositoryOwner
values to the plugin's configuration
element with the values maui
and khmarbaise
respectively.
This is a result of issue #11 which will be fixed in the next release due out soon.
Cool that did the trick. Thanks.
Had the same issue. Resolved as hinted here - thanks a lot.
Perhaps the documentation at https://github.com/github/maven-plugins is misleading, stating that the two properties are "optional and will be inferred".
It would be very helpful if we could give some examples that clarify the exact values to be specified for the properties repositoryName
and repositoryOwner
w.r.t. a given GitHub repo...
@raghu-simpragma For this repository, maven-plugins
would be repositoryName
and github
would be repositoryOwner
.
@kevinsawicki -- Can't thank you enough for that simple, yet crucial example!
I was getting the 404 not found while creating blobs. And I guessed it must be due to some wrong value in repositoryOwner
. Am now able to upload the artifacts successfully to a new branch as expected.
In our github, we see OurOrgNameGroup/repoName
.
I wonder if repositoryOwner
is a sort of mis-nomer; we usually tend to think of real user-names which have access to the github repo.
Also, what if we have something like OrgName/DeptName/repo
in Github?
Does that mean repositoryOwner
in such a case is simply OrgName/DeptName
?
Pardon my ignorance, but I feel it would avoid many issues if we document these points.
Many thanks, & keep up the good work!
FTR: the error was fixed by changing the password in settings.xml to a token which also has the "user" permission.
Currently i'm trying to deploy a site to the ghbranch via the following. May be i'm just doing something wrong:
After checking i tried the following to get more information:
The complete configuration can be seen here: https://github.com/khmarbaise/maui