Could it be that you IDE already put those classes in target/classes? The jar packaging just takes everything under target/classes and put that into a jar file.
And why did you configure the compiler plugin with includes. Normally you would just want to compile everything under src/main/java. Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Fri, Sep 25, 2009 at 3:54 PM, maven apache <[email protected]> wrote: > 2009/9/25 maven apache <[email protected]> > >> >> >> 2009/9/25 Nick Stolwijk <[email protected]> >> >>> It looks like your server pom file configures the compiler plugin: >>> >>> <plugin> >>> <artifactId>maven-compiler-plugin</artifactId> >>> <version>2.0.2</version> >>> <configuration> >>> <includes> >>> <include>org/n52/wps/server/**</include> >>> <include>org/n52/wps/util/**</include> >>> </includes> >>> <excludes> >>> <exclude>org/n52/wps/server/algorithm/smooth/**</exclude> >>> </excludes> >>> <source>1.6</source> >>> <target>1.6</target> >>> <encoding>ISO-8859-1</encoding> >>> </configuration> >>> </plugin> >>> >>> Your package cn.wps is not included. Why did you specify the includes? >>> >> I just encounter this problem twice, yesterday and today. The mvn install >> works for other times. >> I forget how to solove it yesterday. That's so say,even the cn.wps not >> included in the pom.xml ,it can also be compiled. >> > > > However , I just do it, add the cn.wps in the pom.xml, and the classes are > compiled. > But I am surprised why. Since I use maven as build tool for this project > for more than five month,I did not add the cn.wps to the pom.xml, the > classes were also compiled and installed, I just encountered the problem > mentioned in this post yesterday the first time,so I think if there is > something else involved in this problem. > >> >>> Hth, >>> >>> Nick Stolwijk >>> ~Java Developer~ >>> >>> IPROFS BV. >>> Claus Sluterweg 125 >>> 2012 WS Haarlem >>> http://www.iprofs.nl >>> >>> >>> >>> On Fri, Sep 25, 2009 at 1:53 PM, maven apache <[email protected]> >>> wrote: >>> > The output is too long , so I redirect them to a file in the attach. >>> > >>> > 2009/9/25 Nick Stolwijk <[email protected]> >>> >> >>> >> Can you post the output of mvn help:effective-pom at parent level? >>> >> >>> >> With regards, >>> >> >>> >> Nick Stolwijk >>> >> ~Java Developer~ >>> >> >>> >> IPROFS BV. >>> >> Claus Sluterweg 125 >>> >> 2012 WS Haarlem >>> >> http://www.iprofs.nl >>> >> >>> >> >>> >> >>> >> On Fri, Sep 25, 2009 at 11:25 AM, maven apache <[email protected] >>> > >>> >> wrote: >>> >> > THis is my project structure: >>> >> > >>> >> > parent >>> >> > ----client >>> >> > ----server >>> >> > ----src >>> >> > ----main >>> >> > ----java >>> >> > ----cn >>> >> > ----wps >>> >> > ----01.java >>> >> > ----02.java >>> >> > ----resources >>> >> > ----cn >>> >> > ----wps >>> >> > ----xml01 >>> >> > ----xml02 >>> >> > ----io >>> >> > ----webapp >>> >> > >>> >> > The parent contains serveral modules,under the module named >>> server,the >>> >> > package is cn.wps in the java directory there are the sources, and >>> under >>> >> > the >>> >> > resources there are some xml files. >>> >> > When I run mvn install under the parent directory, it build >>> >> > successfully,but >>> >> > I found the server/target/classes/cn.wps, there are only the xml >>> >> > files,the >>> >> > 01.class 02.class do not exist... >>> >> > Then I trun to the server module directory run mvn install the >>> suitation >>> >> > is >>> >> > same as before,Then I try to run mvn clean install ,things like >>> >> > before........ >>> >> > I want to know if this is my mistake? >>> >> > >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [email protected] >>> >> For additional commands, e-mail: [email protected] >>> >> >>> > >>> > >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: [email protected] >>> > For additional commands, e-mail: [email protected] >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
