Thanx guys.Well it was indeed the bracket that was messing up the typo.I ran
maven pom:validate again and didn't get the NPE , but got the following instead :
build:start:
pom:verify-version:
pom:validate:
[java] D:\Maven\Sample-Maven-Project\project.xml:5:14: error: cvc-complex-ty
pe.2.4.a: Invalid content starting with element 'groupId'. One of '{"":id}' is e
xpected.
[java] [ERROR] Java Result: 1
BUILD SUCCESSFUL
Total time: 3 seconds
Finished at: Wed Aug 11 11:36:11 CAT 2004
What is this now?
jeff mutonho
Dennis Lundberg <[EMAIL PROTECTED]> wrote:
You have a typo that messes up the parsing of the file:
${basedir)/test
should be
${basedir}/test
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:
>
>
>
>
3
> myapp
> Sample-Maven-Project
> 2.0
> Sample Maven Tutorial Project
>
>
>
>
> Scs
> http://www.scs.co.za
> http://foobartravels.com/images/logo.gif
>
> 2003
>
com.*
> http://foobartravels.com/images/projectlogo.gif
> Test to learn Maven
> Test to learn Maven
>
>
> http://bugzilla.foobartravels.com
> http://localhost:8080/
>
> /foobar/dist/${pom.artifactId}/
> >
> scm:cvs:pserver:[EMAIL PROTECTED]:/home/cvspublic:maven
> http://cvs.apache.org/viewcvs/maven/
>
> -->
>
>
>
>
> Jeff Mutonho
> jmu016
> [EMAIL PROTECTED]
> SCS
>
> Java Developer
>
>
>
>
>
>
>
>
>
>
>
>
>
> [EMAIL PROTECTED]
> ${basedir}/src/java
> ${basedir)/test
>
>
> **/Test*.java
>
>
> **/*Test*All.java
>
>
>
>
>
> maven-checkstyle-plugin
>
>
> maven-changes-plugin
> maven-jdepend-plugin
> maven-checkstyle-plugin
> maven-pmd-plugin
> maven-junit-report-plugin
> maven-clover-plugin
> maven-changelog-plugin
> maven-file-activity-plugin
> maven-developer-activity-plugin
> maven-file-activity-plugin
> maven-license-plugin
> maven-linkcheck-plugin
> maven-jxr-plugin
>
>
>
>
> I must mention that I don't have any junit test classes , so maybe the
>
>
> **/Test*.java
>
>
> **/*Test*All.java
>
>
>
> shouldn't be there ?Or , does it really matter?Also
> this : /foobar/dist/${pom.artifactId}/ doesn't really point to anything.What should
> ${pom.artifactId} be?
>
>
> Thanx
>
> jeff mutonho
>
>
>
>
>
> Dennis Lundberg 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]
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!