Why do we get artifacts from that repo?

Regards,
Alan

On Nov 17, 2009, at 11:41 AM, Kalle Korhonen wrote:

It's the stupid dev.java.net repo, lots of issues there. We won't
revisit the issue, but if you need javamail as your own dependency,
move on to using 1.4.1.

Kalle


On Tue, Nov 17, 2009 at 11:36 AM, erewards <[email protected]> wrote:

Looks like this issue has been resolved.

In case we need to revisit this again, I am posting the mail.jar from
original maven build

http://n2.nabble.com/file/n4020731/mail-1.4.jar mail-1.4.jar
http://n2.nabble.com/file/n4020731/mail-1.4.pom mail-1.4.pom

Its being downloaded from

https://maven-repository.dev.java.net/nonav/repository/javax.mail/jars/mail-1.4.jar

Thanks,
-----------------------------------------------------------


Les Hazlewood-2 wrote:

Darn, I forgot that the sample apps use log4j at runtime - not just
for test output.  Still, the samples should change that to a runtime
scope individually (or maybe in the samples parent pom) rather than
having that be the default in the root pom.

On Tue, Nov 17, 2009 at 2:22 PM, Les Hazlewood <[email protected] >
wrote:
Cool, thanks Kalle.

On Tue, Nov 17, 2009 at 2:20 PM, Kalle Korhonen
<[email protected]> wrote:
Done. Opened Bug 48216 against log4j (they use bugzilla), excluded the javamail deps and marked log4j to use test scope for core. Please svn
update and try again, ahem.. erewards.

Kalle


On Tue, Nov 17, 2009 at 11:08 AM, Les Hazlewood <[email protected] >
wrote:
Yeah, we're only using log4j as a test dependency for test log output. We don't depend on log4j for any compile-time needs (only slf4j-api)

On Tue, Nov 17, 2009 at 1:58 PM, Kalle Korhonen
<[email protected]> wrote:
Well, 1.2.15 is the latest log4j. They say (at ) "The
org.apache.log4j.net.SMTPAppender relies on the JavaMail API. It has been tested with JavaMail API version 1.2. The JavaMail API requires
the JavaBeans Activation Framework package. "

So, Javamail should have been marked as optional in log4j, I'll open
an issue against them. And I'll exclude it from Shiro's log4j
dependencies for now.

Kalle

On Tue, Nov 17, 2009 at 10:04 AM, 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.










--
View this message in context: 
http://n2.nabble.com/Error-while-building-Shiro-from-source-tp3989762p4020731.html
Sent from the Shiro User mailing list archive at Nabble.com.


Reply via email to