You're right, we don't have any dependencies on JavaMail that I'm
aware of.  +1 to excluding it.

On Tue, Nov 17, 2009 at 1:04 PM, Kalle Korhonen
<[email protected]> wrote:
> Uh, we need to get the Maven site regularly deployed somewhere. I just
> run mvn dependency:tree. Javamail is pulled in as transitional
> dependency of log4j, see:
> [INFO] +- log4j:log4j:jar:1.2.15:test
> [INFO] |  \- javax.mail:mail:jar:1.4:test
> [INFO] |     \- javax.activation:activation:jar:1.1:test
>
> I don't think we need javamail anyways, but if we do, we should move
> to 1.4.1 and mark in the scope provided (it's not worth our time
> tracking down where the damaged 1.4 javamail originates from given
> it's likely it won't be fixed anyway). I think it's a mistake in log4j
> 1.2.15 pom - it should have been marked in the provided scope there
> (probably javamail based appender). I can try a newer version of log4j
> and if that doesn't help, exclude the unnecessary poms. Agree?
>
> Kalle
>
>
> On Tue, Nov 17, 2009 at 8:57 AM, Alan D. Cabrera <[email protected]> wrote:
>> Can you post the mail-1.4.jar that you get before you replaced it?  Do you
>> see where it gets downloaded from during the maven build?
>>
>>
>> Regards,
>> Alan
>>
>>
>> On Nov 17, 2009, at 8:21 AM, erewards wrote:
>>
>>>
>>> I did get Shiro from trunk using svn co
>>> http://svn.apache.org/repos/asf/incubator/shiro/trunk/
>>>
>>> I removed .m2 repository folder and unset JAVA_HOME as you suggested
>>> and then did mvn clean install,
>>>
>>> Of course it did not find jdk
>>>
>>> ERROR: JAVA_HOME not found in your environment. blah, blah, blah...
>>>
>>> Then I downloaded jdk 1.6.0_17 set JAVA_HOME to jdk 1.6 and did mvn clean
>>> install
>>>
>>> still same error (so jdk 1.5 and 1.6 did not make difference)
>>>
>>>
>>> -----------------------------------------------------------------------------------------
>>> [INFO] [compiler:compile {execution: default-compile}]
>>> [INFO] Compiling 250 source files to
>>> C:\Programs\Apache\Shiro\core\target\classe
>>> s
>>> [INFO] [resources:testResources {execution: default-testResources}]
>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>> [INFO] Copying 1 resource
>>> [INFO] Copying 3 resources
>>> [INFO] [compiler:testCompile {execution: default-testCompile}]
>>> [INFO] Compiling 43 source files to
>>> C:\Programs\Apache\Shiro\core\target\test-cl
>>> asses
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Compilation failure
>>> error: error reading C:\Documents and
>>> Settings\akulkarni\.m2\repository\javax\ma
>>> il\mail\1.4\mail-1.4.jar; error in opening zip file
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 3 minutes 6 seconds
>>> [INFO] Finished at: Tue Nov 17 10:10:54 CST 2009
>>> [INFO] Final Memory: 23M/42M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>>
>>> -----------------------------------------------------------------------------------------
>>>
>>> Then I downloaded
>>>
>>> http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/mail/mail/1.4/mail-1.4.jar
>>> and replaced it in .m2 repository
>>>
>>> And mvn install (NOTclean install)
>>>
>>> Then the build was successful.
>>>
>>> Thanks,
>>> --------------------------------------------------------------------
>>>
>>>
>>> Alan D. Cabrera wrote:
>>>>
>>>> How odd.
>>>>
>>>> Can you, if you are so inclined, unset your JAVA_HOME, trash your .m2/
>>>> repository directory, then perform a
>>>>
>>>> mvn clean install
>>>>
>>>> BTW, what are you building?  shiro/trunk?
>>>>
>>>>
>>>> Regards,
>>>> Alan
>>>>
>>>> On Nov 16, 2009, at 2:54 PM, erewards wrote:
>>>>
>>>>>
>>>>> See my comments, hope this helps
>>>>>
>>>>>
>>>>> Alan D. Cabrera wrote:
>>>>>>
>>>>>> A few quick questions.
>>>>>>
>>>>>> - What version of Java are you running?
>>>>>>
>>>>>> I have set JAVA_HOME=C:\Programs\Java\jdk1.5.0_15
>>>>>>
>>>>>> But when I run java -version on command line I see following
>>>>>> java version "1.6.0_07"
>>>>>> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
>>>>>> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>>>>>>
>>>>>> ---------------------------------------------------------------------------
>>>>>>
>>>>>> - What version of Maven are you running?
>>>>>> M2_HOME=C:\Programs\Apache\Maven-2.2.1
>>>>>>
>>>>>> When I run mvn -version I see following
>>>>>>
>>>>>> Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
>>>>>> Java version: 1.5.0_15
>>>>>> Java home: C:\Programs\Java\jdk1.5.0_15\jre
>>>>>> Default locale: en_US, platform encoding: Cp1252
>>>>>> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>>>>>>
>>>>>> (note the java home mvn using)
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------------------
>>>>>>
>>>>>> - What kind of OS are you on?
>>>>>> XP Pro - SP3
>>>>>> -----------------------------------------
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Alan
>>>>>>
>>>>>> On Nov 16, 2009, at 2:35 PM, erewards wrote:
>>>>>>
>>>>>>>
>>>>>>> Thanks guys. It worked. Not sure what helped, but I did set
>>>>>>> JAVA_HOME and
>>>>>>> M2_HOME and also replaced mail-1.4.jar with the one Ludger
>>>>>>> suggested.
>>>>>>>
>>>>>>> Thanks again.
>>>>>>>
>>>>>>>
>>>>>>> Alan D. Cabrera wrote:
>>>>>>>>
>>>>>>>> You shouldn't have to do this to get things to compile.
>>>>>>>>
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Alan
>>>>>>>>
>>>>>>>> On Nov 15, 2009, at 9:42 AM, Ludger wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Download the mail-1.4.jar from
>>>>>>>>>
>>>>>>>>> http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/mail/mail/1.4/mail-1.4.jar
>>>>>>>>> and replace the existing jar in your maven javax/mail/mail folder
>>>>>>>>>
>>>>>>>>> Then Shiro building works fine.
>>>>>>>>>
>>>>>>>>> cu
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>>
>>>>>>>>> http://n2.nabble.com/Error-while-building-Shiro-from-source-tp3989762p4008340.html
>>>>>>>>> Sent from the Shiro User mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>>>>>> http://n2.nabble.com/Error-while-building-Shiro-from-source-tp3989762p4015148.html
>>>>>>> Sent from the Shiro User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://n2.nabble.com/Error-while-building-Shiro-from-source-tp3989762p4015237.html
>>>>> Sent from the Shiro User mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Error-while-building-Shiro-from-source-tp3989762p4019544.html
>>> Sent from the Shiro User mailing list archive at Nabble.com.
>>
>>
>

Reply via email to