the main issue is ${java.home}
This is replaced with the local value when the pom is deployed.
And that's really a pain..On 13 August 2013 04:24, Lennart Jörelid <[email protected]> wrote: > Hello all, > > The AspectJ maven plugin needs to include tools.jar into classpath. > I suspect there are other Mojo plugins which need this as well - if so, we > need a common way to handle the tools.jar problematics preferably defined > within the mojo parent. > > I would suggest a dependencyManagement and profile addition. > Thus, a dependency defined within the dependencyManagement section: > > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>${java.version}</version> > <scope>system</scope> > <systemPath>${toolsjar}</systemPath> > </dependency> > > and a set of profiles defining the toolsjar variable: > > <profiles> > <profile> > <id>standardToolsJar-profile</id> > <activation> > <activeByDefault>true</activeByDefault> > <file> > <exists>${java.home}/../lib/tools.jar</exists> > </file> > </activation> > <properties> > <toolsjar>${java.home}/../lib/tools.jar</toolsjar> > </properties> > </profile> > <profile> > <id>appleJdkToolsJar-profile</id> > <activation> > <activeByDefault>false</activeByDefault> > <file> > <exists>${java.home}/../Classes/classes.jar</exists> > </file> > </activation> > <properties> > <toolsjar>${java.home}/../Classes/classes.jar</toolsjar> > </properties> > </profile> > </profiles> > > etc. > > Fair to place a JIRA issue, or do you feel it should be done in another way > (such as local to the Mojo projects which need the functionality, and thus > [unnecessarily] repeated between them? > > > > -- > +==============================+ > | Bästa hälsningar, > | [sw. "Best regards"] > | > | Lennart Jörelid > | EAI Architect & Integrator > | > | jGuru Europe AB > | Mölnlycke - Kista > | > | Email: [email protected] > | URL: www.jguru.se > | Phone > | (skype): jgurueurope > | (intl): +46 708 507 603 > | (domestic): 0708 - 507 603 > +==============================+ -- Olivier Lamy Ecetera: http://ecetera.com.au http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
