maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject Re: Getting strange error in compilation
Date Mon, 01 Aug 2011 06:27:31 GMT
If I remember correctly, then this is also needed for native2ascii resource conversion. Anyone
checking this?

LieGrue,
strub

--- On Sun, 7/31/11, Kathryn Huxtable <kathryn@kathrynhuxtable.org> wrote:

> From: Kathryn Huxtable <kathryn@kathrynhuxtable.org>
> Subject: Re: Getting strange error in compilation
> To: "Maven Users List" <users@maven.apache.org>
> Date: Sunday, July 31, 2011, 11:41 PM
> I've been working on a Swing
> pluggable look & feel, and was needing to include
> rt.jar. I have a separate profile for the Mac. The relevant
> sections of my pom look like:
> 
> ...
> <build>
>     <plugins>
>         <plugin>
>            
> <groupId>org.apache.maven.plugins</groupId>
>            
> <artifactId>maven-compiler-plugin</artifactId>
>            
> <version>2.3.2</version>
>            
> <configuration>
>            
>     <source>1.6</source>
>            
>     <target>1.6</target>
>            
>     <compilerArguments>
>            
>        
> <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
>            
>     </compilerArguments>
>            
> </configuration>
>         </plugin>
>     </plugins>
> ...
> <profiles>
>     <profile>
>        
> <id>mac</id>
>         <activation>
>            
> <os>
>            
>     <family>mac</family>
>            
> </os>
>         </activation>
>         <build>
>            
> <plugins>
>            
>     <!-- Configure the compiler plugin to
> use JDK 1.6. -->
>            
>     <plugin>
>            
>        
> <groupId>org.apache.maven.plugins</groupId>
>            
>        
> <artifactId>maven-compiler-plugin</artifactId>
>            
>        
> <version>2.3.2</version>
>            
>         <configuration>
>            
>            
> <source>1.6</source>
>            
>            
> <target>1.6</target>
>            
>            
> <compilerArguments>
>            
>            
>    
> <bootclasspath>${java.home}/bundle/Classes/classes.jar</bootclasspath>
>            
>            
> </compilerArguments>
>            
>        
> </configuration>
>            
>     </plugin>
>            
> </plugins>
>         </build>
>     </profile>
> ...
> 
> I think most artifacts don't need to include rt.jar, so I
> don't know what you'd do. I suppose we can add the JDK
> version to the activation profile...
> 
> I don't think you folks need to do anything, but I was
> bewildered, and Google wasn't much help, though I did
> eventually find a solution through a Google search, just not
> the first several I tried.
> 
> -K
> 
> On Jul 31, 2011, at 6:27 PM, Barrie Treloar wrote:
> 
> > On Mon, Aug 1, 2011 at 8:23 AM, Kathryn Huxtable
> > <kathryn@kathrynhuxtable.org>
> wrote:
> >> Okay, I see. Apple changed the location of
> classes.jar, which is what they call rt.jar in a recent
> release of Java, possibly update 26.
> > 
> > How did you fix this then?
> > 
> > Do we need to configure maven to understand this
> natively?
> > 
> >
> ---------------------------------------------------------------------
> > 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