Thanks. I was unaware of the wiki before now. The maven archetypes idea failed due to "1 required artifact is missing"; I assume I need to update my maven environment to check repos beyond the standard central repo, but it's unclear what that might be. Here's the script:
mvn archetype:generate -DarchetypeCatalog=http://tuscany.apache.org [INFO] Scanning for projects... [WARNING] Profile with id: 'myProfile' has not been activated. [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [archetype:generate] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [archetype:generate] [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tuscany.apache.org -> tuscany-contribution-jar (Create an SCA JAR contribution project) 2: http://tuscany.apache.org -> tuscany-contribution-zip (Create an SCA ZIP contribution project) 3: http://tuscany.apache.org -> tuscany-quickstart (Create a simple SCA webapp project) 4: http://tuscany.apache.org -> tuscany-quickstart-jsf (Create a Webapp using SCA and JSF) 5: http://tuscany.apache.org -> tuscany-quickstart-stripes (Create a Webapp using SCA and the Stripes Web Framework) Choose a number: (1/2/3/4/5): 3 Downloading: http://tuscany.apache.org/org/apache/tuscany/sca/tuscany-quickstart/2.0-M2/tuscany-quickstart-2.0-M2.jar [INFO] Unable to find resource 'org.apache.tuscany.sca:tuscany-quickstart:jar:2.0-M2' in repository tuscany-quickstart-repo (http://tuscany.apache.org) Downloading: http://repo1.maven.org/maven2/org/apache/tuscany/sca/tuscany-quickstart/2.0-M2/tuscany-quickstart-2.0-M2.jar [WARNING] Unable to get resource 'org.apache.tuscany.sca:tuscany-quickstart:jar:2.0-M2' from repository central (http://repo1.maven.org/maven2): Specified destination directory cannot be created: /Users/hankgay/.m2/org/apache/tuscany/sca/tuscany-quickstart/2.0-M2 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] The desired archetype does not exist (org.apache.tuscany.sca:tuscany-quickstart:2.0-M2) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 seconds [INFO] Finished at: Wed Jun 24 14:48:22 EDT 2009 [INFO] Final Memory: 13M/252M [INFO] ------------------------------------------------------------------------ On Wed, Jun 24, 2009 at 1:58 PM, ant elder<[email protected]> wrote: > How about the maven archetypes described at: > > http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+Maven+Archetypes > > They are for the 2.x code not 1.x and are still under development, do > any of them do what you want? If not I'd be happy to add one that is > more like what you need. > > ...ant > > On Wed, Jun 24, 2009 at 6:35 PM, Hank Gay <[email protected]> wrote: >> >> Does it exist? >> >> I attempted to write one of my own, but can't find the magic >> combination of repository and dependency definitions to even get >> started. Failing that, I went to the source I had downloaded >> previously and tried to run the calculator sample, as suggested by >> http://tuscany.apache.org/getting-started-with-tuscany-using-the-command-line.html >> >> Looking at the pom.xml file, my first problem was that it referenced >> the pom for all of Tuscany SCA as a parent, which isn't desirable for >> me because I don't want my simple learning app to require a complete >> source distro of Tuscany SCA. Still, I wanted to get something up so I >> could begin to experiment with Tuscany SCA, so I went ahead and ran >> `mvn test` on the calcualator sample. That's when I got the error >> included below. >> >> Am I just making a massive n00b mistake? Does anyone know of a >> step-by-step tutorial for building a bare-bones, Maven-managed, >> CLI-driven Tuscany SCA Hello World? >> >> Thanks, >> >> Hank >> >> [WARNING] Unable to get resource >> 'org.apache.tuscany.sca:tuscany-node-api:jar:1.5' from repository >> central (http://repo1.maven.org/maven2): Specified destination >> directory cannot be created: >> /Users/hankgay/.m2/org/apache/tuscany/sca/tuscany-node-api/1.5 >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Failed to resolve artifact. >> >> Missing: >> ---------- >> 1) org.apache.tuscany.sca:tuscany-node-api:jar:1.5 >> >> Try downloading the file manually from the project website. >> >> Then, install it using the command: >> mvn install:install-file -DgroupId=org.apache.tuscany.sca >> -DartifactId=tuscany-node-api -Dversion=1.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.apache.tuscany.sca >> -DartifactId=tuscany-node-api -Dversion=1.5 -Dpackaging=jar >> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >> >> Path to dependency: >> 1) org.apache.tuscany.sca:sample-calculator:jar:1.5 >> 2) org.apache.tuscany.sca:tuscany-node-api:jar:1.5 >> >> ---------- >> 1 required artifact is missing. >> >> for artifact: >> org.apache.tuscany.sca:sample-calculator:jar:1.5 >> >> from the specified remote repositories: >> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), >> central (http://repo1.maven.org/maven2), >> indiana (http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/), >> apache.incubator (http://people.apache.org/repo/m2-incubating-repository), >> apache.ws.zone (http://ws.zones.apache.org/repository2), >> osuosl.org (http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2) >
