camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: Problem building camel trunk: javax.mail not found
Date Sun, 20 Jun 2010 11:15:44 GMT
Should I add this repo to the pom in the trunk?

Greetings

Christian


Am 20.06.2010 11:04, schrieb Willem Jiang:
> Hi Christian,
>
> You need to add the java.net maven repo into your pom like this
> <repositories>
> <!-- for javax mail and jvnet mock-mail -->
> <repository>
> <id>java.net.m2</id>
> <name>Java.net Repository for Maven</name>
> <url>http://download.java.net/maven/2/</url>
> <layout>default</layout>
> </repository>
> </repositories>
>
> Willem
>
> Christian Schneider wrote:
>> When building the camel trunk I get the following error on camel-jetty.
>>
>> Any idea where the mail.jar in version 1.4.3 should come from?
>>
>> Greetings
>>
>> Christian
>> ------
>>
>> [INFO] Building Camel :: Jetty
>> [INFO]    task-segment: [install]
>> [INFO] 
>> ------------------------------------------------------------------------
>> Downloading: 
>> http://repo1.maven.org/maven2/javax/mail/mail/1.4.3/mail-1.4.3.pom
>> [INFO] Unable to find resource 'javax.mail:mail:pom:1.4.3' in 
>> repository central (http://repo1.maven.org/maven2)
>> Downloading: 
>> http://repo1.maven.org/maven2/javax/mail/mail/1.4.3/mail-1.4.3.jar
>> [INFO] Unable to find resource 'javax.mail:mail:jar:1.4.3' in 
>> repository central (http://repo1.maven.org/maven2)
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) javax.mail:mail:jar:1.4.3
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=javax.mail -DartifactId=mail 
>> -Dversion=1.4.3 -Dpackaging=jar -Dfile=/path/to/file
>>
>>   Alternatively, if you host your own repository you can deploy the 
>> file there:
>>       mvn deploy:deploy-file -DgroupId=javax.mail -DartifactId=mail 
>> -Dversion=1.4.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepos
>> itoryId=[id]
>>
>>   Path to dependency:
>>         1) org.apache.camel:camel-jetty:bundle:2.4-SNAPSHOT
>>         2) javax.mail:mail:jar:1.4.3
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>   org.apache.camel:camel-jetty:bundle:2.4-SNAPSHOT
>>
>> from the specified remote repositories:
>>   apache.snapshots (http://repository.apache.org/snapshots),
>>   central (http://repo1.maven.org/maven2)
>>
>
>

-- 
----
http://www.liquid-reality.de


Mime
View raw message