Could you not create three projects: Common - the unchanged code J2SE - one target specific classes J2ME - another target classes
Regards, Vic -----Original Message----- From: NGUYEN Cong Kinh [mailto:[email protected]] Sent: 02 October 2009 09:38 To: [email protected] Subject: Re: [mojo-user] [build-helper-maven-plugin] excluding files Hello Stephen, Thanks for your response. In fact, we have a module that works in J2SE. We want to have other version in J2ME. Therefore, there are some classes that must rewrite in J2ME. To avoid redundant code, we have to use that. Could you have other ideas for that? Thank you Kinh Stephen Connolly a écrit : > exclude them with maven-compiler-plugin > > but be aware that using ../ to reference other directories outside of > your module tree (i.e. folders above pom.xml) is not "The Maven Way" > and does not give you the full power of Maven > > -Stephen > > 2009/10/2 NGUYEN Cong Kinh <[email protected]> > > Hello everybody, > > I'm using the build-helper-maven-plugin plugin with the add-source > goal as the following: > > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>build-helper-maven-plugin</artifactId> > <version>1.3</version> > <executions> > <execution> > <id>add-source</id> > <phase>generate-sources</phase> > <goals> > <goal>add-source</goal> > </goals> > <configuration> > <sources> > <source>../../../cosmos/core/src/main/java/</source> > </sources> > </configuration> > </execution> > </executions> > </plugin> > > But in fact, there are some classes in > ../../../cosmos/core/src/main/java, I want to exclude them. But I > can not find anything about excluding files with > build-helper-maven-plugin. Could anyone help me to solve my > problem? > > > Thanks in advance, > Kinh > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ This e-mail and any attachments are for the intended addressee(s) only and may contain confidential and/or privileged material. If you are not a named addressee, do not use, retain or disclose such information. This email is not guaranteed to be free from viruses and does not bind Serco in any contract or obligation. Serco Limited. Registered in England and Wales. No: 242246 Registered Office: Serco House,16 Bartley Wood Business Park, Hook, Hampshire RG27 9UY United Kingdom. Help cut carbon...please don’t print this e-mail unless you really need to. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
