|
Fornax-Platform
Forum |
|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Sculptor Newbie - can't build HelloWorld!I've followed Installation and HelloWorld Tutorial instructions but am having problems as below dragging in some org.eclipse dependencies.
After running this one: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create \ -DarchetypeGroupId=org.fornax.cartridges \ -DarchetypeArtifactId=fornax-cartridges-sculptor-archetype-standalone -DarchetypeVersion=1.7.0-SNAPSHOT \ -DremoteRepositories=http://www.fornax-platform.org/archiva/repository/snapshots/ \ -DgroupId=org.helloworld -DartifactId=helloworld I'd tried mvn eclipse:eclipse but got this: Downloading: http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/3.2.200/preferences-3.2.200.jar Downloading: http://repo1.maven.org/maven2/org/eclipse/core/contenttype/3.3.0/contenttype-3.3.0.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.eclipse.equinox:preferences:jar:3.2.200 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.equinox -DartifactId=preferences -Dversion=3.2.200 -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.eclipse.equinox -DartifactId=preferences -Dversion=3.2.200 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.helloworld:helloworld:jar:1.0-SNAPSHOT 2) org.fornax.cartridges:fornax-cartridges-sculptor-generator:jar:1.7.0-SNAPSHOT 3) org.fornax.cartridges:fornax-cartridges-sculptor-metamodel:jar:1.7.0-SNAPSHOT 4) org.eclipse.emf:common:jar:2.3.0 5) org.eclipse.core:runtime:jar:3.3.100-v20070530 6) org.eclipse.equinox:preferences:jar:3.2.200 2) org.eclipse.core:contenttype:jar:3.3.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.core -DartifactId=contenttype -Dversion=3.3.0 -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.eclipse.core -DartifactId=contenttype -Dversion=3.3.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dre positoryId=[id] Path to dependency: 1) org.helloworld:helloworld:jar:1.0-SNAPSHOT 2) org.fornax.cartridges:fornax-cartridges-sculptor-generator:jar:1.7.0-SNAPSHOT 3) org.fornax.cartridges:fornax-cartridges-sculptor-metamodel:jar:1.7.0-SNAPSHOT 4) org.eclipse.emf:common:jar:2.3.0 5) org.eclipse.core:runtime:jar:3.3.100-v20070530 6) org.eclipse.core:contenttype:jar:3.3.0 ---------- 2 required artifacts are missing. I've now spent many days just to get to this point and I'm wondering is there an easier way? eg. is this needing me to specify a specific repository so i can grab those dependencies OR should i even be using 1.7.0-SNAPSHOT version of fornax-cartridges-sculptor-archetype-standalone ? ie. is there a stable version that I should use instead. Pls help as the sculptor DSL looks great - would love to be playing with it but so far very frustrated ![]() |
|
|
Re: Sculptor Newbie - can't build HelloWorld!Ok got past this problem by manually downloading the stuff needed. Eventually found it inside fornax repo - and still unsure why its there and not inside http://repo2.maven.org/eclipse ??
Not being a maven person I found this fairly tricky to track down so if possible I'd suggest the docco on helloworld tutorial could include something to help people like me .. anyway now can move on to trying out sculptor! |
|
|
Re: Sculptor Newbie - can't build HelloWorld!The eclipse jars are located in several maven repositories. Some are unfortunatly wrong. The ones in fornax repository are correct. I just tested with an empty local repository and everything works fine. Maybe this can happen if you had some wrong jars in your local repository when starting.
/Patrik
|
|
|
maven-jar-plugin:2.3-SNAPSHOT?Patrik thanks for the info, I've got way further now working thru many examples etc but I'm still struggling a bit with understanding roundup of maven dependencies. My latest problem is that just yesterday a new version of maven-jar-plugin seems to be required and the fornax repos and the maven central repo don't seem to have the required artefact. In particular it is looking for org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.3-20081030.213702-5 That one doesn't seem to be inside any of the fornax repositories ?? After trawling across the web I can find some copies of that artifact in some obscure repositories but I'm confused re why it should be this hard. By the way I'm massively impressed with sculptor and hoping to use it extensively though right now its a real test of patience to struggle against maven repo inconsistencies and problems. You mentioned starting with a clean repository and I've tried that in this case but re-downloaing everything I'm still ending up at this spot, needing that artifact Note see below shows that I'm only checking those repos - should i be also including some others? [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from releases.archiva.fornax-platform.org [INFO] snapshot org.apache.maven.plugins:maven-jar-plugin:2.3-SNAPSHOT: checking for updates from central [INFO] snapshot org.apache.maven.plugins:maven-jar-plugin:2.3-SNAPSHOT: checking for updates from snapshots.archiva.fornax-platform.org |
|
|
Re: maven-jar-plugin:2.3-SNAPSHOT?I don't know why you see a dependency to maven-jar-plugin 2.3-SNAPSHOT.
You can specify in your pom.xml that you would like to use 2.2 <dependencey> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.2</version> </dependencey> Note that the log u included is not any error, it is just looking for a new snapshot. You can speed up the build if you have already downloaded the dependencies, use -o -npu mvn -o -npu generate-sources /Patrik
|
|
|
Re: maven-jar-plugin:2.3-SNAPSHOT?Thanks for your help Patrik I did get past that problem by nuking my maven repo as you'd suggested previously but now getting a no. of things missing mvn install of simple -web project as per running the archetype tutorial
See this post for more info: http://www.nabble.com/Running-sculptor-%27out-of-the-box%27-td25734853s17564.html The business tier builds and tests fine but the web project seems to be needing a swag of things that aren't available in the fornax and maven repos. Any ideas on that? |
| Free embeddable forum powered by Nabble | Forum Help |