• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maven, woapplication-archetype not found when using the local catalog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maven, woapplication-archetype not found when using the local catalog


  • Subject: Re: Maven, woapplication-archetype not found when using the local catalog
  • From: Lachlan Deck <email@hidden>
  • Date: Mon, 8 Dec 2008 08:38:27 +1100

Hi Will,

On 07/12/2008, at 5:46 AM, William Hatch wrote:

More playing around with getting this to fly; using latest WOLips, Eclipse 3.4 and I hope (not sure which version of WO you get when installing with maven) WO 5.4.3.

You can check on the versions installed by: $ ls ~/.m2/repository/com/webobjects/JavaWebObjects

You'll see a list of folders (one per version) for that framework each of which contain the relevant jar etc.

I've been able to successfully install the WO snapshots

Do you mean the nightlies from Apple? How did you install?
Just be careful if you copied the apple nightlies over the top of your current repo install of WO as it'll bork your catalog xml file (in the above dir for example).


and build and install wonder into my local repository using maven, but when trying to use the woapplication-archetype as defined in my local archetype-catalog in ~/.m2/ to create a new project by doing the following:
mvn -e archetype:generate -DarchetypeCatalog=local
and then selecting "1" when presented with this prompt:
Choose archetype: 1: local -> woapplication-archetype (WebObjects Application Archetype) 2: local -> woframework-archetype (WebObjects Framework Archetype) Choose a number: (1/2): 1
as documented on the wiki here: http://wiki.objectstyle.org/confluence/display/WOL/woapplication-archetype
I"m getting: org.apache.maven.BuildFailureException: The desired archetype does not exist (org.objectstyle.woproject.maven2:woapplication-archetype:2.0.16)
it appears to be trying to grab this from here:
Downloading: http://repo1.maven.org/maven2/org/objectstyle/woproject/maven2/woapplication-archetype/2.0.16/woapplication-archetype-2.0.16.jar and it's not there.


Here's my archetype-catalog.xml:
<?xml version="1.0" encoding="UTF-8"?><archetype-catalog>
 <archetypes>
   <archetype>
     <groupId>org.objectstyle.woproject.maven2</groupId>
     <artifactId>woapplication-archetype</artifactId>
     <version>2.0.16</version>
     <description>WebObjects Application Archetype</description>
   </archetype>
   <archetype>
     <groupId>org.objectstyle.woproject.maven2</groupId>
     <artifactId>woframework-archetype</artifactId>
     <version>2.0.16</version>
     <description>WebObjects Framework Archetype</description>
   </archetype>
 </archetypes>
</archetype-catalog>

Do I need to define a different repository someplace, use a different version number, or... ?

You've got the settings.xml file in ~/.m2 right? i.e., the one found here:
http://wiki.objectstyle.org/confluence/display/WOL/Quick+Start


I'm not able to wrap my head around the answer from reading the book or googling, so any help is appreciated. Any best practices about conventional places to define repositories for this sort of artifact would be helpful.

See the Quick+Start guide.

Should it go in my local settings.xml,

yes. Any plugins that are not in maven's main repository that you depend on for creating projects you should define the repositories for in your local settings.xml file in ~/.m2. This will additionally assist maven when it comes to building your project.


with regards,
--

Lachlan Deck

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Maven, woapplication-archetype not found when using the local catalog
      • From: William Hatch <email@hidden>
References: 
 >Maven, woapplication-archetype not found when using the local catalog (From: William Hatch <email@hidden>)

  • Prev by Date: Re: Criticism of Java Persistence Frameworks Blog Post
  • Next by Date: Re: Recreating Xcode project from deployed app
  • Previous by thread: Maven, woapplication-archetype not found when using the local catalog
  • Next by thread: Re: Maven, woapplication-archetype not found when using the local catalog
  • Index(es):
    • Date
    • Thread