Your dependency specifications are all wrong. Read the section on dependencies here:
http://maven.apache.org/reference/project-descriptor.html


And look at examples here:
http://maven.apache.org/start/integrate.html

A minimal dependency specification would look like:
    <dependency>
      <id>regexp</id>
      <version>1.2</version>
    </dependency>

    <dependency>
      <groupId>regexp</groupId>
      <artifactId>regexp</artifactId>
      <version>1.2</version>
    </dependency>

These dependencies are identical. If you specify the id, it is inferred that your groupId and artifactId are identical (theres more to it than that, but you really don't want to know about the 'old' id syntax). The second example shows a dependency which will turn up in your maven repository as:

~/.maven/repository/regexp/jars/regexp-1.2.jar

to make it clearer, here's one with more options set:
    <dependency>
      <groupId>foo</groupId>
      <artifactId>bar</artifactId>
      <type>tld</tld>
      <version>1.2</version>
    </dependency>

Means:
~/.maven/repository/foo/tlds/bar-1.2.tld

You can use the 'jar' attribute to override names but thats generally not what you want to do.

Here's the first few of your dependencies, converted. There are more notes inline.

                <dependency>
                        <!-- maven cannot redistribute this. -->
                        <!-- copy it manually to the correct -->
                        <!-- location in your local repo -->
                        <id>activation</id>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <id>axis</id>
                        <version>1.1</version>
                </dependency>
                <dependency>
                        <id>boot</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <!-- spaces matter, I changed your version -->
                        <id>castor</id>
                        <version>0.9.4.1</version>
                </dependency>
                <dependency>
                        <id>commons-logging</id>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <id>jaxrpc</id>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <id>jbossall-client</id>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <!-- this is already in jdk1.4? -->
                        <!-- Not redistributable -->
                        <id>jdbc</id>
                        <version>se2.0</version>
                </dependency>
                <dependency>
                        <!-- Not redistributable -->
                        <id>jta</id>
                        <version>1.0.1</version>
                </dependency>
                <dependency>
                        <id>jdom</id>
                        <version>1.0b8</version>
                </dependency>


Eran Chinthaka wrote:


I integrated maven to my project. When I ran maven jar command I got the following error.


java.lang.NullPointerException
at org.apache.maven.project.Project.standardToLegacyId(Project.java:1587
)
at org.apache.maven.ArtifactListBuilder.build(ArtifactListBuilder.java:9
5)
at org.apache.maven.project.Project.buildArtifactList(Project.java:1469)
at org.apache.maven.project.Project.initialize(Project.java:1292)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:249)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:160)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java
:324)
at org.apache.maven.MavenSession.initialize(MavenSession.java:234)
at org.apache.maven.cli.App.doMain(App.java:514)
at org.apache.maven.cli.App.main(App.java:1088)
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:543)
at com.werken.forehead.Forehead.main(Forehead.java:573)
Total time: 6 seconds
I attached the maven.log file and my project.xml file.
PLease help me to solve this. Thankx in advance



------------------------------------------------------------------------
<http://promos.hotbar.com/promos/promodll.dll?RunPromo&El=hotbar%5felement%3bst%3b&SG=&RAND=40703>




------------------------------------------------------------------------

<?xml version="1.0"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Eran Chinthaka 
(Eurocenter) -->
<project>
        <pomVersion>1</pomVersion>
        <name>AutoMa</name>
        <id>AutoMa</id>
        <currentVersion>Rel-2-build-1</currentVersion>
        <organization>
                <name>Eurocenter DDC</name>
                <url>http://www.eurocenterddc.com/</url>
        </organization>
        <inceptionYear>2002</inceptionYear>
        <package>com.automa.*</package>
        <shortDescription>Business Process Automation Engine</shortDescription>
        <!-- Gump integration -->
        <gumpRepositoryId>automa</gumpRepositoryId>
        <description>AutoMa project is a business process automation process. Currently it 
has been integrated to Procasso, a business process runnin in Norway. For the time being AutoMa 
has automated some of the business processes of Procasso.</description>
        <url>http://automa.eurocenterddc.com</url>
        <issueTrackingUrl>http://automa.eurocenterddc.com/issues</issueTrackingUrl>
        <siteAddress>http://localhost:8080</siteAddress>
        <siteDirectory>/automa/docs/</siteDirectory>
        
<distributionDirectory>http://localhost:8080/automa/builds/</distributionDirectory>
        <repository>
                <connection>scm:cvs:sspi:[EMAIL PROTECTED]:2401:/rule</connection>
        </repository>
        <versions>
                <version>
                        <id>b3</id>
                        <name>1.0-b3</name>
                        <tag>AUtoMa_1_0_B3</tag>
                </version>
                <version>
                        <id>b4</id>
                        <name>1.0-b4</name>
                        <tag>HEAD</tag>
                </version>
        </versions>
        <mailingLists>
                <mailingList>
                        <name>AutoMa User List</name>
                        <subscribe>[EMAIL PROTECTED]
      </subscribe>
                        <unsubscribe>[EMAIL PROTECTED]
      </unsubscribe>
                        <archive>http://www.mail-archive.com/[EMAIL PROTECTED]/
      </archive>
                </mailingList>
                <mailingList>
                        <name>AutoMa Developer List</name>
                        <subscribe>
[EMAIL PROTECTED]    </subscribe>
                        <unsubscribe>
        [EMAIL PROTECTED]</unsubscribe>
                        <archive>http://groups.yahoo.com/group/automa/</archive>
                </mailingList>
        </mailingLists>
        <developers>
                <developer>
                        <name>Niroshan Hewakoparage</name>
                        <id>NHE</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Project Manager</role>
                        </roles>
                </developer>
                <developer>
                        <name>Kushani Karunarathne</name>
                        <id>KKA</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Software Engineer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Indika Rathnasekara</name>
                        <id>IRA</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Software Engineer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Eran Chinthaka</name>
                        <id>CHE</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Software Engineer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Amila Suriyaarachchi</name>
                        <id>ASU</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Software Engineer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Hasith Yaggahawita</name>
                        <id>HYA</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Software Engineer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Pushapaka Rambukkanage</name>
                        <id>PRU</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Software Engineer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Sanjaya Kumar</name>
                        <id>SKU</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Eurocenter DDC</organization>
                        <roles>
                                <role>Software Engineer</role>
                        </roles>
                </developer>
        </developers>
        <dependencies>
                <dependency>
                        <id>activation</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>axis</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>boot</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>castor</id>
                        <version>0.9.4.1 </version>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>commons-logging</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>jaxrpc</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>jbossall-client</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>jdbc</id>
                        <version>se2.0</version>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>jta1.0.1</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>jdom</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>junit</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>log4j</id>
                        <version>1.2.4</version>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>mail</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>quartz</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>resources</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>runtime</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>saaj</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>servlet</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>soap</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>Sprinta2000</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>swt</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>tt-bytecode</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>xalan</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>xerces</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>xercesImpl</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>xmlParserAPIs</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>xmlrpc</id>
                        <version>1.1</version>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>workbench</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
                <dependency>
                        <id>wsdl4j</id>
                        <url>http://localhost:8080/automa/lib/</url>
                </dependency>
        </dependencies>
        <build>
                <nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress>
                <sourceDirectory>E:\projects\automa\src</sourceDirectory>
                <package>com.automa.*</package>
                
<unitTestSourceDirectory>E:\projects\automa\src</unitTestSourceDirectory>
                <integrationUnitTestSourceDirectory/>
                <aspectSourceDirectory/>
                <!-- Unit test cases -->
                <unitTest>
                        <includes>
                                <include>test/*Test.java</include>
                        </includes>
                        
                </unitTest>
                <!-- J A R  R E S O U R C E S -->
                <!-- Resources that are packaged up inside the JAR file -->
        </build>
</project>


------------------------------------------------------------------------


---------------------------------------------------------------------
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