You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/05/20 18:51:15 UTC
project.properties and outputDir
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
Re: project.properties and outputDir
Posted by Marco Mistroni <mm...@gmail.com>.
hello kenney,
thx.. it worked fine......
regards
marco
On 5/20/06, Kenney Westerhof <ke...@apache.org> wrote:
>
> On Sat, 20 May 2006, Marco Mistroni wrote:
>
> Hi,
>
>
> > Hello Kenney,
> > thanx for suggestion,but still getting
> >
>
> [snip]
>
> > <settings>
> > <profiles>
> > <profile>
>
> You should add a profile id:
>
> <id>something</id>
>
> > <activation>
> > <activeByDefault/>
>
> Sorry, missed this. You should put
>
> <activateByDefault>true</activeByDefault> here.
>
>
> > </activation>
> > <properties>
> > <deploy.directory>C:\Sw\jboss-4.0.4RC1\server\default\deploy
> > </deploy.directory>
> > </properties>
> > </profile>
> > </profiles>
>
> Or you can put
>
> <activeProfiles>
> <activeProfile>something</activeProfile>
> </activeProfiles>
>
> here.
>
>
> > </settings>
>
>
> -- Kenney
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: project.properties and outputDir
Posted by Kenney Westerhof <ke...@apache.org>.
On Sat, 20 May 2006, Marco Mistroni wrote:
Hi,
> Hello Kenney,
> thanx for suggestion,but still getting
>
[snip]
> <settings>
> <profiles>
> <profile>
You should add a profile id:
<id>something</id>
> <activation>
> <activeByDefault/>
Sorry, missed this. You should put
<activateByDefault>true</activeByDefault> here.
> </activation>
> <properties>
> <deploy.directory>C:\Sw\jboss-4.0.4RC1\server\default\deploy
> </deploy.directory>
> </properties>
> </profile>
> </profiles>
Or you can put
<activeProfiles>
<activeProfile>something</activeProfile>
</activeProfiles>
here.
> </settings>
-- Kenney
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: project.properties and outputDir
Posted by Marco Mistroni <mm...@gmail.com>.
Hello Kenney,
thanx for suggestion,but still getting
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for
'ear:ear'
[0] inside the definition for plugin: 'maven-ear-plugin'specify the
following:
<configuration>
...
<outputDirectory>VALUE</outputDirectory>
</configuration>
-OR-
on the command line, specify: '-Ddeploy.directory=VALUE'
my settings.xml is in ..\.m2\ directory, now it has this content
<settings>
<profiles>
<profile>
<activation>
<activeByDefault/>
</activation>
<properties>
<deploy.directory>C:\Sw\jboss-4.0.4RC1\server\default\deploy
</deploy.directory>
</properties>
</profile>
</profiles>
</settings>
and, again, here' smy 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.directory
}</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>
and i m simplying typing
mvn clean install
withouth specifying any profiles...
what am i still missing?
thanks and regards
marco
Re: project.properties and outputDir
Posted by Kenney Westerhof <ke...@apache.org>.
On Sat, 20 May 2006, Marco Mistroni wrote:
Hi,
> 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
project.properties does not work in M2.
> i have written a settings.xml file and i have placed it in my
> DocumentAndSettings\Me\m2,
It should probably be in ..\Me\.m2\
> but still maven is complaining
>
> i am using maven-2.0.4, here's my pom.xml and settings.xml
>
[snip]
You defined <outputDirectory>${deploy.directory}</outputDirectory>.
Maven would probably create a directory ./${deploy.directory}...
> ** settings.xml ******
> <settings>
> <profiles>
> <profile>
> <activation>
> <activeByDefault/>
Remove these lines:
> <property>
> <name>deployDir</name>
> <value>C:\Sw\jboss-4.0.4RC1\server\default\deploy</value>
> </property>
> </activation>
and this one:
> <properties/>
and put this here:
<properties>
<deploy.directory>c:\....</deploy.directory>
</properties>
> </profile>
> </profiles>
>
> </settings>
>
-- Kenney
>
> i am running evrything by typing
>
> mvn clean install
>
> anyone could help?
>
> thanks and regards
> marco
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: project.properties and outputDir
Posted by Marco Mistroni <mm...@gmail.com>.
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