sourceDirectory is the path to your java src file. It is relative to your 
project directory (ie where project.xml is).
<sourceDirectory>src/main/java</sourceDirectory>

Nicolas,





Ben Anderson <[EMAIL PROTECTED]>
17/09/2004 14:24
Veuillez répondre à "Maven Users List"

 
        Pour :  [EMAIL PROTECTED]
        cc : 
        Objet : stupid newbie


After perusing through maven's website for the thousandth time I've 
decided now
is the time for me to switch from ant.  Unfortunately, I've been unable to
crawl so far, let alone walk.  I don't know if I'm not understanding the
documentation or if it's just lacking.  I also have searched through the
mail-archive (although my preferred marc.theaimsgroup.com does not have 
this
list?)

My initial build should be simple.  I just want to compile and jar up some
source files - that should be simple, right?

Here's my pom:
<?xml version="1.0"?>
<project default="jar:jar">
  <pomVersion>3</pomVersion>
  <groupId>medamerica</groupId>
  <artifactId>ltc</artifactId>
  <name>medamerica</name>
  <currentVersion>1</currentVersion>

  <build>
    <sourceDirectory>MedAmerica_Working</sourceDirectory>
  </build>

</project>

so, then I run:

$ maven jar:jar
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc3

<pomVersion>3</pomVersion><groupId>medamerica</groupId><artifactId>ltc</artifactId><name>medamerica</name><currentVersion>1</currentVersion><build><sourceDirectory>MedAmerica_Working</sourceDirectory></build>build:start:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to d:\vss\src/target/classes
    [echo] No java source files to compile.
resources or todir was null

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
    [echo] No test source files to compile.

test:test:
    [echo] No tests to run.

BUILD FAILED
File...... D:\Documents and
Settings\banderso\.maven\plugins\maven-jar-plugin-1.5\plugin.jelly
Element... ant:fail
Line...... 42
Column.... 19
You must define currentVersion in your POM.
Total time: 3 seconds
Finished at: Fri Sep 17 08:19:21 EDT 2004

I'm running this from cygwin, so I can cut and paste, but I get the same 
output
from regular DOS prompt.  Sorry, for the simplicity of this question.  If 
you
can at least point me in the right direction to learning...
TIA,
Ben Anderson


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





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

Reply via email to