maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: [m2] howto run the maven compiler two times ?
Date Tue, 22 Aug 2006 06:35:09 GMT
Nicolas De Loof wrote on Monday, August 21, 2006 5:31 PM:

> Hello,
> 
> I've a requirement for a utility lib to include both Java1.3
> and Java5
> code. I don't want to split my lib into two jars, but to split the
> source three into src/main/java and src/main/tiger. I'm
> searching for a
> way to configure the compiler plugin for this.
> 
> I've set two compiler configuration (default config is for 1.3 and
> <id>tiger</id> execution for java5)
> I've tried to use the build-helper plugin, but I cannot make int run
> between compiler default execution (java13) and compiler
> java5 execution.
> I've also looked at compiler doc, but "|compileSourceRoots|"
> seems to be
> readonly.
> 
> My requirement seems not to be so strange : take a look at
> Spring or any
> other utility/framework that want to add support for Java5 witout
> breaking existing code. 
> 
> Is there any known solution for this ?

It has flaws, but it works:
http://jira.codehaus.org/browse/MCOMPILER-37 (see my comment)

- Jörg

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


Mime
View raw message