Issue Details (XML | Word | Printable)

Key: APF-605
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Kiaresch Mussawisade
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Error transferring file org.hibernate:hibernate:jar:3.2.1.ga

Created: 31/Jan/07 07:49 AM   Updated: 31/Jan/07 12:35 PM   Resolved: 31/Jan/07 12:35 PM
Component/s: Build, Test, or Deploy Process
Affects Version/s: 2.0-M2
Fix Version/s: 2.0-M3

Environment: Windows XP. behind a proxy and firewall


 Description  « Hide
Hi,

I could run the command

>mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=1.0-m2 -DgroupId=mygroupid -DartifactId=myartifactid

without any problems

but running mvn with other tasks in the myartifactid-directory stops during the download of hibernate-3.2.1.ga.jar. see a part of the bug trace below.
I could imagine that this is a problem due to the combination of using a proxy and https??
Regards,
Kia

Downloading: https://maven2-repository.dev.java.net/nonav/repository/org/hibernate/hibernate/3.2.1.ga/hibernate-3.2.1.ga.jar

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Error transferring file
  org.hibernate:hibernate:jar:3.2.1.ga

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (https://maven2-repository.dev.java.net/nonav/repository),
  glassfishwiki.org (http://maven2.glassfishwiki.org),
  maven2-repository.dev.java.net (https://maven2-repository.dev.java.net/nonav/repository),
  appfuse (http://static.appfuse.org/repository)
Caused by I/O exception: Network is unreachable: connect

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error transferring file
  org.hibernate:hibernate:jar:3.2.1.ga

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (https://maven2-repository.dev.java.net/nonav/repository),
  glassfishwiki.org (http://maven2.glassfishwiki.org),
  maven2-repository.dev.java.net (https://maven2-repository.dev.java.net/nonav/repository),
  appfuse (http://static.appfuse.org/repository)



Sort Order: Ascending order - Click to sort in descending order
Matt Raible added a comment - 31/Jan/07 12:31 PM
Yes, this issue is caused by the Maven 2 repo at java.net, which is only available via https. If you're behind a proxy server, things simply don't work well with Maven 2.0.4.

https://maven2-repository.dev.java.net/

There's a few solutions:

1. Install JTA locally yourself.
2. Upgrade to Maven 2.0.5 (should be out in the next few weeks).
3. Exclude JTA and include Geronimo's JTA.

Matt

Matt Raible added a comment - 31/Jan/07 12:35 PM
Looks like JTA is now available in Maven's central repo: http://mvnrepository.com/artifact/javax.transaction/jta

Removed maven2.glassfishwiki.org from hibernate and jpa-hibernate modules.