honesthenry
|
Posted: February 19, 2010 05:06 by honesthenry
|
|
mvn clean install gives me the following error. Can you shed some light on how to go about this issue? [INFO] Error building POM (may not be this project's POM). Project ID: com.sun.enterprise:osgiversion-maven-plugin Reason: POM 'com.sun.enterprise:osgiversion-maven-plugin' not found in repository: Unable to download the artifact from any repository com.sun.enterprise:osgiversion-maven-plugin om:0.4.11 |
Can you help me resolve maven build issue with osgiversion-maven-plugin?
Replies: 3 - Last Post: June 11, 2011 15:37
by: denebeim
by: denebeim
showing 1 - 4 of 4
shannon
|
Posted: April 21, 2010 05:18 by shannon
|
|
I'm not really a maven expert, but... You might need to add the GlassFish repository to your settings.xml. Here's what I'm using:
<settings 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/settings-1.0.0.xsd">
<localRepository>${WS}/.m2/repository</localRepository>
<mirrors>
<mirror>
<id>hk2gf</id>
<name>Nexus Public Mirror</name>
<url>http://maven.glassfish.org/content/groups/glassfish</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>
Let me know if that solves your problem. The JavaMail pom.xml was supposed to handle this for you but perhaps it's not working. |
denebeim
|
Posted: June 11, 2011 15:37 by denebeim
|
|
I seem to be having the same problem. This is on an ubuntu based system running netbeans 6.9. The steps I went through was I pointed the netbeans team-mercurial->clone other at https://hg.kenai.com/hg/javamail~mercurial and cloned it to my default netbeans work directory under the project's default name. I got the same error. In my case it turned out to be a problem with my local artifact cache. I have this in my settings.xml file <mirrors> <mirror> <mirrorOf>*</mirrorOf> <name>remote-repos</name> <url>http://localhost:8081/artifactory/repo</url> <id>remote-repos</id> </mirror> </mirrors> When I remove it the maven build works. That means to me that http://download.java.net/maven/glassfish/ is not being cached in artifactory since a google search on osgiversion-maven-plugin-0.4.11.pom finds the artifact in that location. I'm going to try to figure out what's up with my artifact cache, but removing it definitely fixed my problem. |
Replies: 3 - Last Post: June 11, 2011 15:37
by: denebeim
by: denebeim

om:0.4.11





