maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Ferguson <douglas.fergu...@epsiia.com>
Subject RE: Compiler Plugin
Date Fri, 22 Sep 2006 16:03:21 GMT
I changed it to this

					<compilerArguments>
						<classpath>
							src/main/webapp/WEB-INF/classes
						</classpath>
					</compilerArguments>

And it works..

D-

-----Original Message-----
From: Douglas Ferguson 
Sent: Friday, September 22, 2006 9:28 AM
To: users
Subject: RE: Compiler Plugin

Thanks,

I think this is what I need, but I am missing something..

I added this:

        		   <configuration>
          			<compilerArgument>-classpath src/main/webapp/WEB-INF/classes</compilerArgument>
        		   </configuration>                   

But get this:


javac: invalid flag: -classpath src/main/webapp/WEB-INF/classes

-----Original Message-----
From: franz see [mailto:franz.see@gmail.com] 
Sent: Thursday, September 21, 2006 8:20 PM
To: users@maven.apache.org
Subject: RE: Compiler Plugin




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 compiler_s classpath?
> 
>  
> 
> D-
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message