You have a typo that messes up the parsing of the file:
  <unitTestSourceDirectory>${basedir)/test</unitTestSourceDirectory>
should be
  <unitTestSourceDirectory>${basedir}/test</unitTestSourceDirectory>
Notice the curly here --------------^
(assuming that you use a fixed width font when viewing)

--
Dennis Lundberg


jeff mutonho wrote:
Thanks guys.I ran
maven pom:validate and got the same error message, so I suspect theres something I'm marking up in the XML.There is what my project.xml looks like:
<?xml version="1.0"?>
<project>
<pomVersion>3</pomVersion>
<id>myapp</id>
<groupId>Sample-Maven-Project</groupId>
<currentVersion>2.0</currentVersion>
<name>Sample Maven Tutorial Project</name>
<!-- ################################################################ -->
<!-- Project management section -->
<!-- ################################################################ -->
<organization>
<name>Scs</name>
<url>http://www.scs.co.za</url>
<logo>http://foobartravels.com/images/logo.gif</logo>
</organization>
<inceptionYear>2003</inceptionYear>
<package>com.*</package>
<logo>http://foobartravels.com/images/projectlogo.gif</logo>
<description>Test to learn Maven</description>
<shortDescription>Test to learn Maven</shortDescription>


    <url/>
    <issueTrackingUrl>http://bugzilla.foobartravels.com</issueTrackingUrl>
    <siteAddress>http://localhost:8080/</siteAddress>
    <siteDirectory/>
    <distributionDirectory>/foobar/dist/${pom.artifactId}/</distributionDirectory>
    <!--
    <repository>
        <connection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:maven</connection>
        <url>http://cvs.apache.org/viewcvs/maven/</url>
    </repository>
    -->
    <versions/>
    <mailingLists/>
    <developers>
    <developer>
      <name>Jeff Mutonho</name>
      <id>jmu016</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>SCS</organization>
      <roles>
        <role>Java Developer</role>
      </roles>
    </developer>
    </developers>

    <!-- ################################################################ -->
    <!--        Project dependency section                                -->
    <!-- ################################################################ -->
    <dependencies/>

<!-- ################################################################ -->
<!-- Project build and reports section -->
<!-- ################################################################ -->
<build>
<nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress>
<sourceDirectory>${basedir}/src/java</sourceDirectory>
<unitTestSourceDirectory>${basedir)/test</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/Test*.java</include>
</includes>
<excludes>
<exclude>**/*Test*All.java</exclude>
</excludes>
</unitTest>
<resources/> <!-- (OPTIONAL) Resources packaged inside the JAR file. -->
</build>
<reports>
<report>maven-checkstyle-plugin</report>
</reports>
<reports>
<report>maven-changes-plugin</report>
<report>maven-jdepend-plugin</report>
<report>maven-checkstyle-plugin</report>
<report>maven-pmd-plugin</report>
<report>maven-junit-report-plugin</report>
<report>maven-clover-plugin</report>
<report>maven-changelog-plugin</report>
<report>maven-file-activity-plugin</report>
<report>maven-developer-activity-plugin</report>
<report>maven-file-activity-plugin</report>
<report>maven-license-plugin</report>
<report>maven-linkcheck-plugin</report>
<report>maven-jxr-plugin</report>
</reports>
</project>
I must mention that I don't have any junit test classes , so maybe the <unitTest>
<includes>
<include>**/Test*.java</include>
</includes>
<excludes>
<exclude>**/*Test*All.java</exclude>
</excludes>
</unitTest>
shouldn't be there ?Or , does it really matter?Also this : <distributionDirectory>/foobar/dist/${pom.artifactId}/</distributionDirectory> doesn't really point to anything.What should ${pom.artifactId} be?
Thanx
jeff mutonho



Dennis Lundberg <[EMAIL PROTECTED]> wrote: Hello

Can you post your project.xml file to this list?
--
Dennis Lundberg

jeff mutonho wrote:

Hi
I'm a first time user of Maven and am trying to build a very simple class that prints a string to the console.When I do D:\Maven\Sample-Maven-Project>maven java:compile from my project's directory I get
the following error message :


__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0
java.lang.NullPointerException
at org.apache.maven.MavenUtils.getInterpolatedPOM(MavenUtils.java:373)
at org.apache.maven.MavenUtils.getJellyProject(MavenUtils.java:348)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:145)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java
:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
You have encountered an unknown error running Maven. Please help us to correct
this problem by following these simple steps:
- read the Maven FAQ at http://maven.apache.org/faq.html
- run the same command again with the '-e' parameter, eg maven -e jar
- search the maven-user archives for the error at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up first)
- run 'maven --info' and post the output as the environment to the bug above

I've checked the FAQ and can't find any clues.What am I doing wrong?

jeff mutonho


--------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!



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


--------------------------------- Do you Yahoo!? Yahoo! Mail is new and improved - Check it out!


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



Reply via email to