exgit's People
exgit's Issues
Various $path parameters
I have successfully checked out one of my repos and modified a file, but I am having trouble getting diff or status to work. Could you explain the meaning of $localPath
vs. $gitPath
as used in git:status()
in your README.md? (Also, $localPath
vs $path
in git:cat()
?
clone over https
Hi,
first thanks for publishing the released xar package - I tried to build eXgit by myself, but ran into the same issue like joeviz, so this helped me to get started.
I was wondering: Is it (or will it be) possible to clone a git repo via https or using public keys? We have several institutional git repositories that are managed with gitolite or the Redmine Git Hosting plugin - so the only option to clone with credentials is via https.
That's what I tried so far:
xquery version "3.0";
import module namespace git="http://exist-db.org/git";
let $remotePath := "https://[email protected]/redmine/myRepo.git",
$localPath := "/db/myClone",
$username := "myusername",
$password := "mypassword"
return git:clone($remotePath, $localPath, $username, $password)
this leads to an org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
Using the git bash, the same remote Path is reachable and works fine.
I guess this is a feature, not a bug - but maybe this would be not too complex to add?
Thanks,
Daniel
Can't compile from master
No dependency for jGit library in pom.xml
@git:time in git:log needs to fix
RevCommit.getCommitTime() have to be multiplied by 1000L
I have XQuery workaround of it:
datetime:timestamp-to-datetime(xs:long($commit/@git:time) * xs:long(1000))
this return true time. May be inclue it in Java code?
Does not build
I'm getting an error when building via mvn clean install
with a fresh checkout of the eXgit repo. Here is the output when re-running with the -e -X
flags to display all errors.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.595 s
[INFO] Finished at: 2015-05-10T14:53:24-04:00
[INFO] Final Memory: 6M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project eXgit: Could not resolve dependencies for project org.exist-db:eXgit:jar:0.3.0: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in http://download.eclipse.org/jgit/maven was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project eXgit: Could not resolve dependencies for project org.exist-db:eXgit:jar:0.3.0: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in http://download.eclipse.org/jgit/maven was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.exist-db:eXgit:jar:0.3.0: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in http://download.eclipse.org/jgit/maven was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
... 23 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in http://download.eclipse.org/jgit/maven was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in http://download.eclipse.org/jgit/maven was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
... 25 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in http://download.eclipse.org/jgit/maven was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:231)
at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
... 27 more
In #8 you suggested using https://github.com/eXist-db/jgit, but when I tried replacing the jgit-repository
of http://download.eclipse.org/jgit/maven
in the pom.xml
with https://raw.githubusercontent.com/eXist-db/jgit/master/
, I still got an error:
[ERROR] Failed to execute goal on project eXgit: Could not resolve dependencies for project org.exist-db:eXgit:jar:0.3.0: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in https://raw.githubusercontent.com/eXist-db/jgit/master/ was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project eXgit: Could not resolve dependencies for project org.exist-db:eXgit:jar:0.3.0: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in https://raw.githubusercontent.com/eXist-db/jgit/master/ was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.exist-db:eXgit:jar:0.3.0: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in https://raw.githubusercontent.com/eXist-db/jgit/master/ was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
... 23 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in https://raw.githubusercontent.com/eXist-db/jgit/master/ was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in https://raw.githubusercontent.com/eXist-db/jgit/master/ was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
... 25 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in https://raw.githubusercontent.com/eXist-db/jgit/master/ was cached in the local repository, resolution will not be reattempted until the update interval of jgit-repository has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:231)
at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
... 27 more
Do you have any suggestions for getting eXgit to build? I'd be happy to test or submit a pull request once I get it working.
Cannot resolve dependency on jgit 3.2.0-SNAPSHOT
When attempting to build via "mvn clean package" I get this error:
[ERROR] Failed to execute goal on project eXgit: Could not resolve dependencies for project org.exist-db:eXgit:jar:0.3.0: Could not find artifact org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT in jgit-repository (http://download.eclipse.org/jgit/maven) -> [Help 1]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.