maven - Adding a depency to my pom makes it crash -


i'm using maven in eclipse maven test whit project , have next pom

<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.co.misterfish</groupid> <artifactid>misterfishlogico</artifactid> <packaging>war</packaging> <version>1.0</version> <name>mister fish</name> <dependencies>     <dependency>         <groupid>mysql</groupid>         <artifactid>mysql-connector-java</artifactid>         <version>5.1.25</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>4.5</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>org.glassfish</groupid>         <artifactid>javax.ejb</artifactid>         <version>3.1</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.eclipse.persistence</groupid>         <artifactid>javax.persistence</artifactid>         <version>2.1.0</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.eclipse.persistence</groupid>         <artifactid>eclipselink</artifactid>         <version>2.5.0</version>     </dependency>     <dependency>         <groupid>org.glassfish.main.extras</groupid>         <artifactid>glassfish-embedded-all</artifactid>         <version>4.0</version>         <scope>test</scope>     </dependency> </dependencies>  <build>     <plugins>         <plugin>             <inherited>true</inherited>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.3.2</version>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-jar-plugin</artifactid>             <version>2.2</version>             <executions>                 <execution>                     <goals>                         <goal>test-jar</goal>                     </goals>                 </execution>             </executions>             <configuration>                 <source>1.7</source>                 <target>1.7</target>                 <archive>                     <manifest>                         <mainclass>com.co.misterfish.aplication.ejb.userejb</mainclass>                     </manifest>                 </archive>             </configuration>         </plugin>         <plugin>             <groupid>org.glassfish</groupid>             <artifactid>maven-embedded-glassfish-plugin</artifactid>             <version>3.1</version>         </plugin>     </plugins> </build> <properties>     <project.build.sourceencoding>utf-8</project.build.sourceencoding>     <project.reporting.outputencoding>utf-8</project.reporting.outputencoding> </properties> </project> 

when add next dependency pom

<dependency>   <groupid>org.glassfish.appclient</groupid>   <artifactid>gf-client</artifactid>   <version>3.2-b06</version> </dependency> 

i error message, , i've tried whit different versions of appclient, gets same error

[info] scanning projects... [info]                                                                          [info] ------------------------------------------------------------------------ [info] building mister fish 1.0 [info] ------------------------------------------------------------------------ downloading: (... lot of links...) [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 22.118s [info] finished at: mon jul 15 00:59:34 cot 2013 [info] final memory: 12m/28m [info] ------------------------------------------------------------------------ [error] failed execute goal on project misterfishlogico: not resolve dependencies project com.co.misterfish:misterfishlogico:war:1.0: failed collect dependencies [mysql:mysql-connector-java:jar:5.1.25 (test), org.glassfish.appclient:gf-client:jar:3.2-b06 (compile), junit:junit:jar:4.5 (test), org.glassfish:javax.ejb:jar:3.1 (provided), org.eclipse.persistence:javax.persistence:jar:2.1.0 (provided), org.eclipse.persistence:eclipselink:jar:2.5.0 (compile), org.glassfish.main.extras:glassfish-embedded-all:jar:4.0 (test)]: failed read artifact descriptor org.eclipse.persistence:javax.persistence:jar:2.0.3: not transfer artifact org.eclipse.persistence:javax.persistence:pom:2.0.3 from/to glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish): hostname in certificate didn't match: <maven.glassfish.org> != <maven.java.net> or <maven.java.net> -> [help 1] [error]  [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles:  [error] [help 1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception 

what can add dependenct whitout making maven fail?

i think part of error issue:

could not transfer artifact org.eclipse.persistence:javax.persistence:pom:2.0.3    from/to glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish):   hostname in certificate didn't match: <maven.glassfish.org> != <maven.java.net> or <maven.java.net> -> [help 1] [error]  

have configured repository called "glassfish-repo-archive" in maven settings file?


Comments