Sonar isn't located in your company Nexus (yet) but it guess Nexus is
connected to Maven Central so once requested it'll happily download and
cache it, as any other Maven Central dependency.
Can you try it again, this time while keeping the Nexus-specific
"settings.xml" ?



On Fri, May 18, 2012 at 9:58 PM, hujirong <[email protected]> wrote:

> I got the following error when do a "mvn clean install". I tried this type
> of
> delete .m2/repository and recompile many times, always encounter similar
> errors. I guess it's due to I am new to Maven. I am using the default
> settings.xml as installed.
>
> We are using a company internal Nexus repository. So the snapshots in the
> error below was generated when I point the settings.xml to the company
> internal. Now I want to use Sonar, but it's not in company Nexus. So now I
> change to the default settings.xml to use the Maven central. But these jars
> are already installed into my local repository, why say can't resolved?
>
> [ERROR] Failed to execute goal on project ClientServicesBOLib: Could not
> resolve dependencies for project com.nbfg.max.w
> esb:ClientServicesBOLib:jar:0.0.1-SNAPSHOT: The following artifacts could
> not be resolved: com.nbfg.fw.foundation:NbfgLogging:jar:2.0.0,
> com.nbfg.fw.foundation:NbfgLoggingJee:jar:2.0.0: Could not find artifact
> com.nbfg.fw.foundation:NbfgLog
> ging:jar:2.0.0 in central (http://repo1.maven.org/maven2) -> [Help 1]
> [ERROR]
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Could-not-find-artifact-com-nbfg-fw-maven-nbfg-m-aven-pom-1-0-1-in-central-tp5708978p5708982.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to