You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Robert Burrell Donkin <ro...@gmail.com> on 2008/09/08 23:33:00 UTC

[IMAP] Maven Build Issue

i think i've fixed most of the issues i created ;-)

but i'm having a little bit of trouble tracking down why the derby
download fails. help appreciated :-)

- robert

[INFO] Building Apache JAMES IMAP Deployment
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/derby/derby/10.2.2.0/derby-10.2.2.0.pom
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/derby/derby/10.2.2.0/derby-10.2.2.0.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.derby:derby:jar:10.2.2.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.derby
-DartifactId=derby -Dversion=10.2.2.0 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.apache.derby
-DartifactId=derby -Dversion=10.2.2.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  	1) org.apache.james:apache-james-imap-deployment:jar:0.1-SNAPSHOT
  	2) org.apache.derby:derby:jar:10.2.2.0

----------
1 required artifact is missing.

for artifact:
  org.apache.james:apache-james-imap-deployment:jar:0.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [IMAP] Maven Build Issue

Posted by Robert Burrell Donkin <ro...@gmail.com>.
On Tue, Sep 9, 2008 at 9:23 AM, Stefano Bagnara <ap...@bago.org> wrote:
> Stefano Bagnara ha scritto:
>>
>> Now I can't svn, but here is an hint:
>>
>> It seems we have 2 concurrent issues:
>> 1st: derby has been removed from p.a.o folder (weird).
>> 2nd: derby is not installed by the stage module.
>>
>> I think the solution to the 2nd is easy and we can ignore the 1st one.
>>
>> Add <dependency>
>> <groupId>org.apache.derby</groupId>
>> <artifactId>derby</artifactId>
>> </dependency>
>
> This fixed the issue.
> Another issue was a missing commons-io:commons-io:test dependency for the
> deployment module.
> Now it successfully build.

thanks :-)

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [IMAP] Maven Build Issue

Posted by Stefano Bagnara <ap...@bago.org>.
Stefano Bagnara ha scritto:
> Now I can't svn, but here is an hint:
> 
> It seems we have 2 concurrent issues:
> 1st: derby has been removed from p.a.o folder (weird).
> 2nd: derby is not installed by the stage module.
> 
> I think the solution to the 2nd is easy and we can ignore the 1st one.
> 
> Add <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> </dependency>

This fixed the issue.
Another issue was a missing commons-io:commons-io:test dependency for 
the deployment module.
Now it successfully build.

Stefano

> to the stage/pom.xml dependencies so they will be installed by the stage 
> module when reactor starts.
> 
> This will fix the build when used in the reactor. To make it work in the 
> single module build we should point to central instead of p.o.a as our 
> repository (IIRC this is in a parent pom).
> 
> Stefano
> 
> Robert Burrell Donkin ha scritto:
>> i think i've fixed most of the issues i created ;-)
>>
>> but i'm having a little bit of trouble tracking down why the derby
>> download fails. help appreciated :-)
>>
>> - robert
>>
>> [INFO] Building Apache JAMES IMAP Deployment
>> [INFO]    task-segment: [package]
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> Downloading: 
>> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/derby/derby/10.2.2.0/derby-10.2.2.0.pom 
>>
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> Downloading: 
>> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/derby/derby/10.2.2.0/derby-10.2.2.0.jar 
>>
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.apache.derby:derby:jar:10.2.2.0
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.apache.derby
>> -DartifactId=derby -Dversion=10.2.2.0 -Dpackaging=jar
>> -Dfile=/path/to/file
>>
>>   Alternatively, if you host your own repository you can deploy the 
>> file there:
>>       mvn deploy:deploy-file -DgroupId=org.apache.derby
>> -DartifactId=derby -Dversion=10.2.2.0 -Dpackaging=jar
>> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>>       1) org.apache.james:apache-james-imap-deployment:jar:0.1-SNAPSHOT
>>       2) org.apache.derby:derby:jar:10.2.2.0
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>   org.apache.james:apache-james-imap-deployment:jar:0.1-SNAPSHOT
>>
>> from the specified remote repositories:
>>   central (http://repo1.maven.org/maven2),
>>   apache.snapshots 
>> (http://people.apache.org/repo/m2-snapshot-repository),
>>   apache.releases 
>> (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-dev-help@james.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [IMAP] Maven Build Issue

Posted by Stefano Bagnara <ap...@bago.org>.
Now I can't svn, but here is an hint:

It seems we have 2 concurrent issues:
1st: derby has been removed from p.a.o folder (weird).
2nd: derby is not installed by the stage module.

I think the solution to the 2nd is easy and we can ignore the 1st one.

Add <dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
</dependency>

to the stage/pom.xml dependencies so they will be installed by the stage 
module when reactor starts.

This will fix the build when used in the reactor. To make it work in the 
single module build we should point to central instead of p.o.a as our 
repository (IIRC this is in a parent pom).

Stefano

Robert Burrell Donkin ha scritto:
> i think i've fixed most of the issues i created ;-)
> 
> but i'm having a little bit of trouble tracking down why the derby
> download fails. help appreciated :-)
> 
> - robert
> 
> [INFO] Building Apache JAMES IMAP Deployment
> [INFO]    task-segment: [package]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/derby/derby/10.2.2.0/derby-10.2.2.0.pom
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/derby/derby/10.2.2.0/derby-10.2.2.0.jar
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> Missing:
> ----------
> 1) org.apache.derby:derby:jar:10.2.2.0
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.derby
> -DartifactId=derby -Dversion=10.2.2.0 -Dpackaging=jar
> -Dfile=/path/to/file
> 
>   Alternatively, if you host your own repository you can deploy the file there:
>       mvn deploy:deploy-file -DgroupId=org.apache.derby
> -DartifactId=derby -Dversion=10.2.2.0 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> 
>   Path to dependency:
>   	1) org.apache.james:apache-james-imap-deployment:jar:0.1-SNAPSHOT
>   	2) org.apache.derby:derby:jar:10.2.2.0
> 
> ----------
> 1 required artifact is missing.
> 
> for artifact:
>   org.apache.james:apache-james-imap-deployment:jar:0.1-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   apache.releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org