Page 1 of 2

Missing Artifact errors in pom.xml

Posted: Tue Feb 12, 2013 12:48 pm
by simonqiang
I am new for broadleaf, and following the documentation get started to setup the project, I am using maven version 3
eclipse shows missing artifact errors in pom.xml file in all the project. after import the maven projects.


Multiple annotations found at this line:
- Missing artifact org.springframework:spring-oxm:jar:3.1.1.RELEASE
- Missing artifact javassist:javassist:jar:3.12.0.GA
- ArtifactTransferException: Failure to transfer org.springframework:spring-tx:jar:3.1.1.RELEASE from
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted
until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.springframework:spring-tx:jar:3.1.1.RELEASE from/to central (http://repo.maven.apache.org/maven2): No
response received after 60000
- ArtifactTransferException: Failure to transfer org.javassist:javassist:jar:3.16.1-GA from http://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the
update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.javassist:javassist:jar:3.16.1-GA from/to central (http://repo.maven.apache.org/maven2): No response
received after 60000
- ArtifactTransferException: Failure to transfer com.sun.jersey:jersey-json:jar:1.11 from http://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the
update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
com.sun.jersey:jersey-json:jar:1.11 from/to central (http://repo.maven.apache.org/maven2): No response
received after 60000
- Missing artifact org.hibernate:hibernate-tools:jar:3.2.4.GA
.....................
....................
....................

Can any one help me on this issue?

Re: Missing Artifact errors in pom.xml

Posted: Tue Feb 12, 2013 1:05 pm
by simonqiang
hi all
I solve the problem with below steps

rm -rf ~/.m2/repository/antlr
rm -rf ~/.m2/repository/aopalliance
rm -rf ~/.m2/repository/asm

Eclipse->preference->Maven->user setting->update settings.

but in the my eclipse there is one more error left, which the error is in jquery-1.7.2-mins.js files error is as below
Multiple markers at this line
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Type mismatch: cannot convert from any[] to
any
.....................
.....................

Re: Missing Artifact errors in pom.xml

Posted: Tue Feb 12, 2013 1:09 pm
by phillipuniverse
This probably will not pass any sort of javascript validation provided by eclipse since it is minified. I wouldn't worry about errors it shows you in the javascript files.

Re: Missing Artifact errors in pom.xml

Posted: Mon Jun 10, 2013 12:35 pm
by MrDourado
I have same problem and just remove some groupIds does not resolve.

When I use outside Eclipse and type "mvn verify" build process freeze at this point:

Code: Select all

Downloading: http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/com/sun/jersey/jersey-json/1.11/jersey-json-1.11.pom
Downloading: http://repo.maven.apache.org/maven2/com/sun/jersey/jersey-json/1.11/jersey-json-1.11.pom


Than after some seconds/minutos they fail due a timeout exception. The most strange is that if you point your browser to http://repo.maven.apache.org/maven2/com ... rver/1.11/ and try download file jersey-server-1.11.jar you will see the same problem.

I try mirrors of repo1 and nothing solve my problem.

Broadleaf guys, can you hold this artifact in your repo?

Re: Missing Artifact errors in pom.xml

Posted: Wed Jun 12, 2013 1:25 am
by phillipuniverse
Not sure if we're able to put that on our nexus; most of the time license constraints forbid us from hosting those jars ourselves and distributing them.

Looks like it was a temporary timeout from maven central; I just tried downloading jersey-server-1.11.jar from the link that you provided and it downloaded successfully.

Re: Missing Artifact errors in pom.xml

Posted: Wed Jun 12, 2013 12:08 pm
by MrDourado
Thanks for reply philipuniverse. Magically the problem has solved yesterday, I think that you are right about some timeout or other issue with maven central and your mirrors.

So, now I can back to Getting Started wiki and run my on Broadleaf.