Peter Johnson wrote:That error usually means that only some of the information for that artifact appears in your local repository. You can usually overcome that by either removing the artifact's directory from your local repository, or by running mvn with the -U parameter.
Another possibility is that the remote repository does not contain the full artifact information (it might have the pom or other metadata files, but not the jar itself). I looked a Maven Central and for version 1.0.1B, there is no JAR file, only a POM. There is a 1.1 version that does have a JAR. You will have to find out which of your dependencies is pulling in the 1.0.1B version, pass the -X option to mvn to get that information. Once you know that, there are several ways to proceed: switch to a different version of that dependency (usually the best course of action), or configure the dependency to ignore the JTA sub-depenendency.
i included below repository in my pom.xml,now it works fine
cheers