gudii9
asked on
struts spring hibernate example
Hi,
I am trying below example
http://www.mkyong.com/struts/struts-spring-hibernate-integration-example/
When i do maven clean all is fine.
when i do maven install i am getting below error.
please advise on how to fix this.
I am trying below example
http://www.mkyong.com/struts/struts-spring-hibernate-integration-example/
When i do maven clean all is fine.
when i do maven install i am getting below error.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------ ---------- ---------- ---------- ------
[INFO] Building StrutsExample Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------ ---------- ---------- ---------- ------
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom (7 KB at 5.5 KB/sec)
[INFO] ------------------------------------ ---------- ---------- ---------- ------
[INFO] BUILD FAILURE
[INFO] ------------------------------------ ---------- ---------- ---------- ------
[INFO] Total time: 3.369 s
[INFO] Finished at: 2016-06-30T22:33:51-04:00
[INFO] Final Memory: 11M/164M
[INFO] ------------------------------------ ---------- ---------- ---------- ------
Failed to execute goal on project StrutsSpringExample: Could not resolve dependencies for project com.mkyong.common:StrutsSpringExampl e:war:1.0- SNAPSHOT: Failure to find javax.transaction:jta:jar: 1.0.1B in http://download.java.net/maven/2/ was cached in the local repository, resolution will not be reattempted until the update interval of Java.Net has elapsed or updates are forced -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
please advise on how to fix this.
With the limited info that I have, it looks as though you have issues connecting to the internet. Internet access is required to retrieve all the project dependencies.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
let me see
ASKER
<repositories>
<repository>
<id>Java.Net</id>
<url>http://download.java.net/maven/2/</url>
</repository>
<!--<repository>
<id>JBoss repository</id>
<url>http://repository.jboss.com/maven2/</url>
</repository>
--></repositories>
i removed both. one is already commented. still removed both one uncommented otther commented
ASKER
even before removing itself pom giving below error
Missing artifact javax.transaction:jta:jar: 1.0.1B
after removing those entries also above error there. please advise
Missing artifact javax.transaction:jta:jar:
after removing those entries also above error there. please advise
even before removing itself pom giving below error
WHAT!
Why didn't you mention that in the original question?????
Why not try getting it from maven central instead:
<dependency>
<groupId>javax.transaction
<artifactId>jta</artifactI
<version>1.1</version>
</dependency>
ASKER
i think i tried and did not work. will try again
ASKER
not working. Please advise
What are the symptoms?
ASKER
is this example works for you. can you please let me know?
ASKER
same old missing artifact symptom as attached
symptoms.png
symptoms.png