This post originated from an RSS feed registered with Java Buzz
by Wilfred Springer.
Original Post: Maven + J2ME Polish (part 1)
Feed Title: Distributed Reflections of the Third Kind
Feed URL: http://agilejava.com/blog/?feed=atom
Feed Description: Distributed Reflections of the Third Kind
So, that sort of works. But is it also desirable. That’s hard to tell. At this stage, the pom.xml file controls J2ME Polish. I already pull in dependencies in the pom using the Ant tasks for Maven (see below). However, if the pom.xml file’s packaging type is set to jar, and if you have set your source directory to point to the actual location of your sources, your build will fail if you use J2ME Polish’ preprocessing directives.
The easy way out is to set packaging type to pom. Quite to my surprise, that actually works. I expected the Maven Eclipse Plugin to basically ignore this project and its source directories. (I think I remember this is the way it used to work in the past.)