You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Graham Klyne <gr...@oucs.ox.ac.uk> on 2005/10/14 17:31:53 UTC

Pluto 1.1 build failure

Hi,

I've pulled Pluto 1.1 source and installed Maven 2.0.

Trying to build Pluto 1.1 per README instructions, I'm getting a failure
to build:
[[
[INFO] Failed to resolve artifact.

Authentication failed:
  xerces:xmlParserAPIs:2.6.2:jar
]]

The full log from my second attempt to run m2 install is below (after
the first run has downloaded M2 plugins and bits to the local maven
repository).

Are there any quick workarounds for this?

Thanks.

#g
--


[[
D:\Work\OxfordCS\Pluto-1.1>m2 install
[INFO]
----------------------------------------------------------------------------
[INFO] Building Apache Pluto
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [install:install]
[INFO] Installing D:\Work\OxfordCS\Pluto-1.1\pom.xml to
C:\DEV\Maven\repository\org\apache\pluto\pluto\1.1-SNAPSHOT\plut
o-1.1-SNAPSHOT.pom
[INFO]
----------------------------------------------------------------------------
[INFO] Building Pluto Descriptor Service API
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir:
D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-api\target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no test to run.

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

[INFO] [jar:jar]
[INFO] Building jar:
D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-api\target\pluto-descriptor-api-1.1-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-api\target\pluto-descriptor-api-1.1-SNAPSHOT.jar
to C:\DEV
\Maven\repository\org\apache\pluto\pluto-descriptor-api\1.1-SNAPSHOT\pluto-descriptor-api-1.1-SNAPSHOT.jar
[INFO]
----------------------------------------------------------------------------
[INFO] Building Pluto Descriptor Service Implementation
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING]
  ***** Using defaults for missing POM xerces:xmlParserAPIs:pom:2.6.2 *****

[WARNING]
  ***** Using defaults for missing POM xerces:xercesImpl:pom:2.6.2 *****

[WARNING]
  ***** Using defaults for missing POM
commons-logging:commons-logging-api:pom:1.0.4 *****

[WARNING]
  ***** Using defaults for missing POM castor:castor:pom:0.9.6 *****

[INFO]
----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Authentication failed:
  xerces:xmlParserAPIs:2.6.2:jar

from the specified remote repositories:
  m1 (scp://cvs.apache.org/repository),
  m2 (scp://people.apache.org/home/ddewolf/public_html/m2),
  central (http://repo1.maven.org/maven2)
Path to dependency:
        1) org.apache.pluto:pluto-descriptor-impl:jar:1.1-SNAPSHOT
        2) xerces:xmlParserAPIs:jar:2.6.2


Root Cause: Authentication Credentials cannot be null for SSH protocol

[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Fri Oct 14 16:24:41 BST 2005
[INFO] Final Memory: 4M/7M
[INFO]
----------------------------------------------------------------------------

D:\Work\OxfordCS\Pluto-1.1>
]]


-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services

Re: Pluto 1.1 build failure -- Breakthrough

Posted by Graham Klyne <gr...@oucs.ox.ac.uk>.
David H. DeWolf wrote:
> Great! I was just sitting down to see if I could duplicate your problem.
>  I appreciate your patience.  Would you please log an issue in JIRA
> against the 1.1 branch to make sure that we resolve this. . .
> 
> http://issues.apache.org/jira/secure/Dashboard.jspa

Done.

http://issues.apache.org/jira/browse/PLUTO-173

#g

-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services

Re: Pluto 1.1 build failure -- Breakthrough

Posted by "David H. DeWolf" <dd...@apache.org>.
Great! I was just sitting down to see if I could duplicate your problem. 
  I appreciate your patience.  Would you please log an issue in JIRA 
against the 1.1 branch to make sure that we resolve this. . .

http://issues.apache.org/jira/secure/Dashboard.jspa

Thanks,

David


Graham Klyne wrote:
> I think I may have found the problem.
> 
> In file Pluto-1.1\pluto-testsuite\pom.xml I changed the <build> section
> thus:
> 
> [[
>   <build>
>     <finalName>pluto-testsuite</finalName>
>     <plugins>
>       <plugin>
>         <artifactId>maven-assembly-plugin</artifactId>
> <!--
>         <version>1.0-SNAPSHOT</version>
> -->
>         <version>2.0</version>
>         <configuration>
>           <descriptor>src/assemble/bin.xml</descriptor>
>           <finalName>pluto-testsuite-${pom.version}</finalName>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> ]]
> 
> (i.e. updated reference to <version>1.0-SNAPSHOT</version>)
> 
> And the 'mvn install' build now works just fine.
> 
> (Now to see if it actually works!)
> 
> #g
> 


Re: Pluto 1.1 build failure -- Breakthrough

Posted by Graham Klyne <GK...@ninebynine.org>.
I think I may have found the problem.

In file Pluto-1.1\pluto-testsuite\pom.xml I changed the <build> section
thus:

[[
  <build>
    <finalName>pluto-testsuite</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
<!--
        <version>1.0-SNAPSHOT</version>
-->
        <version>2.0</version>
        <configuration>
          <descriptor>src/assemble/bin.xml</descriptor>
          <finalName>pluto-testsuite-${pom.version}</finalName>
        </configuration>
      </plugin>
    </plugins>
  </build>
]]

(i.e. updated reference to <version>1.0-SNAPSHOT</version>)

And the 'mvn install' build now works just fine.

(Now to see if it actually works!)

#g

-- 
Graham Klyne
For email:
http://www.ninebynine.org/#Contact

Re: Pluto 1.1 build failure

Posted by Graham Klyne <gr...@oucs.ox.ac.uk>.
Zhong ZHENG wrote:
> To avoid strange problems, please use maven-2.0-RC to perform the build.
> You may download maven 2.0 RC from here:
> http://people.apache.org/~brett/maven-2.0-RC/
> <http://people.apache.org/%7Ebrett/maven-2.0-RC/>

Thanks!  I hadn't relized it was *Maven* that was just released.  I've
just downloaded the final release linked from the Maven 2.0 home page
and installed that.  Things are working better, but...

First time I built (with the additional repository entries removed from
pom.xml) I got this error:
[[
[INFO]
----------------------------------------------------------------------------
[INFO] Building Pluto Testsuite Portlet
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository
  org.apache.maven.plugins:maven-assembly-plugin:1.0-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 40 seconds
[INFO] Finished at: Thu Oct 20 10:29:32 BST 2005
[INFO] Final Memory: 8M/15M
[INFO]
----------------------------------------------------------------------------
]]

So I reverted pom.xml to the original and tried again.  This time, I was
prompted for passwords for the repositories.  For cvs.apache.org, I used
anoncvs and that seemed to be happy (first time only:  on subsequent
runs it didn't work, so maybe I was just confused), but that didn't work
for scp://people.apache.org/home/ddewolf/public_html/m2, so I got
another failure like before:
[[
[WARNING] repository metadata for: 'snapshot
org.apache.maven.plugins:maven-assembly-plugin:1.0-SNAPSHOT' could not be r
etrieved from repository: m2 due to an error: Authentication failed:
Cannot connect. Reason: Auth fail
[INFO] Repository 'm2' will be blacklisted
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository
  org.apache.maven.plugins:maven-assembly-plugin:1.0-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  m1 (scp://cvs.apache.org/repository),
  m2 (scp://people.apache.org/home/ddewolf/public_html/m2)


[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 8 minutes 44 seconds
[INFO] Finished at: Thu Oct 20 10:39:29 BST 2005
[INFO] Final Memory: 8M/16M
[INFO]
----------------------------------------------------------------------------
]]

I then discovered the email thread at:
http://mail-archives.apache.org/mod_mbox/portals-pluto-dev/200510.mbox/%3C23684d3a0510130353q4139d7a4oda31952973728e5e@mail.gmail.com%3E
which seems to discuss this problem.  But I'm not sure it's been
adequately resolved yet.  I've not yet added any repository information
to my settigns.xml, as I'm not sure what I might add.  I'm suspecting
that there's maybe a conflict here between anonymous repository access
for retrieving required files and the need for authentication when
updating?

Finally, I tried removing the repositories entries in pom.xml again, and
was back to the "Failed to resolve artifact" error.

Once again, I'm out of ideas :-(

#g

-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services

Re: Pluto 1.1 build failure

Posted by Zhong ZHENG <he...@gmail.com>.
Hi,

To avoid strange problems, please use maven-2.0-RC to perform the build. You
may download maven 2.0 RC from here:
http://people.apache.org/~brett/maven-2.0-RC/<http://people.apache.org/%7Ebrett/maven-2.0-RC/>

Hope that helps.

ZHENG Zhong

Re: Pluto 1.1 build failure

Posted by "David H. DeWolf" <dd...@apache.org>.
Sorry, sometimes I'm too breif :)

1) Execute the following to find out what version of maven you're using:

m2 -version

2) I'm currently using 2.0, if you have 2.0-beta-something or (especially)
2.0-alpha-something, you are probably using an incompatible version. Between
alphas and betas and the final release, some elements of the pom changed.
Sometimes these changes cause the types of errors you're seeing.

3) If you're using an old version, download the latest maven distribution.
The release candidate was posted a few days ago.

4) Update to get the latest.

5) Rerun

6) Let me know if you still have issues.

Thanks,

David

On 10/19/05, Graham Klyne <gr...@oucs.ox.ac.uk> wrote:
>
> David H. DeWolf wrote:
> > It looks like you don't have the absolute latest. The version you're
> > using runs against Maven 2 Alpha 3, beta and the new rc required some
> > changes. Zehng checked those in last night. Get the clean copy and see
> > if it helps.
>
> Sorry to be dumb here, but I'm not quite sure what you're saying ("new
> rc"?).
>
> I'm trying to build on a Windows XP machine, have JDK 1.5.0_04 and maven
> 2.0 beta 3. I was running with the latest Pluto code from svn
> (repository URI
> https://svn.apache.org/repos/asf/portals/pluto/branches/pluto-1.1
> obtained from http://portals.apache.org/pluto/1.1/source-repository.html).
>
> I did just do an SVN update on my copy and try the build again, but SVN
> indicated no new files available and (apart from downloading a bunch of
> updated M2 plugins) I seem to be getting the same results (excerpts
> below [1]).
>
> (My SVN client (Tortoise) has svn:ignore properties *.iws *.iml *.ipr,
> which I assume were set in the Pluto SVN repository.)
>
> I tried clearing out the maven repository and starting again (suspecting
> intereference between Maven versions, but the problem still persists.
>
> OK, I finally fixed that problem: I commented out the <repositories> in
> the top-level pom.xml, and the build proceeded much further. I did get
> a couple of checksum errors [2]. Unfortunately, it now fails during
> "Building Maven Pluto Installer Plugin" with a Java error:
> [[
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.maven.plugin.descriptor.PluginDescriptor.setName
> (Ljava/lang/String;)V
> at
> org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(
> AbstractGeneratorMojo.java:91)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:417)
> :
> ]]
> A copy of the complete log for this build is attached.
>
> Do you have any further pointers or suggestions?
>
> #g
> --
>
> ...
>
> [1] Errors building package as downloaded:
>
> I'm getting two slightly different versions of the previous error on two
> successive attempts:
> [[
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Authentication failed:
> castor:castor:0.9.6:jar
>
> from the specified remote repositories:
> m1 (scp://cvs.apache.org/repository),
> m2 (scp://people.apache.org/home/ddewolf/public_html/m2),
> central (http://repo1.maven.org/maven2)
> Path to dependency:
> 1) org.apache.pluto:pluto-descriptor-impl:jar:1.1-SNAPSHOT
> 2) castor:castor:jar:0.9.6
>
>
> Root Cause: Authentication Credentials cannot be null for SSH protocol
> ]]
>
> and
>
> [[
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Authentication failed:
> xerces:xmlParserAPIs:2.6.2:jar
>
> from the specified remote repositories:
> m1 (scp://cvs.apache.org/repository),
> m2 (scp://people.apache.org/home/ddewolf/public_html/m2),
> central (http://repo1.maven.org/maven2)
> Path to dependency:
> 1) org.apache.pluto:pluto-descriptor-impl:jar:1.1-SNAPSHOT
> 2) xerces:xmlParserAPIs:jar:2.6.2
>
>
> Root Cause: Authentication Credentials cannot be null for SSH protocol
> ]]
>
> ...
>
> [2] Checksum errors after <repositories> removed from pom.xml:
>
> [[
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Pluto Descriptor Service Implementation
> [INFO] task-segment: [install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> :
> [INFO] [compiler:compile]
> Compiling 4 source files to
> D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-impl\target\classes
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
>
> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> 5K downloaded
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '56435f861bb6811dc4de5f462ecd402c5fee49be'; remote
> = 'caec0185db41a32e1038d5eb90c13f3df87140aa' - RETRYING
> Downloading:
>
> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> 5K downloaded
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '56435f861bb6811dc4de5f462ecd402c5fee49be'; remote
> = 'caec0185db41a32e1038d5eb90c13f3df87140aa' - IGNORING
> Downloading:
> http://repo1.maven.org/maven2/logkit/logkit/1.0.1/logkit-1.0.1.pom
> 147b downloaded
> :
> [INFO] [compiler:testCompile]
> Compiling 1 source file to
> D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-impl\target\test-classes
> [INFO] [surefire:test]
> [INFO] Setting reports dir:
> D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-impl\target/surefire-reports
> ]]
>
>
> --
> Graham Klyne
> Research Technology Service
> Oxford University Computing Services
>
>
> D:\Work\OxfordCS\Pluto-1.1>m2 install
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Apache Pluto
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing D:\Work\OxfordCS\Pluto-1.1\pom.xml to
> C:\DEV\M2\repository\org\apache\pluto\pluto\1.1-SNAPSHOT\pluto-1
> .1-SNAPSHOT.pom
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Pluto Descriptor Service API
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Setting reports dir: D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-api\target/surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> There are no test to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar: D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-api\target\pluto-descriptor-api-1.1-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-api\target\pluto-descriptor-api-1.1-SNAPSHOT.jar to
> C:\DEV
> \M2\repository\org\apache\pluto\pluto-descriptor-api\1.1-SNAPSHOT\pluto-
> descriptor-api-1.1-SNAPSHOT.jar
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Pluto Descriptor Service Implementation
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.pom
> 153b downloaded
> Downloading:
> http://repo1.maven.org/maven2/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.pom
> 150b downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.pom
> 168b downloaded
> Downloading:
> http://repo1.maven.org/maven2/castor/castor/0.9.6/castor-0.9.6.pom
> 146b downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar
> 25K downloaded
> Downloading:
> http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar
> 121K downloaded
> Downloading:
> http://repo1.maven.org/maven2/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar
> 986K downloaded
> Downloading:
> http://repo1.maven.org/maven2/castor/castor/0.9.6/castor-0.9.6.jar
> 1784K downloaded
> [INFO] [compiler:compile]
> Compiling 4 source files to D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-impl\target\classes
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> 5K downloaded
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '56435f861bb6811dc4de5f462ecd402c5fee49be'; remote
> = 'caec0185db41a32e1038d5eb90c13f3df87140aa' - RETRYING
> Downloading:
> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
> 5K downloaded
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '56435f861bb6811dc4de5f462ecd402c5fee49be'; remote
> = 'caec0185db41a32e1038d5eb90c13f3df87140aa' - IGNORING
> Downloading:
> http://repo1.maven.org/maven2/logkit/logkit/1.0.1/logkit-1.0.1.pom
> 147b downloaded
> Downloading:
> http://repo1.maven.org/maven2/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.pom
> 167b downloaded
> Downloading:
> http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.pom
> 145b downloaded
> Downloading:
> http://repo1.maven.org/maven2/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar
> 62K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
> 37K downloaded
> Downloading:
> http://repo1.maven.org/maven2/logkit/logkit/1.0.1/logkit-1.0.1.jar
> 70K downloaded
> Downloading:
> http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar
> 342K downloaded
> [INFO] [compiler:testCompile]
> Compiling 1 source file to D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-impl\target\test-classes
> [INFO] [surefire:test]
> [INFO] Setting reports dir: D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-impl\target/surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> [surefire] Running
> org.apache.pluto.descriptors.services.castor.WebAppDescriptorServiceImplTest
> [surefire] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0 sec
>
> Results :
> [surefire] Tests run: 4, Failures: 0, Errors: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar: D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-impl\target\pluto-descriptor-impl-1.1-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-impl\target\pluto-descriptor-impl-1.1-SNAPSHOT.jar to
> C:\D
>
> EV\M2\repository\org\apache\pluto\pluto-descriptor-impl\1.1-SNAPSHOT\pluto-
> descriptor-impl-1.1-SNAPSHOT.jar
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Pluto Deployer
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://repo1.maven.org/maven2/commons-digester/commons-digester/1.6/commons-digester-1.6.pom
> 164b downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.pom
> 2K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0/commons-logging-1.0.pom
> 163b downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-lang/commons-lang/1.0/commons-lang-1.0.pom
> 2K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-jelly/commons-jelly/1.0-beta-4/commons-jelly-1.0-beta-4.pom
> 165b downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.pom
> 168b downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-jelly/commons-jelly/1.0-beta-4/commons-jelly-1.0-beta-4.jar
> 159K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
> 184K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
> 29K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-lang/commons-lang/1.0/commons-lang-1.0.jar
> 62K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
> 164K downloaded
> [INFO] [compiler:compile]
> Compiling 17 source files to D:\Work\OxfordCS\Pluto-
> 1.1\pluto-deploy\target\classes
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: D:\Work\OxfordCS\Pluto-
> 1.1\pluto-deploy\target/surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> There are no test to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar: D:\Work\OxfordCS\Pluto-
> 1.1\pluto-deploy\target\pluto-deploy-1.1-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing D:\Work\OxfordCS\Pluto-
> 1.1\pluto-deploy\target\pluto-deploy-1.1-SNAPSHOT.jar to
> C:\DEV\M2\repository\o
> rg\apache\pluto\pluto-deploy\1.1-SNAPSHOT\pluto-deploy-1.1-SNAPSHOT.jar
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Pluto Installer Plugin
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for
> updates from central
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-plugin/2.0/maven-plugin-plugin-2.0.pom
> 2K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-plugin/2.0/maven-plugin-plugin-2.0.jar
> 16K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-tools-java/2.0/maven-plugin-tools-java-2.0.pom
> 885b downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-tools/2.0/maven-plugin-tools-2.0.pom
> 553b downloaded
> Downloading: http://repo1.maven.org/maven2/qdox/qdox/1.5/qdox-1.5.pom
> 140b downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.pom
> 865b downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-tools-beanshell/2.0/maven-plugin-tools-beanshel
> l-2.0.pom
> 895b downloaded
> Downloading: http://repo1.maven.org/maven2/bsh/bsh/1.3.0/bsh-1.3.0.pom
> 210b downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-impl/2.0/maven-reporting-impl-2.0
> .
> pom
> 2K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting/2.0/maven-reporting-2.0.pom
> 521b downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.pom
> 168b downloaded
> Downloading: http://repo1.maven.org/maven2/oro/oro/2.0.7/oro-2.0.7.pom
> 141b downloaded
> Downloading:
> http://repo1.maven.org/maven2/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.pom
> 4K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-tools-java/2.0/maven-plugin-tools-java-2.0.jar
> 10K downloaded
> Downloading:
> http://repo1.maven.org/maven2/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar
> 82K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar
> 22K downloaded
> Downloading:
> http://repo1.maven.org/maven2/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar
> 254K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-impl/2.0/maven-reporting-impl-2.0
> .
> jar
> 15K downloaded
> Downloading: http://repo1.maven.org/maven2/oro/oro/2.0.7/oro-2.0.7.jar
> 63K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-tools-beanshell/2.0/maven-plugin-tools-beanshel
> l-2.0.jar
> 8K downloaded
> Downloading: http://repo1.maven.org/maven2/bsh/bsh/1.3.0/bsh-1.3.0.jar
> 236K downloaded
> Downloading: http://repo1.maven.org/maven2/qdox/qdox/1.5/qdox-1.5.jar
> 77K downloaded
> [INFO] [plugin:descriptor]
> ---------------------------------------------------
> constituent[0]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/commons-cli-1.0.jar
> constituent[1]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/doxia-sink-api-1.0-alpha-4.jar
> constituent[2]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/jline-0.9.1.jar
> constituent[3]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/jsch-0.1.21.jar
> constituent[4]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-artifact-2.0-beta-3.jar
> constituent[5]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-artifact-manager-2.0-beta-3.jar
> constituent[6]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-core-2.0-beta-3.jar
> constituent[7]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-model-2.0-beta-3.jar
> constituent[8]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-monitor-2.0-beta-3.jar
> constituent[9]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-plugin-api-2.0-beta-3.jar
> constituent[10]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-plugin-descriptor-2.0-beta-3.jar
> constituent[11]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-plugin-parameter-documenter-2.0-beta
> -3.jar
> constituent[12]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-plugin-registry-2.0-beta-3.jar
> constituent[13]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-profile-2.0-beta-3.jar
> constituent[14]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-project-2.0-beta-3.jar
> constituent[15]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-reporting-api-2.0-beta-3.jar
> constituent[16]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-repository-metadata-2.0-beta-3.jar
> constituent[17]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/maven-settings-2.0-beta-3.jar
> constituent[18]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/plexus-input-handler-1.0-alpha-2.jar
> constituent[19]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/wagon-file-1.0-alpha-4.jar
> constituent[20]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/wagon-http-lightweight-1.0-alpha-4.jar
> constituent[21]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/wagon-provider-api-1.0-alpha-4.jar
> constituent[22]: file:/C:/DEV/Apache Software Foundation/maven-2.0-beta-3
> /lib/wagon-ssh-1.0-alpha-4.jar
> ---------------------------------------------------
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.maven.plugin.descriptor.PluginDescriptor.setName(Ljav
> a/lang/String;)V
> at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(
> AbstractGeneratorMojo.java:91)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:417)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:554)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:50
> 8)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:494)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (DefaultLifecycleExecutor.java:307)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:149)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> D:\Work\OxfordCS\Pluto-1.1>
>
>

Re: Pluto 1.1 build failure

Posted by Graham Klyne <gr...@oucs.ox.ac.uk>.
David H. DeWolf wrote:
> It looks like you don't have the absolute latest.  The version you're
> using runs against Maven 2 Alpha 3, beta and the new rc required some
> changes.  Zehng checked those in last night.  Get the clean copy and see
> if it helps.

Sorry to be dumb here, but I'm not quite sure what you're saying ("new
rc"?).

I'm trying to build on a Windows XP machine, have JDK 1.5.0_04 and maven
2.0 beta 3.  I was running with the latest Pluto code from svn
(repository URI
https://svn.apache.org/repos/asf/portals/pluto/branches/pluto-1.1
obtained from http://portals.apache.org/pluto/1.1/source-repository.html).

I did just do an SVN update on my copy and try the build again, but SVN
indicated no new files available and (apart from downloading a bunch of
updated M2 plugins) I seem to be getting the same results (excerpts
below [1]).

(My SVN client (Tortoise) has svn:ignore properties *.iws *.iml *.ipr,
which I assume were set in the Pluto SVN repository.)

I tried clearing out the maven repository and starting again (suspecting
intereference between Maven versions, but the problem still persists.

OK, I finally fixed that problem:  I commented out the <repositories> in
the top-level pom.xml, and the build proceeded much further.  I did get
a couple of checksum errors [2].  Unfortunately, it now fails during
"Building Maven Pluto Installer Plugin" with a Java error:
[[
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.maven.plugin.descriptor.PluginDescriptor.setName(Ljava/lang/String;)V
        at
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:91)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
 :
]]
A copy of the complete log for this build is attached.

Do you have any further pointers or suggestions?

#g
--

...

[1] Errors building package as downloaded:

I'm getting two slightly different versions of the previous error on two
successive attempts:
[[
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Authentication failed:
  castor:castor:0.9.6:jar

from the specified remote repositories:
  m1 (scp://cvs.apache.org/repository),
  m2 (scp://people.apache.org/home/ddewolf/public_html/m2),
  central (http://repo1.maven.org/maven2)
Path to dependency:
        1) org.apache.pluto:pluto-descriptor-impl:jar:1.1-SNAPSHOT
        2) castor:castor:jar:0.9.6


Root Cause: Authentication Credentials cannot be null for SSH protocol
]]

and

[[
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Authentication failed:
  xerces:xmlParserAPIs:2.6.2:jar

from the specified remote repositories:
  m1 (scp://cvs.apache.org/repository),
  m2 (scp://people.apache.org/home/ddewolf/public_html/m2),
  central (http://repo1.maven.org/maven2)
Path to dependency:
        1) org.apache.pluto:pluto-descriptor-impl:jar:1.1-SNAPSHOT
        2) xerces:xmlParserAPIs:jar:2.6.2


Root Cause: Authentication Credentials cannot be null for SSH protocol
]]

...

[2] Checksum errors after <repositories> removed from pom.xml:

[[
[INFO]
----------------------------------------------------------------------------
[INFO] Building Pluto Descriptor Service Implementation
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
 :
[INFO] [compiler:compile]
Compiling 4 source files to
D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-impl\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
5K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'56435f861bb6811dc4de5f462ecd402c5fee49be'; remote
= 'caec0185db41a32e1038d5eb90c13f3df87140aa' - RETRYING
Downloading:
http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
5K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'56435f861bb6811dc4de5f462ecd402c5fee49be'; remote
= 'caec0185db41a32e1038d5eb90c13f3df87140aa' - IGNORING
Downloading:
http://repo1.maven.org/maven2/logkit/logkit/1.0.1/logkit-1.0.1.pom
147b downloaded
 :
[INFO] [compiler:testCompile]
Compiling 1 source file to
D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-impl\target\test-classes
[INFO] [surefire:test]
[INFO] Setting reports dir:
D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-impl\target/surefire-reports
]]


-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services

Re: Pluto 1.1 build failure

Posted by "David H. DeWolf" <dd...@gmail.com>.
It looks like you don't have the absolute latest. The version you're using
runs against Maven 2 Alpha 3, beta and the new rc required some changes.
Zehng checked those in last night. Get the clean copy and see if it helps.

David

On 10/14/05, Graham Klyne <gr...@oucs.ox.ac.uk> wrote:
>
> Hi,
>
> I've pulled Pluto 1.1 source and installed Maven 2.0.
>
> Trying to build Pluto 1.1 per README instructions, I'm getting a failure
> to build:
> [[
> [INFO] Failed to resolve artifact.
>
> Authentication failed:
> xerces:xmlParserAPIs:2.6.2:jar
> ]]
>
> The full log from my second attempt to run m2 install is below (after
> the first run has downloaded M2 plugins and bits to the local maven
> repository).
>
> Are there any quick workarounds for this?
>
> Thanks.
>
> #g
> --
>
>
> [[
> D:\Work\OxfordCS\Pluto-1.1>m2 install
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Apache Pluto
> [INFO] task-segment: [install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing D:\Work\OxfordCS\Pluto-1.1\pom.xml to
> C:\DEV\Maven\repository\org\apache\pluto\pluto\1.1-SNAPSHOT\plut
> o-1.1-SNAPSHOT.pom
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Pluto Descriptor Service API
> [INFO] task-segment: [install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Setting reports dir:
> D:\Work\OxfordCS\Pluto-1.1\pluto-descriptor-api\target/surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> There are no test to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar:
> D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-api\target\pluto-descriptor-api-1.1-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing
> D:\Work\OxfordCS\Pluto-
> 1.1\pluto-descriptor-api\target\pluto-descriptor-api-1.1-SNAPSHOT.jar
> to C:\DEV
>
> \Maven\repository\org\apache\pluto\pluto-descriptor-api\1.1-SNAPSHOT\pluto-
> descriptor-api-1.1-SNAPSHOT.jar
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Pluto Descriptor Service Implementation
> [INFO] task-segment: [install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [WARNING]
> ***** Using defaults for missing POM xerces:xmlParserAPIs:pom:2.6.2 *****
>
> [WARNING]
> ***** Using defaults for missing POM xerces:xercesImpl:pom:2.6.2 *****
>
> [WARNING]
> ***** Using defaults for missing POM
> commons-logging:commons-logging-api:pom:1.0.4 *****
>
> [WARNING]
> ***** Using defaults for missing POM castor:castor:pom:0.9.6 *****
>
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Authentication failed:
> xerces:xmlParserAPIs:2.6.2:jar
>
> from the specified remote repositories:
> m1 (scp://cvs.apache.org/repository),
> m2 (scp://people.apache.org/home/ddewolf/public_html/m2),
> central (http://repo1.maven.org/maven2)
> Path to dependency:
> 1) org.apache.pluto:pluto-descriptor-impl:jar:1.1-SNAPSHOT
> 2) xerces:xmlParserAPIs:jar:2.6.2
>
>
> Root Cause: Authentication Credentials cannot be null for SSH protocol
>
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Fri Oct 14 16:24:41 BST 2005
> [INFO] Final Memory: 4M/7M
> [INFO]
>
> ----------------------------------------------------------------------------
>
> D:\Work\OxfordCS\Pluto-1.1>
> ]]
>
>
> --
> Graham Klyne
> Research Technology Service
> Oxford University Computing Services
>