You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Timothy Mcginnis <tm...@aessuccess.org> on 2010/07/22 20:01:24 UTC

Confused about compiler used for release

I am confused about something.

I have a project where I have specified that the compiler target and 
source are to be 1.6.  I can run mvn deploy and everything works fine. 
When I try to run mvn release:prepare it tells me the compiler (javac) 
does not support 1.6.  Why is it using two different compilers??

Tim McGinnis
717 720-1962
Web Development
AES/PHEAA
==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

RE: Confused about compiler used for release

Posted by Martin Gainty <mg...@hotmail.com>.
If the goal has a default phase binding then it will execute in that phase. 

But if the goal is not bound to any lifecycle phase then it simply won't be executed during the build lifecycle.

 

to make sure you get the configuration attributes for each bind each execution phase to the plugins configuration e.g.
 <build>
    <plugins>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <executions>
           <execution>
            <id>execution1</id>
            <phase>compile</phase>
	    <configuration>
        	   <source>1.6</source>
	           <target>1.6</target>
           </configuration>
          </execution>
          <execution>
            <id>execution2</id>
            <phase>package</phase>
            <configuration>
	           <source>1.6</source>
        	   <target>1.6</target>
	    </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>



Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.



 

> To: users@maven.apache.org
> Subject: Confused about compiler used for release
> From: tmcginni@aessuccess.org
> Date: Thu, 22 Jul 2010 14:01:24 -0400
> 
> I am confused about something.
> 
> I have a project where I have specified that the compiler target and 
> source are to be 1.6. I can run mvn deploy and everything works fine. 
> When I try to run mvn release:prepare it tells me the compiler (javac) 
> does not support 1.6. Why is it using two different compilers??
> 
> Tim McGinnis
> 717 720-1962
> Web Development
> AES/PHEAA
> ==============================================================================
> This message contains privileged and confidential information intended for the above addressees only. If you
> receive this message in error please delete or destroy this message and/or attachments. 
> 
> The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
> in the unauthorized use of this message.
> ==============================================================================
 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

Re: Confused about compiler used for release

Posted by Timothy Mcginnis <tm...@aessuccess.org>.
That was it.  My path and java_home were pointing to a 1.5 jre.  I fixed 
that and it works perfectly.

Thank you!

Tim McGinnis
717 720-1962
Web Development
AES/PHEAA



From:
"Stephen Connolly" <st...@gmail.com>
To:
"Maven Users List" <us...@maven.apache.org>
Date:
07/23/2010 02:00 AM
Subject:
Re: Confused about compiler used for release



probably you have a disconnect between your PATH and JAVA_HOME environment
variables.

release:prepare sort of forks a maven process and the environment may be
different in that case.

For example we have a project that is half built with ANT and half built
with Maven. currently our release process is

mvn release:prepare release:perform
cd target/checkout
ant deploy

but yet, if we bind antrun:run or exec:exec to the deploy phase and try 
and
do an ant deploy there it fails due to some subtle environment variable
differences in the forked maven... strangely mvn deploy works just fine at
calling ant deploy, but when in the release:perform the ant script bombs
out!

-Stephen

PS ignore Martin the robot's reply, it's completely irrelevant

On 22 July 2010 19:01, Timothy Mcginnis <tm...@aessuccess.org> wrote:

> I am confused about something.
>
> I have a project where I have specified that the compiler target and
> source are to be 1.6.  I can run mvn deploy and everything works fine.
> When I try to run mvn release:prepare it tells me the compiler (javac)
> does not support 1.6.  Why is it using two different compilers??
>
> Tim McGinnis
> 717 720-1962
> Web Development
> AES/PHEAA
>
> 
==============================================================================
> This message contains privileged and confidential information intended 
for
> the above addressees only.  If you
> receive this message in error please delete or destroy this message 
and/or
> attachments.
>
> The sender of this message will fully cooperate in the civil and 
criminal
> prosecution of any individual engaging
> in the unauthorized use of this message.
>
> 
==============================================================================
>



==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

Re: Confused about compiler used for release

Posted by Stephen Connolly <st...@gmail.com>.
probably you have a disconnect between your PATH and JAVA_HOME environment
variables.

release:prepare sort of forks a maven process and the environment may be
different in that case.

For example we have a project that is half built with ANT and half built
with Maven. currently our release process is

mvn release:prepare release:perform
cd target/checkout
ant deploy

but yet, if we bind antrun:run or exec:exec to the deploy phase and try and
do an ant deploy there it fails due to some subtle environment variable
differences in the forked maven... strangely mvn deploy works just fine at
calling ant deploy, but when in the release:perform the ant script bombs
out!

-Stephen

PS ignore Martin the robot's reply, it's completely irrelevant

On 22 July 2010 19:01, Timothy Mcginnis <tm...@aessuccess.org> wrote:

> I am confused about something.
>
> I have a project where I have specified that the compiler target and
> source are to be 1.6.  I can run mvn deploy and everything works fine.
> When I try to run mvn release:prepare it tells me the compiler (javac)
> does not support 1.6.  Why is it using two different compilers??
>
> Tim McGinnis
> 717 720-1962
> Web Development
> AES/PHEAA
>
> ==============================================================================
> This message contains privileged and confidential information intended for
> the above addressees only.  If you
> receive this message in error please delete or destroy this message and/or
> attachments.
>
> The sender of this message will fully cooperate in the civil and criminal
> prosecution of any individual engaging
> in the unauthorized use of this message.
>
> ==============================================================================
>