Ben,

The two files have different purposes: project.xml describes what your project is about, maven.xml describes how to do stuff which isn't done by maven plugins.

Are your sources located relatively to the project.xml file in a subdirectory called 'MedAmerica_Working'? i.e.

+ projectroot/
   + project.xml
   + MedAmerica_Working/
       + com/
           + medamerica/
               + HelloWorld.java
?

In your situation you need the following project.xml:
<project>
 <pomVersion>3</pomVersion>
 <id>ltc</id>
 <name>medamerica</name>
 <groupId>medamerica</groupId>
 <currentVersion>1</currentVersion>
 <organization />
 <inceptionYear>2004</inceptionYear>
 <package/>
 <logo/>
 <description/>
 <shortDescription/>
 <repository><connection/></repository>
 <versions/>
 <developers/>
 <dependencies>
     <dependency>
       <groupId>servletapi</groupId>
       <artifactId>servletapi</artifactId>
       <version>2.2</version>
     </dependency>
 </dependencies>
 <build>
   <sourceDirectory>MedAmerica_Working</sourceDirectory>
 </build>
</project>

a 'maven jar' will create a jar file for your project. If you need a war file, then you'll need more configuration.

Why don't you try the 'maven genapp' to look at a standard way of setting up your project? (See the plugin documentation for more information on the different types of projects the genapp can generate for you, http://maven.apache.org/reference/plugins/genapp/templates.html).

Don't give up on maven too soon. It isn't that hard.

Have you read the excellent article: http://www.theserverside.com/articles/article.tss?l=MavenMagic
?


Martijn

Ben Anderson wrote:

Thanks for the responses.  ok, I updated to 1.0.  I also, changed the name from
maven.xml to project.xml and this seems to have worked, which is it supposed to
be?  Now I'm faced with classpath issues.  I tried using this approach, but it
doesn't seem to work.

<?xml version="1.0"?>
<project
 default="jar:jar"
 xmlns:j="jelly:core"
 xmlns:u="jelly:util">


<pomVersion>3</pomVersion> <groupId>medamerica</groupId> <artifactId>ltc</artifactId> <name>medamerica</name> <currentVersion>1</currentVersion>

 <j:set var="jarDirBase" value="C:/Program
Files/WebSphere/Studio40/lib/CompileTimeClasses"/>
 <j:set var="jarDir1" value="${jarDirBase}/AppServerV3"/>

 <build>
   <sourceDirectory>MedAmerica_Working</sourceDirectory>
   <dependencies>
     <dependency>
       <jar>${jarDir1}/servlet.jar</jar>
     </dependency>
   </dependencies>
 </build>

</project>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to