- This topic has 3 replies, 3 voices, and was last updated 15 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
mengmvnMemberIn MyEclipse 5.5.1, we add the m2eclipse.
In the pom.xml, we have defined a SNAPSHOT version of a jar (e.g. shac-SNAPSHOT.jar), which showup properly in the Maven Dependencies and the artifact jar is downloaded properly.
However, we want to get its source jar, we highlighted this item, and right, choose maven, click Download Sources, nothing happened. The shac-SNAPSHOT-sources.jar is not download to the .m2 folder.In the pom.xml, we do have the following settings on repositories
<snapshots>
<enabled>true</enabled>
</snapshots>In the repository, we do have the sources jar
-rw-r–r– 1 bhdvobj dce 40 Jan 13 16:36 shac-20090113.223618-125.pom.sha1
-rw-r–r– 1 bhdvobj dce 32 Jan 13 16:36 shac-20090113.223618-125.pom.md5
-rw-r–r– 1 bhdvobj dce 2485 Jan 13 16:36 shac-20090113.223618-125.pom
-rw-r–r– 1 bhdvobj dce 40 Jan 13 16:36 shac-20090113.223618-125.jar.sha1
-rw-r–r– 1 bhdvobj dce 32 Jan 13 16:36 shac-20090113.223618-125.jar.md5
-rw-r–r– 1 bhdvobj dce 878011 Jan 13 16:36 shac-20090113.223618-125.jar
-rw-r–r– 1 bhdvobj dce 40 Jan 13 16:36 maven-metadata.xml.sha1
-rw-r–r– 1 bhdvobj dce 32 Jan 13 16:36 maven-metadata.xml.md5
-rw-r–r– 1 bhdvobj dce 339 Jan 13 16:36 maven-metadata.xml
-rw-r–r– 1 bhdvobj dce 40 Jan 13 16:36 shac-20090113.223618-125-sources.jar.sha1
-rw-r–r– 1 bhdvobj dce 32 Jan 13 16:36 shac-20090113.223618-125-sources.jar.md5
-rw-r–r– 1 bhdvobj dce 637478 Jan 13 16:36 shac-20090113.223618-125-sources.jar
$ pwd
/approot/cc/dev1/webtier/docs/repo2/ubhsc/shac/SNAPSHOTThis happens on MyEclipse 7.0 as well,
when I highlighted the shac-SNAPSHOT.jar and right click Maven4MyEclipse –> Download Sources, nothing happened.Please help on this issues.
Meng
[/img]
Loyal WaterMemberMeng,
I have asked the dev team to look into this issue. They will get back to you with an answer asap.
mengmvnMemberany updates on this issue ?
Riyad KallaMemberMeng,
This really looks to be a repository-configuration question. In MyEclipse anytime the “Download Sources” or “Download Javadoc” operations fail silently, it means the resource requested could not be resolved and downloaded. That could possibly be what is happening here.
I don’t know if that’s an app server configuration problem, a Maven repository issue or maybe even a POM issue… sorry I can’t be more helpful, but on the MyEclipse side, atleast I can tell you that it cannot resolve the resource reference, that is why it’s failing.
As a quick check, you can run Maven from the command line and see if it pulls down the sources there?
-
AuthorPosts