You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by David Whitehurst <dl...@gmail.com> on 2006/11/06 22:12:43 UTC

Archetype generation issue

I setup a new archetype project in
maven/archetype/maven-archetype-bundles/maven-archetype-catdog .  At
maven-archetype-catdog/src/main/resources/archetype-resources/ ...I have
service , data, and web .  CatDog is a web project.  When I run mvn install
on the archetype generation I get an error where the resources can't be
found at /src/main/java/etc. ...

The sources aren't at src/main/java ...e.g. the first one is at
service/main/java/etc.

So problem 1. = archetype.xml back at META-INF/ shows ...

 <resources>
    <resource>pom.xml</resource>
    <resource>data/pom.xml</resource>
    <resource>service/pom.xml</resource>
    <resource>web/pom.xml</resource>
  </resources>

<!-- ***************************************************** -->
<!--
sources
-->
<!-- ***************************************************** -->
<sources>
    <!--service area -->
    <source>service/src/main/java/org/appfuse/service/Manager.java</source>
</sources>

I've tried /src/main/java ... service/src/main/java ... nothing works with
service, data, or web projects.  I followed the j2ee example in the maven
src tree archetypes/ but it doesn't work.  Any suggestions on how to get
beyond this?  The service, data, and web directories work when I
archetype:create in any directory.  And, the poms for each are there as
well.  But, I can't resolve the sources or tests.

David