Douglas Ferguson wrote:
>
> Anybody?
>
> -----Original Message-----
> From: Douglas Ferguson
> Sent: Thursday, September 21, 2006 3:05 PM
> To: users
> Subject: Compiler Plugin
>
> I tried to configure the compiler plugin to do the following:
>
>
>
> <build>
>
> <plugins>
>
> <plugin>
>
> <artifactId>maven-compiler-plugin</artifactId>
>
> <configuration>
>
> <classpathElements>
>
>
> <classpathElement>src/main/webapp/WEB-INF/classes</classpathElement>
>
> </classpathElements>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </build>
>
>
>
>
>
> But I get this error:
>
>
>
> [INFO] Error configuring:
> org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot
> override read-only parameter: classpathElements in goal:
> compiler:compile
>
>
>
> I am placing .class files in WEB-INF/classes & .jar files in
> WEB-INF/lib.
>
> I know this bypasses the maven dependency scheme, however this is for
> some legacy stuff that was never versioned and it is a stop gap until
> older clients get upgraded.
>
>
>
> Is there anyway to add stuff to the compilers classpath?
>
>
>
> D-
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
Good day to you, Douglas,
Inside your plugin's configuration, you can place inside the arguements to
your compiler. Assuming your using javac, you can set your -classpath under
the compilerArguement or compilerArguements tag (see [1] for windows javac,
and [2] for maven-compiler-plugin documentation). [2] however is still being
reviewed. If you have any comments about it, kindly notify us about it so
that we can improve it.
Thanks,
Franz
[1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
[2]
http://people.apache.org/~epunzalan/maven-compiler-plugin/examples/pass-compiler-arguments.html
--
View this message in context:
http://www.nabble.com/Compiler-Plugin-tf2314129.html#a6439546
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]