You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Ollie Brady <ol...@aib.ie> on 2004/09/02 16:37:56 UTC
Newbie question - Torque Maven problem
Hi there.
I'm trying to build my Torque ObjectModel for the first time using Maven but I'm getting a "Goal "project.properties" does not exist in this project." error when I try a "maven torque" command.
I don't know what is happening as there is a project.properties in the working directory, I think it must be something else.. the output is below along with the project.properties and the project.xml
Any help appreciated..thanks,
Ollie.
[e:\dev\mis_java\torque]dir
Volume in drive E is unlabeled Serial number is 547A:FB31
Directory of E:\dev\mis_java\Torque\*
2/09/04 9:45 <DIR> .
2/09/04 9:45 <DIR> ..
2/09/04 9:45 <DIR> src
2/09/04 9:46 <DIR> target
2/09/04 14:27 1,284 project.properties
2/09/04 12:21 4,592 project.xml
2/09/04 12:48 6,877 Torque.properties
12,753 bytes in 3 files and 4 dirs 20,480 bytes allocated
32,897,396,736 bytes free
[e:\dev\mis_java\torque]maven torque
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0
BUILD FAILED
Goal "project.properties" does not exist in this project.
Total time: 6 seconds
Finished at: Thu Sep 02 15:29:25 BST 2004
[e:\dev\mis_java\torque]
Below are the contents of my project.xml
<?xml version="1.0"?>
<project>
<pomVersion>3</pomVersion>
<name>Bookstore</name>
<id>Bookstore</id>
<currentVersion>0.1-dev</currentVersion>
<organization>
<name>AIB Group PLC</name>
<url>http://www.aib.ie/</url>
</organization>
<inceptionYear>2004</inceptionYear>
<package>com.aib.mis.bookstore.torque</package>
<shortDescription>Java Project Management Tools</shortDescription>
<!-- Gump integration -->
<versions>
<version>
<id>A1</id>
<name>0.1-A1</name>
<tag>BK_01_A1</tag>
</version>
</versions>
<developers>
<developer>
<name>Ollie Brady</name>
<id>69630</id>
<email>oliver.n.brady@aib.ie</email>
<organization></organization>
</developer>
</developers>
<!--dependencies>
<dependency>
<id>ant</id>
<version>1.4.1</version>
</dependency>
<dependency>
<id>commons-beanutils</id>
<version>1.4-dev-20020724</version>
</dependency>
<dependency>
<id>commons-collections</id>
<version>2.0</version>
<url>http://jakarta.apache.org/commons/collections.html</url>
</dependency>
<dependency>
<id>commons-configuration</id>
<version>1.0-dev</version>
<url>http://jakarta.apache.org/commons/</url>
</dependency>
<dependency>
<id>commons-dbcp</id>
<version>1.0-dev-20020806</version>
<url>http://jakarta.apache.org/commons/</url>
</dependency>
<dependency>
<id>commons-lang</id>
<version>1.0-dev-20020716</version>
<url>http://jakarta.apache.org/commons/</url>
</dependency>
<dependency>
<id>commons-logging</id>
<version>1.0</version>
<url>http://jakarta.apache.org/commons/</url>
</dependency>
<dependency>
<id>commons-pool</id>
<version>1.0</version>
<url>http://jakarta.apache.org/commons/pool/</url>
</dependency>
<dependency>
<id>jcs</id>
<version>1.0-dev</version>
<url>http://jakarta.apache.org/turbine/jcs/</url>
</dependency>
<dependency>
<id>jdbc</id>
<version>2.0</version>
<url>http://java.sun.com/products/jdbc/download.html#spec</url>
</dependency>
<dependency>
<id>jndi</id>
<version>1.2.1</version>
<url>http://java.sun.com/products/jndi/</url>
</dependency>
<dependency>
<id>log4j</id>
<version>1.1.3</version>
<url>http://jakarta.apache.org/log4j/</url>
</dependency>
<dependency>
<id>stratum</id>
<version>1.0-b3-dev</version>
<url>http://jakarta.apache.org/turbine/stratum/</url>
</dependency>
<dependency>
<id>tomcat-naming</id>
<version>1.0</version>
<url>http://jakarta.apache.org/tomcat/</url>
</dependency>
<dependency>
<id>velocity</id>
<version>1.3</version>
<url>http://jakarta.apache.org/velocity/</url>
</dependency>
<dependency>
<id>village</id>
<version>1.5.3</version>
<url>http://share.whichever.com/index.php?SCREEN=village</url>
</dependency>
<dependency>
<id>xerces</id>
<type>required</type>
<version>2.0.2</version>
<jar>xercesImpl-2.0.2.jar</jar>
<url>http://xml.apache.org/xerces2-j/</url>
</dependency>
<dependency>
<id>xml-apis</id>
<type>required</type>
<version>2.0.2</version>
<jar>xmlParserAPIs-2.0.2.jar</jar>
<url>http://xml.apache.org/xerces2-j/</url>
</dependency>
</dependencies-->
<build>
<nagEmailAddress>
dev@maven.apache.org
</nagEmailAddress>
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<aspectSourceDirectory/>
<!-- Unit test cases -->
<unitTest>
<!-- <includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/RepositoryTest.java</exclude>
</excludes>
-->
</unitTest>
<!-- J A R R E S O U R C E S -->
<!-- Resources that are packaged up inside the JAR file -->
<resources>
<resource>
<directory>${basedir}/src/resources/misc</directory>
<includes>
<include>*.xsd</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/resources/logging</directory>
<includes>
<include>log4j.properties</include>
</includes>
</resource>
</resources>
<!-- Integration unit test cases -->
<integrationUnitTest/>
<jars>
</jars>
</build>
</project>
And here is the contents of my project.properties
torque.project = MISLogging
torque.database = mysql
torque.contextProperties = project.properties
torque.runOnlyOnSchemaChange = true
maven.repo.remote=http://B11418-GX270:9999/repository
maven.repo.local=E:/dev/maven-1.0/.repository
torque.schema.dir = src/schema
torque.sql.dir = target/sql
torque.java.dir = src/java
torque.doc.dir = target/doc
torque.lib.dir = ${maven.repo.local}
torque.doc.format = html
torque.targetPackage = com.aib.mis.torque
torque.addGetByNameMethod = false
torque.addTimeStamp = false
torque.addIntakeRetrievable = true
torque.useManagers = true
torque.useClasspath = true
torque.database.createUrl = jdbc:mysql://localhost:3306/
torque.database.buildUrl = jdbc:mysql://localhost:3306/bookstore
torque.database.url = jdbc:mysql://localhost:3306/bookstore
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.user = root
torque.database.password = password1
torque.database.host = 127.0.0.1
torque.schema.dir = schema
torque.basePrefix = Base
torque.addSaveMethod = true
torque.saveException = Exception
torque.contextProperties = project.properties
#maven.proxy.host = 10.8.1.200
#maven.proxy.port = 8080
#maven.proxy.username = 86734
#maven.proxy.password = tuesday006
********************************************************************************
This document is strictly confidential and is intended for use by
the addressee unless otherwise indicated.
This email has been scanned by an external Email Security System.
Allied Irish Banks
********************************************************************************