Hi,

Do you have a repository configured? You're trying to read artifacts from 
maven.glassfish.org, which is generally intended for glassfish development. You 
should be able to get most of what you want from maven central.

- Russ

On Jul 10, 2013, at 9:46 PM, 邹志勇 <zouzhiyong0...@163.com> wrote:

> Hi,
> After i run the command 'mvn package', then i get the following error message 
> :
> Failed to execute goal org.kohsuke:access-modifier-checker:1.4:enforce 
> (default-enforce) on project javaone-sample: Execution default-enforce of 
> goal org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin 
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not 
> be resolved: Failed to collect dependencies at 
> org.kohsuke:access-modifier-checker:jar:1.4 -> 
> org.kohsuke:access-modifier-annotation:jar:1.4 -> 
> org.jenkins-ci:annotation-indexer:jar:1.4: Failed to read artifact descriptor 
> for org.jenkins-ci:annotation-indexer:jar:1.4: Could not transfer artifact 
> org.jenkins-ci:annotation-indexer:pom:1.4 from/to m.g.o-public 
> (http://maven.glassfish.org/content/groups/public/): hostname in certificate 
> didn't match: <maven.glassfish.org> != <maven.java.net> OR <maven.java.net> 
> -> [Help 1]
> So, why, am i need to config in somewhere?
> 
> Thanks.

-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>, 
and listen to the Misfile radio play 
<http://www.gold-family.us/audio/misfile.html>!




Reply via email to