You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Georgy Bolyuba <bo...@gmail.com> on 2009/02/02 16:39:25 UTC

Building from source

Hi,

I am following this:
http://maven.apache.org/guides/development/guide-building-m2.html.

Checkout from trunk:
    >svn checkout http://svn.apache.org/repos/asf/maven/components/trunk .

Trying to build:
    >ant

Result:

BUILD FAILED
D:\tests\maven\build.xml:82: Unable to resolve artifact: Missing:
----------
1) org.codehaus.plexus:plexus-lang:jar:1.1
  Try downloading the file manually from the project website.
  Then, install it using the command:
      mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-lang -Dversion=1.1 -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.codehaus.plexus
-DartifactId=plexus-lang -Dversion=1.1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  Path to dependency:
        1) org.apache.maven:maven:pom:3.0-SNAPSHOT
        2) org.apache.maven.mercury:mercury-artifact:jar:1.0.0-alpha-2
        3) org.codehaus.plexus:plexus-lang:jar:1.1
----------
1 required artifact is missing.
for artifact:
  org.apache.maven:maven:pom:3.0-SNAPSHOT


We use Artifactory in our company. This is from the log files:

2009-02-02 10:23:12,286 [ERROR] (o.a.c.c.C.[.[.[.[default]:260) -
Servlet.service() for servlet default threw exception
java.lang.RuntimeException: Failed to save resource
'repo1:org/codehaus/plexus/plexus-lang/1.1/plexus-lang-1.1.jar'.
at org.artifactory.repo.jcr.JcrRepoBase.saveResource(JcrRepoBase.java:588)
[artifactory-core-1.3.0-rc-1.jar:na]
...skipped...
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
[tomcat-util.jar:5.1]
at java.lang.Thread.run(Thread.java:595) [na:1.5.0_12]
Caused by: org.artifactory.api.repo.exception.RepositoryRuntimeException:
Failed to create file node resource at
'/repositories/repo1-cache/org/codehaus/plexus/plexus-lang/1.1/plexus-lang-1.1.jar'.
at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:178)
[artifactory-core-1.3.0-rc-1.jar:na]
at org.artifactory.repo.jcr.JcrRepoBase.saveResource(JcrRepoBase.java:567)
[artifactory-core-1.3.0-rc-1.jar:na]
... 56 common frames omitted
Caused by: org.artifactory.io.checksum.policy.ChecksumPolicyException:
Checksum policy
'org.artifactory.io.checksum.policy.ChecksumPolicyGenerateIfAbsent@5fb185'
rejected the artifact 'plexus-lang-1.1.jar'. Checksums info:
[ChecksumInfo{type=SHA-1,
original='da39a3ee5e6b4b0d3255bfef95601890afd80709',
actual='0fe38d248d8c98518ddf8173d9152c10d0a8be0c'},
ChecksumInfo{type=MD5, original='d41d8cd98f00b204e9800998ecf8427e',
actual='f1df611b48adbe87129bb397a58f5979'}]
at org.artifactory.jcr.fs.JcrFile.fillJcrData(JcrFile.java:721)
[artifactory-core-1.3.0-rc-1.jar:na]
at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:679)
[artifactory-core-1.3.0-rc-1.jar:na]
at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:175)
[artifactory-core-1.3.0-rc-1.jar:na]
... 57 common frames omitted


I looked at both repo1 and codehaus repo
(http://repository.codehaus.org/org/codehaus/plexus/plexus-lang/1.1/).
Same thing - MD5 and SHA1 do not match calculated from jar.

Any help on what to do in this situation? (Except installing it
manually to our local repo)

Have a great rest of the day,
Georgy

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


Re: Building from source

Posted by Georgy Bolyuba <bo...@gmail.com>.
Did that, yeah. Thanks for the hint.

Georgy

On Mon, Feb 2, 2009 at 4:57 PM, Brian E. Fox <br...@reply.infinity.nu> wrote:
> Can you turn of the checksum checking?
>
> -----Original Message-----
> From: Georgy Bolyuba [mailto:bolyuba@gmail.com]
> Sent: Monday, February 02, 2009 10:39 AM
> To: dev@maven.apache.org
> Subject: Building from source
>
> Hi,
>
> I am following this:
> http://maven.apache.org/guides/development/guide-building-m2.html.
>
> Checkout from trunk:
>    >svn checkout http://svn.apache.org/repos/asf/maven/components/trunk .
>
> Trying to build:
>    >ant
>
> Result:
>
> BUILD FAILED
> D:\tests\maven\build.xml:82: Unable to resolve artifact: Missing:
> ----------
> 1) org.codehaus.plexus:plexus-lang:jar:1.1
>  Try downloading the file manually from the project website.
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.codehaus.plexus
> -DartifactId=plexus-lang -Dversion=1.1 -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.codehaus.plexus
> -DartifactId=plexus-lang -Dversion=1.1 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>  Path to dependency:
>        1) org.apache.maven:maven:pom:3.0-SNAPSHOT
>        2) org.apache.maven.mercury:mercury-artifact:jar:1.0.0-alpha-2
>        3) org.codehaus.plexus:plexus-lang:jar:1.1
> ----------
> 1 required artifact is missing.
> for artifact:
>  org.apache.maven:maven:pom:3.0-SNAPSHOT
>
>
> We use Artifactory in our company. This is from the log files:
>
> 2009-02-02 10:23:12,286 [ERROR] (o.a.c.c.C.[.[.[.[default]:260) -
> Servlet.service() for servlet default threw exception
> java.lang.RuntimeException: Failed to save resource
> 'repo1:org/codehaus/plexus/plexus-lang/1.1/plexus-lang-1.1.jar'.
> at org.artifactory.repo.jcr.JcrRepoBase.saveResource(JcrRepoBase.java:588)
> [artifactory-core-1.3.0-rc-1.jar:na]
> ...skipped...
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
> [tomcat-util.jar:5.1]
> at java.lang.Thread.run(Thread.java:595) [na:1.5.0_12]
> Caused by: org.artifactory.api.repo.exception.RepositoryRuntimeException:
> Failed to create file node resource at
> '/repositories/repo1-cache/org/codehaus/plexus/plexus-lang/1.1/plexus-lang-1.1.jar'.
> at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:178)
> [artifactory-core-1.3.0-rc-1.jar:na]
> at org.artifactory.repo.jcr.JcrRepoBase.saveResource(JcrRepoBase.java:567)
> [artifactory-core-1.3.0-rc-1.jar:na]
> ... 56 common frames omitted
> Caused by: org.artifactory.io.checksum.policy.ChecksumPolicyException:
> Checksum policy
> 'org.artifactory.io.checksum.policy.ChecksumPolicyGenerateIfAbsent@5fb185'
> rejected the artifact 'plexus-lang-1.1.jar'. Checksums info:
> [ChecksumInfo{type=SHA-1,
> original='da39a3ee5e6b4b0d3255bfef95601890afd80709',
> actual='0fe38d248d8c98518ddf8173d9152c10d0a8be0c'},
> ChecksumInfo{type=MD5, original='d41d8cd98f00b204e9800998ecf8427e',
> actual='f1df611b48adbe87129bb397a58f5979'}]
> at org.artifactory.jcr.fs.JcrFile.fillJcrData(JcrFile.java:721)
> [artifactory-core-1.3.0-rc-1.jar:na]
> at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:679)
> [artifactory-core-1.3.0-rc-1.jar:na]
> at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:175)
> [artifactory-core-1.3.0-rc-1.jar:na]
> ... 57 common frames omitted
>
>
> I looked at both repo1 and codehaus repo
> (http://repository.codehaus.org/org/codehaus/plexus/plexus-lang/1.1/).
> Same thing - MD5 and SHA1 do not match calculated from jar.
>
> Any help on what to do in this situation? (Except installing it
> manually to our local repo)
>
> Have a great rest of the day,
> Georgy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

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


RE: Building from source

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Can you turn of the checksum checking?

-----Original Message-----
From: Georgy Bolyuba [mailto:bolyuba@gmail.com] 
Sent: Monday, February 02, 2009 10:39 AM
To: dev@maven.apache.org
Subject: Building from source

Hi,

I am following this:
http://maven.apache.org/guides/development/guide-building-m2.html.

Checkout from trunk:
    >svn checkout http://svn.apache.org/repos/asf/maven/components/trunk .

Trying to build:
    >ant

Result:

BUILD FAILED
D:\tests\maven\build.xml:82: Unable to resolve artifact: Missing:
----------
1) org.codehaus.plexus:plexus-lang:jar:1.1
  Try downloading the file manually from the project website.
  Then, install it using the command:
      mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-lang -Dversion=1.1 -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.codehaus.plexus
-DartifactId=plexus-lang -Dversion=1.1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  Path to dependency:
        1) org.apache.maven:maven:pom:3.0-SNAPSHOT
        2) org.apache.maven.mercury:mercury-artifact:jar:1.0.0-alpha-2
        3) org.codehaus.plexus:plexus-lang:jar:1.1
----------
1 required artifact is missing.
for artifact:
  org.apache.maven:maven:pom:3.0-SNAPSHOT


We use Artifactory in our company. This is from the log files:

2009-02-02 10:23:12,286 [ERROR] (o.a.c.c.C.[.[.[.[default]:260) -
Servlet.service() for servlet default threw exception
java.lang.RuntimeException: Failed to save resource
'repo1:org/codehaus/plexus/plexus-lang/1.1/plexus-lang-1.1.jar'.
at org.artifactory.repo.jcr.JcrRepoBase.saveResource(JcrRepoBase.java:588)
[artifactory-core-1.3.0-rc-1.jar:na]
...skipped...
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
[tomcat-util.jar:5.1]
at java.lang.Thread.run(Thread.java:595) [na:1.5.0_12]
Caused by: org.artifactory.api.repo.exception.RepositoryRuntimeException:
Failed to create file node resource at
'/repositories/repo1-cache/org/codehaus/plexus/plexus-lang/1.1/plexus-lang-1.1.jar'.
at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:178)
[artifactory-core-1.3.0-rc-1.jar:na]
at org.artifactory.repo.jcr.JcrRepoBase.saveResource(JcrRepoBase.java:567)
[artifactory-core-1.3.0-rc-1.jar:na]
... 56 common frames omitted
Caused by: org.artifactory.io.checksum.policy.ChecksumPolicyException:
Checksum policy
'org.artifactory.io.checksum.policy.ChecksumPolicyGenerateIfAbsent@5fb185'
rejected the artifact 'plexus-lang-1.1.jar'. Checksums info:
[ChecksumInfo{type=SHA-1,
original='da39a3ee5e6b4b0d3255bfef95601890afd80709',
actual='0fe38d248d8c98518ddf8173d9152c10d0a8be0c'},
ChecksumInfo{type=MD5, original='d41d8cd98f00b204e9800998ecf8427e',
actual='f1df611b48adbe87129bb397a58f5979'}]
at org.artifactory.jcr.fs.JcrFile.fillJcrData(JcrFile.java:721)
[artifactory-core-1.3.0-rc-1.jar:na]
at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:679)
[artifactory-core-1.3.0-rc-1.jar:na]
at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:175)
[artifactory-core-1.3.0-rc-1.jar:na]
... 57 common frames omitted


I looked at both repo1 and codehaus repo
(http://repository.codehaus.org/org/codehaus/plexus/plexus-lang/1.1/).
Same thing - MD5 and SHA1 do not match calculated from jar.

Any help on what to do in this situation? (Except installing it
manually to our local repo)

Have a great rest of the day,
Georgy

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