Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

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.

[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:StrutsSpringExample: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.
Avatar of mccarl
mccarl
Flag of Australia image

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
Avatar of gurpsbassi
gurpsbassi
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

let me see
Avatar of gudii9

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
Avatar of gudii9

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
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</groupId>
            <artifactId>jta</artifactId>
            <version>1.1</version>
      </dependency>
Avatar of gudii9

ASKER

i think i tried and did not work. will try again
Avatar of gudii9

ASKER

not working. Please advise
What are the symptoms?
Avatar of gudii9

ASKER

is this example works for you. can you please let me know?
Avatar of gudii9

ASKER

same old missing artifact symptom as attached
symptoms.png