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 L. Gurule" <rg...@lanl.gov> on 2010/01/22 16:42:50 UTC

Problems building James and How do I run James server 3.0???

Hi James,
   If I get a successfull build how do I run James-server 3.0 Imap?

The circumstances are:

   I'm using eclipse and M2Eclipse, I when I use the command
Debug-generate sources I get successfull build, when I use Debug- Maven
Build i  get the following:


[ERROR]

The following mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-remote-resources-plugin
Version: 1.1
Mojo: process
brought in via: POM

While building project:
Group-Id: org.apache.james
Artifact-Id: james-server-core-function
Version: 3.0-M1
>From file: C:\Documents and Settings\106052\My
Documents\james\maven.1264004763546\james-server\core-function\pom.xml
Reason: Failed to resolve dependencies for one or more projects in the
reactor. Reason: Missing:
----------
1) org.apache.james:james-server-core-library:test-jar:tests:3.0-M1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.james
-DartifactId=james-server-core-library -Dversion=3.0-M1
-Dclassifier=tests -Dpackaging=test-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.james
-DartifactId=james-server-core-library -Dversion=3.0-M1
-Dclassifier=tests -Dpackaging=test-jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

  Path to dependency:
          1) org.apache.james:james-server-core-function:jar:3.0-M1
          2) org.apache.james:james-server-core-library:test-jar:tests:3.0-M1

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

for artifact:
  org.apache.james:james-server-core-function:jar:3.0-M1

from the specified remote repositories:
  apache.snapshots (http://repository.apache.org/snapshots),
  module-local (file://stage),
  maven2-repository.dev.java.net (http://download.java.net/maven/2/),
  central (http://repo1.maven.org/maven2)

Thanks,

Robert




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


Re: Problem building with eclipse/ maven-surefire-plugin is missing!!!

Posted by Norman Maurer <no...@googlemail.com>.
Hi Robert,

are you sure you are using the latest trunk ? Try svn update to get
the lastest code. With current trunk all tests pass without problems..

See:
http://hudson.zones.apache.org/hudson/view/James/job/james-server-trunk-m2/

Bye,
Norman

2010/1/26 Robert L. Gurule <rg...@lanl.gov>:
> This is what I got when i built it with "mvn -U clean package"
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.james.userrepository.MockUsersRepositoryTest
> Tests run: 7, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 0.062 sec
> <<< FA
> ILURE!
>
> Results :
>
> Tests in error:
>  testUsersRepositoryEmpty(org.apache.james.userrepository.MockUsersRepositoryTe
> st)
>  testAddUserOnce(org.apache.james.userrepository.MockUsersRepositoryTest)
>  testUserAddedIsFound(org.apache.james.userrepository.MockUsersRepositoryTest)
>  testUserListing(org.apache.james.userrepository.MockUsersRepositoryTest)
>  testUserPassword(org.apache.james.userrepository.MockUsersRepositoryTest)
>  testUserAddRemoveCycle(org.apache.james.userrepository.MockUsersRepositoryTest
> )
>  testCaseInsensitivesMethods(org.apache.james.userrepository.MockUsersRepositor
> yTest)
>
> Tests run: 7, Failures: 0, Errors: 7, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to C:\Documents and Settings\106052\My
> Documents\James\james-server
> \user-library\target\surefire-reports for the individual test results.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 14 seconds
> [INFO] Finished at: Tue Jan 26 12:00:09 MST 2010
> [INFO] Final Memory: 51M/63M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>> Hi Robert,
>>
>> could you try to run "mvn -U clean package" ?
>>
>> Thx,
>> Norman
>>
>> 2010/1/25 Robert L. Gurule <rg...@lanl.gov>:
>>> I get an error while building  it looks like it's looking for the
>>> maven-surefire-plugin...
>>>
>>> any ideas?
>>>
>>> [INFO] Apache JAMES Server User Library ...................... FAILED
>>> [3.203s]
>>> [
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR]
>>>
>>> Mojo:
>>>
>>>   org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test
>>>
>>> FAILED for project:
>>>
>>>   org.apache.james:james-server-user-library:jar:3.0-M1
>>>
>>> Reason:
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>

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


Re: Problem building with eclipse/ maven-surefire-plugin is missing!!!

Posted by "Robert L. Gurule" <rg...@lanl.gov>.
This is what I got when i built it with "mvn -U clean package"


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.james.userrepository.MockUsersRepositoryTest
Tests run: 7, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 0.062 sec
<<< FA
ILURE!

Results :

Tests in error:
  testUsersRepositoryEmpty(org.apache.james.userrepository.MockUsersRepositoryTe
st)
  testAddUserOnce(org.apache.james.userrepository.MockUsersRepositoryTest)
  testUserAddedIsFound(org.apache.james.userrepository.MockUsersRepositoryTest)
  testUserListing(org.apache.james.userrepository.MockUsersRepositoryTest)
  testUserPassword(org.apache.james.userrepository.MockUsersRepositoryTest)
  testUserAddRemoveCycle(org.apache.james.userrepository.MockUsersRepositoryTest
)
  testCaseInsensitivesMethods(org.apache.james.userrepository.MockUsersRepositor
yTest)

Tests run: 7, Failures: 0, Errors: 7, Skipped: 0

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Documents and Settings\106052\My
Documents\James\james-server
\user-library\target\surefire-reports for the individual test results.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Jan 26 12:00:09 MST 2010
[INFO] Final Memory: 51M/63M
[INFO]
------------------------------------------------------------------------



> Hi Robert,
>
> could you try to run "mvn -U clean package" ?
>
> Thx,
> Norman
>
> 2010/1/25 Robert L. Gurule <rg...@lanl.gov>:
>> I get an error while building  it looks like it's looking for the
>> maven-surefire-plugin...
>>
>> any ideas?
>>
>> [INFO] Apache JAMES Server User Library ...................... FAILED
>> [3.203s]
>> [
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR]
>>
>> Mojo:
>>
>>   org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test
>>
>> FAILED for project:
>>
>>   org.apache.james:james-server-user-library:jar:3.0-M1
>>
>> Reason:
>>
>>
>> ---------------------------------------------------------------------
>> 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: Problem building with eclipse/ maven-surefire-plugin is missing!!!

Posted by Norman Maurer <no...@googlemail.com>.
Hi Robert,

could you try to run "mvn -U clean package" ?

Thx,
Norman

2010/1/25 Robert L. Gurule <rg...@lanl.gov>:
> I get an error while building  it looks like it's looking for the
> maven-surefire-plugin...
>
> any ideas?
>
> [INFO] Apache JAMES Server User Library ...................... FAILED
> [3.203s]
> [
> [INFO]
> ------------------------------------------------------------------------
> [ERROR]
>
> Mojo:
>
>   org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test
>
> FAILED for project:
>
>   org.apache.james:james-server-user-library:jar:3.0-M1
>
> Reason:
>
>
> ---------------------------------------------------------------------
> 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


Problem building with eclipse/ maven-surefire-plugin is missing!!!

Posted by "Robert L. Gurule" <rg...@lanl.gov>.
I get an error while building  it looks like it's looking for the 
maven-surefire-plugin...

any ideas?

[INFO] Apache JAMES Server User Library ...................... FAILED 
[3.203s]
[
[INFO] 
------------------------------------------------------------------------
[ERROR]

Mojo:

    org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test

FAILED for project:

    org.apache.james:james-server-user-library:jar:3.0-M1

Reason:


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


Re: Problems building James and How do I run James server 3.0???

Posted by Norman Maurer <no...@googlemail.com>.
Hi Robert,

just click on :

Run As -> Maven package

That should do the trick..

Bye,
Norman

2010/1/22 Robert L. Gurule <rg...@lanl.gov>:
> Hi James,
>   If I get a successfull build how do I run James-server 3.0 Imap?
>
> The circumstances are:
>
>   I'm using eclipse and M2Eclipse, I when I use the command
> Debug-generate sources I get successfull build, when I use Debug- Maven
> Build i  get the following:
>
>
> [ERROR]
>
> The following mojo encountered an error while executing:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-remote-resources-plugin
> Version: 1.1
> Mojo: process
> brought in via: POM
>
> While building project:
> Group-Id: org.apache.james
> Artifact-Id: james-server-core-function
> Version: 3.0-M1
> From file: C:\Documents and Settings\106052\My
> Documents\james\maven.1264004763546\james-server\core-function\pom.xml
> Reason: Failed to resolve dependencies for one or more projects in the
> reactor. Reason: Missing:
> ----------
> 1) org.apache.james:james-server-core-library:test-jar:tests:3.0-M1
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.apache.james
> -DartifactId=james-server-core-library -Dversion=3.0-M1
> -Dclassifier=tests -Dpackaging=test-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.james
> -DartifactId=james-server-core-library -Dversion=3.0-M1
> -Dclassifier=tests -Dpackaging=test-jar -Dfile=/path/to/file
> -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>          1) org.apache.james:james-server-core-function:jar:3.0-M1
>          2) org.apache.james:james-server-core-library:test-jar:tests:3.0-M1
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>  org.apache.james:james-server-core-function:jar:3.0-M1
>
> from the specified remote repositories:
>  apache.snapshots (http://repository.apache.org/snapshots),
>  module-local (file://stage),
>  maven2-repository.dev.java.net (http://download.java.net/maven/2/),
>  central (http://repo1.maven.org/maven2)
>
> Thanks,
>
> Robert
>
>
>
>
> ---------------------------------------------------------------------
> 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