[Building Sakai] Optional Maven Compilation
Steven Githens
swgithen at mtu.edu
Tue Apr 5 11:54:09 PDT 2011
On 04/05/2011 02:36 PM, Matthew Jones wrote:
> Sounds like maven-build-helper-plugin. I mentioned this in a reply to
> you 6 months ago. ;)
>
Ha! [1] Thanks, this is a somewhat analogous issue to what I had before,
although my eyes probably glazed over when I saw '"Wrapper" classes',
because I mostly just want exclude/include simple java files and not
source directories or anything.
> http://collab.sakaiproject.org/pipermail/sakai-dev/2010-November/010092.html
>
> We use this in our provider in this pom file to activate/exclude
> specific capabilities.
> https://source.sakaiproject.org/svn/msub/umich.edu/ctools/ctools-providers/trunk/component/impl/pom.xml
>
Interesting. So it looks like they might have syntax as well then for
<id>remove-source</id> or something from a build.
Cheers,
Steve
[1] I still owe you reply emails too as to whether bracketless scoping
actually makes patch sets harder in large code bases with distributed
teams, and how awesome it will be when we finally finish the blti
etherpad! Someday I will take a whole day to triage my email!
> -Matthew
>
> On Tue, Apr 5, 2011 at 2:19 PM, Steven Githens <swgithen at mtu.edu
> <mailto:swgithen at mtu.edu>> wrote:
>
> Hello Dev,
>
> I poked around in google and some docs but haven't found a way to do
> this yet.
>
> I have a few Java files in some of my Sakai stuff I only want to
> compile
> if you're using a certain maven profile. I'm also willing to just
> manually change the pom.xml file if it's hard to do based on the
> profile
> you're compiling with.
>
> Like, I literally have 1 or 2 *.java files, I just want to exclude
> from
> the build. I was thinking there must be some syntax for this in the
> <build/> <source/> <excludes/> portion of the files, but haven't
> gotten
> it to work yet from trying it out.
>
> In the past I've just renamed *.java file to *.java_skip, but
> would like
> to do this in the pom.xml, without making extra modules.
>
> Any suggestions?
>
> Compiled Cheers,
> Steve
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> <mailto:sakai-dev at collab.sakaiproject.org>
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org
> <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a
> subject of "unsubscribe"
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110405/d310e9db/attachment.html
More information about the sakai-dev
mailing list