Hi, I have been trying to setup my eclipse to develop an exception, as shown
here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents .
However right after importing the project, when I try to run the =mvn
install= command I get this error:
vito@vitox:~/workspace/routes-wiki-1.x/RoutesAccessPoint$ mvn install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building XWiki Macro - Hello World Component
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-component-defau…
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-component-default:pom:2.5' in repository
central (
http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-script/2.5/xwik…
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-script:pom:2.5' in repository central
(
http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-shared-tests/2.…
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-shared-tests:pom:2.5' in repository central
(
http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-component-defau…
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-component-default:jar:2.5' in repository
central (
http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-script/2.5/xwik…
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-script:jar:2.5' in repository central
(
http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.xwiki.platform:xwiki-core-component-default:jar:2.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component-default -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component-default -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT
2) org.xwiki.platform:xwiki-core-component-default:jar:2.5
2) org.xwiki.platform:xwiki-core-script:jar:2.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-script -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-script -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT
2) org.xwiki.platform:xwiki-core-script:jar:2.5
----------
2 required artifacts are missing.
for artifact:
ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT
from the specified remote repositories:
central (
http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Dec 08 17:18:11 CET 2010
[INFO] Final Memory: 14M/103M
[INFO]
------------------------------------------------------------------------
Am I missing something?
do I perhaps have to install the whole xwiki source code base first? how?
thanks
Vito
--
View this message in context:
http://xwiki.475771.n2.nabble.com/help-in-setup-component-development-tp581…
Sent from the XWiki- Users mailing list archive at
Nabble.com.