git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Someone using GIT and Maven?

From
Ccdossantos <claudia.dossantos@ricoh-europe.com>
Date
Oct 1, 2010, 06:11 UTC
Message-ID
<1285913490619-5590307.post@n2.nabble.com>
Hello,

I'm evaluating GIT in a Linux environment (Ubuntu 10.04) and one of our requirements is compliance with Maven 2.0. I tested the maven release plugin (mvn org.apache.maven.plugins:maven-release-plugin:2.0:prepare) but got this error:

... [INFO] Checking in modified POMs... [INFO] Executing: /bin/sh -c cd /root/git-repos4/project2 && git add -- pom.xml moduleA/pom.xml moduleB/pom.xml [INFO] Working directory: /root/git-repos4/project2 [INFO] Executing: /bin/sh -c cd /root/git-repos4/project2 && git status [INFO] Working directory: /root/git-repos4/project2 [INFO] Executing: /bin/sh -c cd /root/git-repos4/project2 && git commit --verbose -F /tmp/maven-scm-845822206.commit pom.xml moduleA/pom.xml moduleB/pom.xml [INFO] Working directory: /root/git-repos4/project2 [INFO] Executing: /bin/sh -c cd /root/git-repos4/project2 && git symbolic-ref HEAD [INFO] Working directory: /root/git-repos4/project2 [INFO] Executing: /bin/sh -c cd /root/git-repos4/project2 && git push http://172.17.27.218/project2 master:master [INFO] Working directory: /root/git-repos4/project2 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to commit files Provider message: The git-push command failed. Command output: error: Cannot access URL http://172.17.27.218/project2/, return code 22 fatal: git-http-push failed

But if i use the git command push i don't have any problems:
~/git-repos4/project2# git push origin master
Fetching remote heads...
  refs/
  refs/heads/
  refs/tags/
updating 'refs/heads/master'
  from 44728f87a5a6f90a0c8e131ad7749811ac133681
  to   8a451fc775478c144686744a0b4c0490be23b0b9
    sending 6 objects
    done
Updating remote server info
To http://localhost/project2/
   44728f8..8a451fc  master -> master
Could be an authentication problem?
I tried as well the command with username and password (mvn
-Dusername="admin" -Dpassword="admin"
org.apache.maven.plugins:maven-release-plugin:2.0:prepare), but got the same
error.
Then I tried to change the scm connection in the POM file, but got the same
error:
<scm>
   
<connection>scm:git:http://admin:admin@172.17.27.218/project2</connection>
</scm>

I have the file .netrc configured with host, username and password. Does Maven use this file?

Any ideas?
regards,
Santos 
-- 
View this message in context: http://git.661346.n2.nabble.com/Someone-using-GIT-and-Maven-tp5590307p5590307.html
Sent from the git mailing list archive at Nabble.com.
Next: cdossantos
Message 1 of 4 in “Someone using GIT and Maven?”
  1. cdossantosOct 1, 2010
  2. cdossantosOct 6, 2010
  3. Ævar Arnfjörð BjarmasonOct 6, 2010
  4. cdossantosOct 6, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.