Hello,

According to the schema (http://maven.apache.org/maven-v4_0_0.xsd),
<outputDirectory> is indeed not defined in the <profile> section.  But I
think, by configuring the compiler plugin, you can set the path in <plugin>
under the <plugins> section of <profile>.

Cheers!
Nap


On 1/11/06, Rinku <[EMAIL PROTECTED]> wrote:
>
>
> I don't see an <outputDirectory/> specified under <build/> element for
> <profile/> in the pom descriptor.
>
> http://maven.apache.org/maven-model/maven.html
>
> Not sure if its an 'error of omission' in online docs or if a <profile>
> does (or does not) supports overriding the build > outputDirectory? You
> might want to give it a shot though - I'd be interested to know the
> result as well :-)
>
> TIA,
>
> Rahul
>
>
>
> Henry Isidro wrote:
> > Dmitry Beransky wrote:
> >
> >> Hi,
> >>
> >> I'm trying to migrate for the first time one of my projects to
> >> Maven2.  In Maven 1, I used to have the following line in the user
> >> level configuration file:
> >>
> >>    maven.build.dir=c:/temp/maven/${pom.artifactId}
> >>
> >> this was for Windows-based workstations; on a server, the build
> >> directory would be set to a different pattern.
> >>
> >> How do I achieve a similar effect with Maven 2?
> >>
> >> Please note that I don't want to specify the output directory inside
> >> a pom file, as this directory may changed with the system on which
> >> the project is compiled.
> >>
> >> Thanks
> >> Dmitry
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > Have you tried using profiles?
> >
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> >
> > Regards,
> > Henry
> >
> > ---------------------------------------------------------------------
> > 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