Problem building Nexus from source

View: New views
5 Messages — Rating Filter:   Alert me  

Problem building Nexus from source

by dougnukem :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to build Nexus from SVN trunk:

I'm running into an issue complaining about missing: maven-filtering:jar:1.0-beta-3-SONATYPE-682132

I have my own local Nexus server running and is pointing to the Codehaus-snapshots and Apache-Snapshots repositories listed in the Nexus FAQ:
http://nexus.sonatype.org/nexus-development-faq.html#1

Here's the error I'm getting:

[INFO] ------------------------------------------------------------------------
[INFO] Building Sonatype Nexus: Indexer
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.maven.shared -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132 -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.maven.shared -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
      1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
      2) org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132

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

for artifact:
  org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3

from the specified remote repositories:
  tycho (http://repository.sonatype.org/content/repositories/tycho-pseudo-releases/),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  treewizard-nexus (http://treewizard:8111/nexus/content/groups/public/),
  central (http://repo1.maven.org/maven2),
  codehausSnapshots (http://snapshots.maven.codehaus.org/maven2)


~ doug daniels

Re: Problem building Nexus from source

by Marvin Froeder-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Doug,

Add sonatype public repo to your repositories list:

You will find this and other artifacts required to build nexus.


VELO

On Tue, Aug 11, 2009 at 3:42 AM, Doug Daniels <daniels.douglas@...> wrote:
I'm trying to build Nexus from SVN trunk:

I'm running into an issue complaining about missing: maven-filtering:jar:1.0-beta-3-SONATYPE-682132

I have my own local Nexus server running and is pointing to the Codehaus-snapshots and Apache-Snapshots repositories listed in the Nexus FAQ:
http://nexus.sonatype.org/nexus-development-faq.html#1

Here's the error I'm getting:

[INFO] ------------------------------------------------------------------------
[INFO] Building Sonatype Nexus: Indexer
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.maven.shared -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132 -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.maven.shared -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
      1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
      2) org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132

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

for artifact:
  org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3

from the specified remote repositories:
  tycho (http://repository.sonatype.org/content/repositories/tycho-pseudo-releases/),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  treewizard-nexus (http://treewizard:8111/nexus/content/groups/public/),
  central (http://repo1.maven.org/maven2),
  codehausSnapshots (http://snapshots.maven.codehaus.org/maven2)


~ doug daniels


Re: Problem building Nexus from source

by Brian Fox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Don't use the public group, use the forge group instead:
http://repository.sonatype.org/content/groups/forge


On Tue, Aug 11, 2009 at 6:52 AM, Marvin Froeder<velo@...> wrote:

> Hi Doug,
> Add sonatype public repo to your repositories list:
> http://repository.sonatype.org/content/groups/public
> You will find this and other artifacts required to build nexus.
>
> VELO
>
> On Tue, Aug 11, 2009 at 3:42 AM, Doug Daniels <daniels.douglas@...>
> wrote:
>>
>> I'm trying to build Nexus from SVN trunk:
>>
>> I'm running into an issue complaining about missing:
>> maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>> I have my own local Nexus server running and is pointing to the
>> Codehaus-snapshots and Apache-Snapshots repositories listed in the Nexus
>> FAQ:
>> http://nexus.sonatype.org/nexus-development-faq.html#1
>>
>> Here's the error I'm getting:
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Sonatype Nexus: Indexer
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.apache.maven.shared
>> -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132
>> -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.maven.shared
>> -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132
>> -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>>       1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
>>       2)
>> org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>   org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
>>
>> from the specified remote repositories:
>>   tycho
>> (http://repository.sonatype.org/content/repositories/tycho-pseudo-releases/),
>>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>>   treewizard-nexus (http://treewizard:8111/nexus/content/groups/public/),
>>   central (http://repo1.maven.org/maven2),
>>   codehausSnapshots (http://snapshots.maven.codehaus.org/maven2)
>>
>>
>> ~ doug daniels
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...


Re: Problem building Nexus from source

by dougnukem :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Adding the sonatype repository got me further along the build process, now I'm running into test failures (I guess I could just -Dmaven.test.skip=true, but it'd be nice to build it properly).

------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.sonatype.nexus.configuration.application.source.FileConfigurationSourceTest
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.942 sec <<< FAILURE!
Running org.sonatype.nexus.configuration.ClearPasswordTest
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[WARNING] Nexus configuration file was not loaded, it has the wrong structure.
org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'workingDirectory' (position: START_TAG seen ...</version>\n    <workingDirectory>... @4:23)
    at org.sonatype.nexus.configuration.model.io.xpp3.NexusConfigurationXpp3Reader.parseConfiguration(NexusConfigurationXpp3Reader.java:1830)
    at org.sonatype.nexus.configuration.model.io.xpp3.NexusConfigurationXpp3Reader.read(NexusConfigurationXpp3Reader.java:2122)
    at org.sonatype.nexus.configuration.model.io.xpp3.NexusConfigurationXpp3Reader.read(NexusConfigurationXpp3Reader.java:2136)
    at org.sonatype.nexus.configuration.source.AbstractApplicationConfigurationSource.loadConfiguration(AbstractApplicationConfigurationSource.java:96)
    at org.sonatype.nexus.configuration.source.FileConfigurationSource.loadConfiguration(FileConfigurationSource.java:258)
    at org.sonatype.nexus.configuration.source.FileConfigurationSource.loadConfiguration(FileConfigurationSource.java:157)
    at org.sonatype.nexus.configuration.ClearPasswordTest.doTestLogic(ClearPasswordTest.java:51)
    at org.sonatype.nexus.configuration.ClearPasswordTest.testUpgrade(ClearPasswordTest.java:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
    at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
[INFO] Trying to upgrade the configuration file /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Upgrading old Nexus configuration file (version 1.0.0) from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Nexus configuration file upgraded to current version 1.4.0 succesfully.
[INFO] Creating backup from the old file and saving the upgraded configuration.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The WARNINGS:
[ERROR]  o 1 - Repository with ID='torrent' has no name, defaulted to it's ID.
[ERROR]  o 1(1) - Repository with ID='public.snapshot' has no name, defaulted to it's ID.
[ERROR] * * * * * * * * * * * * * * * * * * * * *
[INFO] Validation has modified the configuration, storing the changes.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.646 sec
Running org.sonatype.nexus.configuration.application.validator.DefaultApplicationConfigurationValidatorTest
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The WARNINGS:
[ERROR]  o 1 - Repository with ID='central' has no name, defaulted to it's ID.
[ERROR] * * * * * * * * * * * * * * * * * * * * *
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The ERRORS:
[ERROR]  o 1 - Repository central declared more than once!
[ERROR] * * * * * * * * * * * * * * * * * * * * *
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The ERRORS:
[ERROR]  o 1 - Repository flex declared more than once!
[ERROR] * * * * * * * * * * * * * * * * * * * * *
....
Results :

Tests in error:
  testNEXUS2212LoadValidConfig(org.sonatype.nexus.configuration.application.source.FileConfigurationSourceTest)

Tests run: 37, Failures: 0, Errors: 1, Skipped: 0

~ doug daniels


On Tue, Aug 11, 2009 at 8:53 AM, Brian Fox <brianf@...> wrote:
Don't use the public group, use the forge group instead:
http://repository.sonatype.org/content/groups/forge


On Tue, Aug 11, 2009 at 6:52 AM, Marvin Froeder<velo@...> wrote:
> Hi Doug,
> Add sonatype public repo to your repositories list:
> http://repository.sonatype.org/content/groups/public
> You will find this and other artifacts required to build nexus.
>
> VELO
>
> On Tue, Aug 11, 2009 at 3:42 AM, Doug Daniels <daniels.douglas@...>
> wrote:
>>
>> I'm trying to build Nexus from SVN trunk:
>>
>> I'm running into an issue complaining about missing:
>> maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>> I have my own local Nexus server running and is pointing to the
>> Codehaus-snapshots and Apache-Snapshots repositories listed in the Nexus
>> FAQ:
>> http://nexus.sonatype.org/nexus-development-faq.html#1
>>
>> Here's the error I'm getting:
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Sonatype Nexus: Indexer
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.apache.maven.shared
>> -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132
>> -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.maven.shared
>> -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132
>> -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>>       1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
>>       2)
>> org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>   org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
>>
>> from the specified remote repositories:
>>   tycho
>> (http://repository.sonatype.org/content/repositories/tycho-pseudo-releases/),
>>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>>   treewizard-nexus (http://treewizard:8111/nexus/content/groups/public/),
>>   central (http://repo1.maven.org/maven2),
>>   codehausSnapshots (http://snapshots.maven.codehaus.org/maven2)
>>
>>
>> ~ doug daniels
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...



Re: Problem building Nexus from source

by Juven Xu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

not all tests in trunk can pass all the time, but you can help us to fix :D

On Tue, Aug 11, 2009 at 10:23 PM, Doug Daniels <daniels.douglas@...> wrote:
Adding the sonatype repository got me further along the build process, now I'm running into test failures (I guess I could just -Dmaven.test.skip=true, but it'd be nice to build it properly).

------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.sonatype.nexus.configuration.application.source.FileConfigurationSourceTest
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[WARNING] No configuration file in place, copying the default one and continuing with it.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.942 sec <<< FAILURE!
Running org.sonatype.nexus.configuration.ClearPasswordTest
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[WARNING] Nexus configuration file was not loaded, it has the wrong structure.
org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'workingDirectory' (position: START_TAG seen ...</version>\n    <workingDirectory>... @4:23)
    at org.sonatype.nexus.configuration.model.io.xpp3.NexusConfigurationXpp3Reader.parseConfiguration(NexusConfigurationXpp3Reader.java:1830)
    at org.sonatype.nexus.configuration.model.io.xpp3.NexusConfigurationXpp3Reader.read(NexusConfigurationXpp3Reader.java:2122)
    at org.sonatype.nexus.configuration.model.io.xpp3.NexusConfigurationXpp3Reader.read(NexusConfigurationXpp3Reader.java:2136)
    at org.sonatype.nexus.configuration.source.AbstractApplicationConfigurationSource.loadConfiguration(AbstractApplicationConfigurationSource.java:96)
    at org.sonatype.nexus.configuration.source.FileConfigurationSource.loadConfiguration(FileConfigurationSource.java:258)
    at org.sonatype.nexus.configuration.source.FileConfigurationSource.loadConfiguration(FileConfigurationSource.java:157)
    at org.sonatype.nexus.configuration.ClearPasswordTest.doTestLogic(ClearPasswordTest.java:51)
    at org.sonatype.nexus.configuration.ClearPasswordTest.testUpgrade(ClearPasswordTest.java:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
    at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
[INFO] Trying to upgrade the configuration file /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Upgrading old Nexus configuration file (version 1.0.0) from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Nexus configuration file upgraded to current version 1.4.0 succesfully.
[INFO] Creating backup from the old file and saving the upgraded configuration.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The WARNINGS:
[ERROR]  o 1 - Repository with ID='torrent' has no name, defaulted to it's ID.
[ERROR]  o 1(1) - Repository with ID='public.snapshot' has no name, defaulted to it's ID.
[ERROR] * * * * * * * * * * * * * * * * * * * * *
[INFO] Validation has modified the configuration, storing the changes.
[INFO] Configuration loaded succesfully.
[INFO] Loading Nexus configuration from /Users/ddaniels/code/nexus/nexus/nexus-configuration/target/plexus-home/nexus-work/conf/nexus.xml
[INFO] Configuration loaded succesfully.
[INFO] Nexus configuration validated succesfully.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.646 sec
Running org.sonatype.nexus.configuration.application.validator.DefaultApplicationConfigurationValidatorTest
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The WARNINGS:
[ERROR]  o 1 - Repository with ID='central' has no name, defaulted to it's ID.
[ERROR] * * * * * * * * * * * * * * * * * * * * *
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The ERRORS:
[ERROR]  o 1 - Repository central declared more than once!
[ERROR] * * * * * * * * * * * * * * * * * * * * *
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] Nexus configuration has validation errors/warnings
[ERROR] * * * * * * * * * * * * * * * * * * * * * * * * * *
[ERROR] The ERRORS:
[ERROR]  o 1 - Repository flex declared more than once!
[ERROR] * * * * * * * * * * * * * * * * * * * * *
....
Results :

Tests in error:
  testNEXUS2212LoadValidConfig(org.sonatype.nexus.configuration.application.source.FileConfigurationSourceTest)

Tests run: 37, Failures: 0, Errors: 1, Skipped: 0

~ doug daniels



On Tue, Aug 11, 2009 at 8:53 AM, Brian Fox <brianf@...> wrote:
Don't use the public group, use the forge group instead:
http://repository.sonatype.org/content/groups/forge


On Tue, Aug 11, 2009 at 6:52 AM, Marvin Froeder<velo@...> wrote:
> Hi Doug,
> Add sonatype public repo to your repositories list:
> http://repository.sonatype.org/content/groups/public
> You will find this and other artifacts required to build nexus.
>
> VELO
>
> On Tue, Aug 11, 2009 at 3:42 AM, Doug Daniels <daniels.douglas@...>
> wrote:
>>
>> I'm trying to build Nexus from SVN trunk:
>>
>> I'm running into an issue complaining about missing:
>> maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>> I have my own local Nexus server running and is pointing to the
>> Codehaus-snapshots and Apache-Snapshots repositories listed in the Nexus
>> FAQ:
>> http://nexus.sonatype.org/nexus-development-faq.html#1
>>
>> Here's the error I'm getting:
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Sonatype Nexus: Indexer
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.pom
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://treewizard:8111/nexus/content/groups/public//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repository.sonatype.org/content/repositories/tycho-pseudo-releases//org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-3-SONATYPE-682132/maven-filtering-1.0-beta-3-SONATYPE-682132.jar
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.apache.maven.shared
>> -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132
>> -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.maven.shared
>> -DartifactId=maven-filtering -Dversion=1.0-beta-3-SONATYPE-682132
>> -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>>       1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
>>       2)
>> org.apache.maven.shared:maven-filtering:jar:1.0-beta-3-SONATYPE-682132
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>   org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.3
>>
>> from the specified remote repositories:
>>   tycho
>> (http://repository.sonatype.org/content/repositories/tycho-pseudo-releases/),
>>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>>   treewizard-nexus (http://treewizard:8111/nexus/content/groups/public/),
>>   central (http://repo1.maven.org/maven2),
>>   codehausSnapshots (http://snapshots.maven.codehaus.org/maven2)
>>
>>
>> ~ doug daniels
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...





--
- juven