Thanks guys; I am digging in to the matter.
Regards, Vijay Shanker Dubey On Mon, Jan 11, 2010 at 11:29 PM, Justin Edelson <justinedel...@gmail.com>wrote: > You can fix your package-info.java. I'd start by adding a package > declaration (which you appear to be missing) and using fully-qualified > class > names for the annotations. > > Alternatively, you can use the Eclipse compiler instead of javac: > > http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html > > There are differences between the Eclipse compiler and javac. They're not > common, but they do exist. > > Justin > > On Mon, Jan 11, 2010 at 12:46 PM, vijay shanker <vijay.s...@gmail.com > >wrote: > > > Hi; > > The project i have got is legacy project and all hibernate queries are > > defined like that only(in package-info.java). So; I am not sure whether > it > > is standard or i need to tweak something with compiler. > > > > Is there any option exists so i can do a compiling. > > > > :) > > > > Regards, > > Vijay Shanker Dubey > > > > > > > > On Mon, Jan 11, 2010 at 10:08 PM, Wayne Fay <wayne...@gmail.com> wrote: > > > > > > I am not able to find any relevent answer till now. In eclispe this > > > project > > > > is working well without any error. So i think this is something with > > > meven > > > > compiler. But not aware of What? will you please describe the reason > > for > > > me? > > > > > > Eclipse has its own compiler. Maven does not -- it uses the Javac > > > compiler included with the JDK you have installed. So there is no > > > problem with the Maven compiler, rather it is likely you have found a > > > problem in the Eclipse compiler, which does not complain about a bad > > > file when it should. > > > > > > > my package-info.java class > > > > > > This does not appear to be a valid Package Comment file per the > > > Javadoc documentation, specifically the import statements are invalid. > > > Read more online: > > > > > > > > > http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#packagecomment > > > > > > "package-info.java - Can contain a package declaration, package > > > annotations, package comments and Javadoc tags. This file is new in > > > JDK 5.0, and is preferred over package.html." > > > > > > Wayne > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > >