Re: Maven errors on compilation of files with missing imports (files that are not called by the application) compile phase

2012-02-06 Thread dlots
It appears that maven is validating the classes for missing dependencies
regardless of calling compiler:compile or the compile phase. This was not
the case previously somehow before my eclipse crashed. I even have the
compiled classes for a different project including all of the shared
classes. What can possibly be causing maven to validate the imports?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-errors-on-compilation-of-files-with-missing-imports-files-that-are-not-called-by-the-applicatie-tp5458721p5459880.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven errors on compilation of files with missing imports (files that are not called by the application) compile phase

2012-02-06 Thread dlots
This is bizarre. It appears that I ran exec:java (or compile) and it
generated class files in the target/classes folder just like in the other
project and maven claimed that all files are up to date. I don't know what I
did to generate the class files. I did a mvn clean deleting the class files
and maven is again erroring on compilation because it no longer has the
class files. Perhaps eclipse's builder was triggered to compile the project?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-errors-on-compilation-of-files-with-missing-imports-files-that-are-not-called-by-the-applicatie-tp5458721p5459920.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven errors on compilation of files with missing imports (files that are not called by the application) compile phase

2012-02-05 Thread dlots
I have a project and a shared folder that is common to all my projects that
includes classes that are not necessarily used (and therefore) complete for
all projects. When executing the compile phase, it is erroring because some
of the files in the shared folder which is added with the
builder-helper-maven-plugin have missing dependencies because these files
are not used in this particular project. 

However, it appears that executing the target compiler:compile does a
different type of compile, for one thing not executing the generate-sources
phase. So i guess executing a specific target with maven does not execute
all previous target in the lifecycle?

It appears that running mvn generate-source compiler:compile works. It
does not error on missing imports in uncalled classes. Can you clarify why
the compile phase attempts to validate all classes in the src directories,
including ones not used in the application? The eclipse builder for example
does not attempt to validate all classes, while the intellij builder does I
believe.

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-errors-on-compilation-of-files-with-missing-imports-files-that-are-not-called-by-the-applicatie-tp5458721p5458721.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven errors on compilation of files with missing imports (files that are not called by the application) compile phase

2012-02-05 Thread dlots
I'm not going to do that. Can you please answer the specific questions about
the compile phase?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-errors-on-compilation-of-files-with-missing-imports-files-that-are-not-called-by-the-applicatie-tp5458721p5459223.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven errors on compilation of files with missing imports (files that are not called by the application) compile phase

2012-02-05 Thread dlots
Can you clarify why the compile phase attempts to validate all classes in the
src directories, including ones not used in the application? The eclipse
builder for example does not attempt to validate all classes, while the
intellij builder does I believe. 

That's the main question. 

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-errors-on-compilation-of-files-with-missing-imports-files-that-are-not-called-by-the-applicatie-tp5458721p5459225.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven errors on compilation of files with missing imports (files that are not called by the application) compile phase

2012-02-05 Thread dlots
Maven isn't a very big piece of software so if someone has a good answer for
this, I would greatly appreciate it. 

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-errors-on-compilation-of-files-with-missing-imports-files-that-are-not-called-by-the-applicatie-tp5458721p5459454.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org