Hello all, sorry i pressed 'Send' befor efinishing the message m> wrote:
hi all, i m trying to build an .ear and output to a deploy directory specified in my project.properties, but M2 keeps on cojmplaining that either i put in <outputDirectory> the value of hte property or i specify the property via commandline -D
i have written a settings.xml file and i have placed it in my DocumentAndSettings\Me\m2, but still maven is complaining i am using maven-2.0.4, here's my pom.xml and settings.xml **** pom.xml ******* <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>ExpenseControl</groupId> <artifactId>project</artifactId> <version>1.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jboss-seam-test</artifactId> <name>EAR project</name> <packaging>ear</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <configuration> <modules> <ejbModule> <groupId>ExpenseControl</groupId> <artifactId>ejbs</artifactId> <bundleFileName> ejb3-app-1.0-SNAPSHOT.jar </bundleFileName> </ejbModule> <webModule> <groupId>ExpenseControl</groupId> <artifactId>web</artifactId> <bundleFileName> ejb3-web.war </bundleFileName> </webModule> </modules> <outputDirectory>${deploy.dir }</outputDirectory>* </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>ExpenseControl</groupId> <artifactId>ejbs</artifactId> <version>1.0</version> <type>ejb</type> </dependency> <dependency> <groupId>ExpenseControl</groupId> <artifactId>web</artifactId> <version>1.0</version> <type>war</type> </dependency> </dependencies> </project> ** settings.xml ****** <settings> <profiles> <profile> <activation> <activeByDefault/> <property> <name>deployDir</name> <value>C:\Sw\jboss-4.0.4RC1\server\default\deploy</value> </property> </activation> <properties/> </profile> </profiles> </settings> i am running evrything by typing mvn clean install anyone could help? thanks and regards marco
