I was getting "Badly Formed Maven Project" error in Netbeans so I tried
building hk2 source.
I checked out hk2 source :
svn checkout
https://hk2.dev.java.net/svn/hk2/trunk
and ran mvn install from hk2 directory - get this error :
[INFO] Unable to find resource
'com.sun.enterprise:hk2-maven-plugin:maven-plugin:0.3.96-SNAPSHOT' in
repository jvnet-maven2-repository (
http://download.java.net/maven/2/)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Plugin could not be found - check that the goal name is correct:
Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.enterprise
-DartifactId=hk2-maven-plugin -Dversion=0.3.96-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=com.sun.enterprise
-DartifactId=hk2-maven-plugin -Dversion=0.3.96-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
com.sun.enterprise:hk2-maven-plugin:maven-plugin:0.3.96-SNAPSHOT
from the specified remote repositories:
central (
http://repo1.maven.org/maven2),
jvnet-maven2-repository (
http://download.java.net/maven/2/),
glassfish-repository (
http://download.java.net/maven/glassfish/)
com.sun.enterprise:hk2-maven-plugin:maven-plugin:0.3.96-SNAPSHOT
from the specified remote repositories:
central (
http://repo1.maven.org/maven2),
jvnet-maven2-repository (
http://download.java.net/maven/2/),
glassfish-repository (
http://download.java.net/maven/glassfish/)
Anyone knows what's wrong?