Hi Jacek!

This is caused to a problem with the apache.snapshots repo. There is still the 
reference to the 'old' apache.snapshots repo around in some plugins, which 
causes problems.

To resolve this problem, you might manually disable the old snapshots via 
adding the following section to your ~/.m2/settings.xml

  <mirrors>
    <mirror>
      <id>new.apache.snapshots</id>
      <name>new apache snapshots repository. We need this to skip the old 
ones</name>
      <url>http://repository.apache.org/snapshots</url>
      <mirrorOf>apache.snapshots</mirrorOf>
    </mirror>
  </mirrors>


this will redirect all requests onto the old repo to the new apache.snapshots 
repo which is defined in apache-parent-7.

LieGrue,
strub



----- Original Message ----
> From: Jacek Laskowski <[email protected]>
> To: [email protected]
> Sent: Fri, June 25, 2010 11:14:11 AM
> Subject: BUILD ERROR due to missing 
> build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT
> 
> Hi,

Does anyone know why the trunk fails due to 
> missing
org.apache.openwebbeans.build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT?
Below 
> is the build's outcome.

devmac:openwebbeans jacek$ svn up
At revision 
> 957856.
devmac:openwebbeans jacek$ svn status
devmac:openwebbeans jacek$ 
> svn info
Path: .
URL: 
> href="https://svn.apache.org/repos/asf/openwebbeans/trunk"; target=_blank 
> >https://svn.apache.org/repos/asf/openwebbeans/trunk
Repository Root: 
> href="https://svn.apache.org/repos/asf"; target=_blank 
> >https://svn.apache.org/repos/asf
Repository UUID: 
> 13f79535-47bb-0310-9956-ffa450edef68
Revision: 957856
Node Kind: 
> directory
Schedule: normal
Last Changed Author: struberg
Last Changed 
> Rev: 957523
Last Changed Date: 2010-06-24 14:23:26 +0200 (Thu, 24 Jun 
> 2010)
devmac:openwebbeans jacek$ mvn -v
Apache Maven 2.2.1 (r801777; 
> 2009-08-06 21:16:01+0200)
Java version: 1.6.0_20
Java home: 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default 
> locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: 
> "10.6.3" arch: "x86_64" Family: "mac"
devmac:openwebbeans jacek$ mvn clean 
> install
[INFO] Scanning for projects...
[INFO] Reactor build 
> order:
[INFO]   Apache OpenWebBeans
[INFO]   Apache OpenWebBeans 
> :: SPI
[INFO]   Apache OpenWebBeans :: OpenWebBeans Core
[INFO]  
> Apache OpenWebBeans :: Java EE Common Utility
[INFO]   Apache 
> OpenWebBeans :: Java EE Web Utility
[INFO]   Apache OpenWebBeans :: Java 
> EE EJB Utility
[INFO]   Apache OpenWebBeans :: Java EE 
> Utility
[INFO]   Apache OpenWebBeans :: Apache OpenEJB 
> Profile
[INFO]   Apache OpenWebBeans :: Apache Tomcat 6 Web 
> Profile
[INFO]   Apache OpenWebBeans :: Apache Tomcat 7 Web 
> Profile
[INFO]   Apache OpenWebBeans :: JMS integration
[INFO]  
> Apache OpenWebBeans :: JSF integration
[INFO]   Apache OpenWebBeans :: 
> EL 1.0 integration
[INFO]   Apache OpenWebBeans :: JSF 1.2 
> integration
[INFO]   Apache OpenWebBeans :: Resource 
> Integration
[INFO]   Apache OpenWebBeans :: OSGi ClassLoader 
> support
[INFO]   Apache OpenWebBeans :: TCK Porting 
> Package
[INFO]   Apache OpenWebBeans Test Support
[INFO]  
> Apache CDI Testing integration
[INFO]   Apache CDI OpenWebBeans Testing 
> integration
[INFO]   Apache OpenWebBeans :: Samples
[INFO]  
> Apache OpenWebBeans :: Sample Guess Application
[INFO]   Apache 
> OpenWebBeans :: JSF Conversation Sample
[INFO]   Apache OpenWebBeans :: 
> Sample JSF2 Application
[INFO]   Apache OpenWebBeans :: Sample Ejb Demo 
> On OpenEJB in Tomcat
[INFO]   Apache OpenWebBeans :: Telephone Ejb Demo 
> On OpenEJB in Tomcat
[INFO]   Apache OpenWebBeans :: Sample Jms 
> Injection Demo
[INFO]   Apache OpenWebBeans :: Sample Hotel Reservation 
> Application
[INFO]   Apache OpenWebBeans :: Tomcat 
> Sample
[INFO]   Apache OpenWebBeans :: Tomcat 7 Sample
[INFO]  
> Apache OpenWebBeans :: OpenWebBeans Java SE Sample
[INFO]   Apache 
> OpenWebBeans :: OpenWebBeans JSR-330 TCK
[INFO] 
> ------------------------------------------------------------------------
[INFO] 
> Building Apache OpenWebBeans
[INFO]    task-segment: [clean, 
> install]
[INFO] 
> ------------------------------------------------------------------------
[INFO] 
> [clean:clean {execution: default-clean}]
[INFO] Deleting file set: 
> /Users/jacek/oss/openwebbeans/target
(included: [**], excluded: [])
[INFO] 
> Setting property: classpath.resource.loader.class 
> =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] 
> Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting 
> property: resource.loader => 'classpath'.
[INFO] Setting property: 
> resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process 
> {execution: default}]
[INFO] [bundle:manifest {execution: 
> bundle-manifest}]
[WARNING] Ignoring project type pom - supportedProjectTypes 
> = [jar, bundle, war]
[INFO] [site:attach-descriptor {execution: 
> default-attach-descriptor}]
[INFO] Parent project loaded from 
> repository.
[INFO] Preparing source:jar
[WARNING] Removing: jar from 
> forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for 
> project - skipping
[INFO] [source:jar {execution: default}]
[INFO] 
> Preparing checkstyle:check
[INFO] 
> snapshot
org.apache.openwebbeans.build-tools:checkstyle-rules:1.0.0-SNAPSHOT:
checking 
> for updates from apache.snapshots
Downloading: 
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.pom
[INFO] 
> Unable to find 
> resource
'org.apache.openwebbeans.build-tools:checkstyle-rules:pom:1.0.0-SNAPSHOT'
in 
> repository 
> apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository)
Downloading: 
> http://repository.apache.org/snapshots/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.pom
[INFO] 
> Unable to find 
> resource
'org.apache.openwebbeans.build-tools:checkstyle-rules:pom:1.0.0-SNAPSHOT'
in 
> repository 
> apache.snapshots
(http://repository.apache.org/snapshots)
Downloading: 
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.jar
[INFO] 
> Unable to find 
> resource
'org.apache.openwebbeans.build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT'
in 
> repository apache.snapshots
(
> href="http://people.apache.org/repo/m2-snapshot-repository"; target=_blank 
> >http://people.apache.org/repo/m2-snapshot-repository)
Downloading: 
> http://repository.apache.org/snapshots/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.jar
[INFO] 
> Unable to find 
> resource
'org.apache.openwebbeans.build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT'
in 
> repository apache.snapshots
(
> target=_blank >http://repository.apache.org/snapshots)
[INFO] 
> ------------------------------------------------------------------------
[ERROR] 
> BUILD ERROR
[INFO] 
> ------------------------------------------------------------------------
[INFO] 
> Failed to resolve artifact.

Missing:
----------
1) 
> org.apache.openwebbeans.build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT

  
> Try downloading the file manually from the project website.

  Then, 
> install it using the command:
      mvn 
> install:install-file
-DgroupId=org.apache.openwebbeans.build-tools
-DartifactId=checkstyle-rules 
> -Dversion=1.0.0-SNAPSHOT -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.openwebbeans.build-tools
-DartifactId=checkstyle-rules 
> -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] 
> -DrepositoryId=[id]

  Path to dependency:
  
>     1) 
> org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2
  
>     2) 
> org.apache.openwebbeans.build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT

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

for artifact:
  
> org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.2

from 
> the specified remote repositories:
  apache.snapshots (
> href="http://repository.apache.org/snapshots"; target=_blank 
> >http://repository.apache.org/snapshots),
  central 
> (http://repo1.maven.org/maven2)



[INFO] 
> ------------------------------------------------------------------------
[INFO] 
> For more information, run Maven with the -e switch
[INFO] 
> ------------------------------------------------------------------------
[INFO] 
> Total time: 16 seconds
[INFO] Finished at: Fri Jun 25 11:07:45 CEST 
> 2010
[INFO] Final Memory: 52M/105M
[INFO] 
> ------------------------------------------------------------------------

Jacek

-- 
> 
Jacek Laskowski
Notatnik Projektanta Java EE - 
> http://jaceklaskowski.pl
KapituĊ‚a Javarsovia 2010 - http://javarsovia.pl



Reply via email to