Just an explanation, I used the repository where my maven plugin is
deployed.
NGUYEN Cong Kinh a écrit :
Hello,
I create one maven plugin is maven-juliac-plugin-me and deploy my
maven plugin to the web. Then I do as the following:
$ rm -rf ~/.m2/repository/*
go to my example using the maven plugin. I specify the repository to
the web. But I don't know why while I execute the "mvn clean install"
command, I always have an error (concerning the default repository of
Maven):
Downloading:
http://repo1.maven.org/maven2/org/objectweb/fractal/juliac/maven-juliac-plugin-me/2.1.6/maven-juliac-plugin-me-2.1.6.jar
[INFO] Unable to find resource
'org.objectweb.fractal.juliac:maven-juliac-plugin-me:maven-plugin:2.1.6'
in repository central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] A required plugin was not found: 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=org.objectweb.fractal.juliac
-DartifactId=maven-juliac-plugin-me -Dversion=2.1.6
-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=org.objectweb.fractal.juliac
-DartifactId=maven-juliac-plugin-me -Dversion=2.1.6
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
org.objectweb.fractal.juliac:maven-juliac-plugin-me:maven-plugin:2.1.6
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
org.objectweb.fractal.juliac:maven-juliac-plugin-me:maven-plugin:2.1.6
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
The code of maven-juliac-plugin-me is at
http://picoforge.int-evry.fr/websvn/listing.php?repname=cosmos&path=%2Ftrunk%2Fcosmos-me%2Fexternals%2Ffractal%2Fjuliac%2Fmojo%2F&rev=0&sc=0
and the example is at
http://picoforge.int-evry.fr/websvn/listing.php?repname=cosmos&path=%2Ftrunk%2Fcosmos-me%2Fcosmos%2Fexamples%2Fhelloworld-juliac%2F&rev=0&sc=0
Could anyone help me?
Thanks in advance,
Kinh
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email