You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EJ Ciramella <ej...@upromise.com> on 2007/10/09 23:39:24 UTC

getting mvn to output what source files its compiling

We have a little issue with a single class file that keeps getting
compiled time after time.
 
Is there any way to get mvn to spit out what class it is building?  I
tried -X -e and also -g -verbose, but its still not spitting it out.

Re: getting mvn to output what source files its compiling

Posted by Wayne Fay <wa...@gmail.com>.
And as you already know, if you like that feature so much, feel free
to add it and contribute it back. ;-)  Or post a bug and someone else
might do it.

Wayne

On 10/10/07, Tim Kettler <ti...@udo.edu> wrote:
> Hi,
>
> do you mean the 'listfiles' option? When you configure the
> compiler-plugin to fork the java compiler and then run with -X maven
> prints the command line it invokes, it includes the classes to be
> compiled. This is obviously not as good as the option ant provides but
> should help debugging your problem.
>
> -Tim
>
> EJ Ciramella schrieb:
> > Hate to "simpson's did it", but this was always a great feature of ant.
> >
> > Turning on this feature allowed me to see which class(es) were getting
> > recompiled with each compiler pass.  Typically it was a packaging
> > statement gone awry.  But I have no idea how to do this with maven
> > unless I start pulling apart the source for the compiler plugin.
> >
> > -----Original Message-----
> > From: Wayne Fay [mailto:waynefay@gmail.com]
> > Sent: Tuesday, October 09, 2007 8:04 PM
> > To: Maven Users List
> > Subject: Re: getting mvn to output what source files its compiling
> >
> > This would probably require that javac ouput what class it is
> > currently compiling, at a minimum. Can you make this work? If so, then
> > there is a possibility that Maven compiler can be modified to do it as
> > well. If not, there is very little chance of this happening in Maven.
> >
> > Wayne
> >
> > On 10/9/07, EJ Ciramella <ej...@upromise.com> wrote:
> >> We have a little issue with a single class file that keeps getting
> >> compiled time after time.
> >>
> >> Is there any way to get mvn to spit out what class it is building?  I
> >> tried -X -e and also -g -verbose, but its still not spitting it out.
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


RE: getting mvn to output what source files its compiling

Posted by EJ Ciramella <ej...@upromise.com>.
NVM - I can see a debug statement echoing out the file in question.

I didn't scroll far enough to the right ;-) 

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com] 
Sent: Wednesday, October 10, 2007 2:46 PM
To: Maven Users List
Subject: RE: getting mvn to output what source files its compiling

Hmm, I have this:

<plugin>
	<artifactId>maven-compiler-plugin</artifactId>
	<configuration>
		<source>1.5</source>
		<target>1.5</target>
		<fork>true</fork>
	</configuration>
</plugin>

And the only output I see as far as compiling (that's useful) is:

[INFO] Compiling 1 source file to
E:\work\up-svcs\lty\proj\LTY-P200711\capi\target\classes 

What am I missing?

-----Original Message-----
From: Tim Kettler [mailto:tim.kettler@udo.edu] 
Sent: Wednesday, October 10, 2007 8:58 AM
To: Maven Users List
Subject: Re: getting mvn to output what source files its compiling

Hi,

do you mean the 'listfiles' option? When you configure the 
compiler-plugin to fork the java compiler and then run with -X maven 
prints the command line it invokes, it includes the classes to be 
compiled. This is obviously not as good as the option ant provides but 
should help debugging your problem.

-Tim

EJ Ciramella schrieb:
> Hate to "simpson's did it", but this was always a great feature of
ant.
> 
> Turning on this feature allowed me to see which class(es) were getting
> recompiled with each compiler pass.  Typically it was a packaging
> statement gone awry.  But I have no idea how to do this with maven
> unless I start pulling apart the source for the compiler plugin. 
> 
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com] 
> Sent: Tuesday, October 09, 2007 8:04 PM
> To: Maven Users List
> Subject: Re: getting mvn to output what source files its compiling
> 
> This would probably require that javac ouput what class it is
> currently compiling, at a minimum. Can you make this work? If so, then
> there is a possibility that Maven compiler can be modified to do it as
> well. If not, there is very little chance of this happening in Maven.
> 
> Wayne
> 
> On 10/9/07, EJ Ciramella <ej...@upromise.com> wrote:
>> We have a little issue with a single class file that keeps getting
>> compiled time after time.
>>
>> Is there any way to get mvn to spit out what class it is building?  I
>> tried -X -e and also -g -verbose, but its still not spitting it out.
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


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


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


RE: getting mvn to output what source files its compiling

Posted by EJ Ciramella <ej...@upromise.com>.
Hmm, I have this:

<plugin>
	<artifactId>maven-compiler-plugin</artifactId>
	<configuration>
		<source>1.5</source>
		<target>1.5</target>
		<fork>true</fork>
	</configuration>
</plugin>

And the only output I see as far as compiling (that's useful) is:

[INFO] Compiling 1 source file to
E:\work\up-svcs\lty\proj\LTY-P200711\capi\target\classes 

What am I missing?

-----Original Message-----
From: Tim Kettler [mailto:tim.kettler@udo.edu] 
Sent: Wednesday, October 10, 2007 8:58 AM
To: Maven Users List
Subject: Re: getting mvn to output what source files its compiling

Hi,

do you mean the 'listfiles' option? When you configure the 
compiler-plugin to fork the java compiler and then run with -X maven 
prints the command line it invokes, it includes the classes to be 
compiled. This is obviously not as good as the option ant provides but 
should help debugging your problem.

-Tim

EJ Ciramella schrieb:
> Hate to "simpson's did it", but this was always a great feature of
ant.
> 
> Turning on this feature allowed me to see which class(es) were getting
> recompiled with each compiler pass.  Typically it was a packaging
> statement gone awry.  But I have no idea how to do this with maven
> unless I start pulling apart the source for the compiler plugin. 
> 
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com] 
> Sent: Tuesday, October 09, 2007 8:04 PM
> To: Maven Users List
> Subject: Re: getting mvn to output what source files its compiling
> 
> This would probably require that javac ouput what class it is
> currently compiling, at a minimum. Can you make this work? If so, then
> there is a possibility that Maven compiler can be modified to do it as
> well. If not, there is very little chance of this happening in Maven.
> 
> Wayne
> 
> On 10/9/07, EJ Ciramella <ej...@upromise.com> wrote:
>> We have a little issue with a single class file that keeps getting
>> compiled time after time.
>>
>> Is there any way to get mvn to spit out what class it is building?  I
>> tried -X -e and also -g -verbose, but its still not spitting it out.
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


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


Re: getting mvn to output what source files its compiling

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

do you mean the 'listfiles' option? When you configure the 
compiler-plugin to fork the java compiler and then run with -X maven 
prints the command line it invokes, it includes the classes to be 
compiled. This is obviously not as good as the option ant provides but 
should help debugging your problem.

-Tim

EJ Ciramella schrieb:
> Hate to "simpson's did it", but this was always a great feature of ant.
> 
> Turning on this feature allowed me to see which class(es) were getting
> recompiled with each compiler pass.  Typically it was a packaging
> statement gone awry.  But I have no idea how to do this with maven
> unless I start pulling apart the source for the compiler plugin. 
> 
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com] 
> Sent: Tuesday, October 09, 2007 8:04 PM
> To: Maven Users List
> Subject: Re: getting mvn to output what source files its compiling
> 
> This would probably require that javac ouput what class it is
> currently compiling, at a minimum. Can you make this work? If so, then
> there is a possibility that Maven compiler can be modified to do it as
> well. If not, there is very little chance of this happening in Maven.
> 
> Wayne
> 
> On 10/9/07, EJ Ciramella <ej...@upromise.com> wrote:
>> We have a little issue with a single class file that keeps getting
>> compiled time after time.
>>
>> Is there any way to get mvn to spit out what class it is building?  I
>> tried -X -e and also -g -verbose, but its still not spitting it out.
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


RE: getting mvn to output what source files its compiling

Posted by EJ Ciramella <ej...@upromise.com>.
Hate to "simpson's did it", but this was always a great feature of ant.

Turning on this feature allowed me to see which class(es) were getting
recompiled with each compiler pass.  Typically it was a packaging
statement gone awry.  But I have no idea how to do this with maven
unless I start pulling apart the source for the compiler plugin. 

-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Tuesday, October 09, 2007 8:04 PM
To: Maven Users List
Subject: Re: getting mvn to output what source files its compiling

This would probably require that javac ouput what class it is
currently compiling, at a minimum. Can you make this work? If so, then
there is a possibility that Maven compiler can be modified to do it as
well. If not, there is very little chance of this happening in Maven.

Wayne

On 10/9/07, EJ Ciramella <ej...@upromise.com> wrote:
> We have a little issue with a single class file that keeps getting
> compiled time after time.
>
> Is there any way to get mvn to spit out what class it is building?  I
> tried -X -e and also -g -verbose, but its still not spitting it out.
>

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


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


Re: getting mvn to output what source files its compiling

Posted by Wayne Fay <wa...@gmail.com>.
This would probably require that javac ouput what class it is
currently compiling, at a minimum. Can you make this work? If so, then
there is a possibility that Maven compiler can be modified to do it as
well. If not, there is very little chance of this happening in Maven.

Wayne

On 10/9/07, EJ Ciramella <ej...@upromise.com> wrote:
> We have a little issue with a single class file that keeps getting
> compiled time after time.
>
> Is there any way to get mvn to spit out what class it is building?  I
> tried -X -e and also -g -verbose, but its still not spitting it out.
>

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