[richfaces-issues] [JBoss JIRA] (RF-11545) The maven-resource-dependency-plugin doesn't work with Maven 3.0

Daniel Nussbaum (JIRA) jira-events at lists.jboss.org
Wed Jul 11 02:02:12 EDT 2012


    [ https://issues.jboss.org/browse/RF-11545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705347#comment-12705347 ] 

Daniel Nussbaum commented on RF-11545:
--------------------------------------

This bug is solved when moving to maven 3.0.4
                
> The maven-resource-dependency-plugin doesn't work with Maven 3.0
> ----------------------------------------------------------------
>
>                 Key: RF-11545
>                 URL: https://issues.jboss.org/browse/RF-11545
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>    Affects Versions: 3.3.3.Final
>         Environment: Ubuntu 64bit, Maven 3.0.3
>            Reporter: Christian Kaltepoth
>             Fix For: 3.Future
>
>         Attachments: RF-11545.patch
>
>
> The maven-resource-dependency-plugin doesn't work with Maven 3.0.3. It seems like the plugin is unable to resolve the project dependencies although they are available in the local repository:
> {code}
> [INFO] --- maven-resource-dependency-plugin:3.3.3.Final:assembly-resources (default) @ pubwif-dev ---
> [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,cdk'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] Setting property: cdk.resource.loader.class => 'org.ajax4jsf.builder.velocity.ResourceLoader'.
> [INFO] ************************************************************** 
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
> [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] Resource Loader Instantiated: org.ajax4jsf.builder.velocity.ResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
> [INFO] Velocimacro : added new VM : #quietnull( a ) : source = VM_global_library.vm
> [INFO] Velocimacro : added new VM : #tagPropertyMethods12( source ) : source = VM_global_library.vm
> [INFO] Velocimacro : added new VM : #tagPropertyRelease( source ) : source = VM_global_library.vm
> [INFO] Velocimacro :  VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be  global in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [WARNING] Missing POM for org.apache.myfaces.core:myfaces-api:jar:1.2.5
> [WARNING] Missing POM for org.apache.myfaces.core:myfaces-impl:jar:1.2.5
> [WARNING] Missing POM for org.apache.myfaces.tomahawk:tomahawk:jar:1.1.8
> [WARNING] Missing POM for org.jboss.el:jboss-el:jar:2.0.1.GA
> [WARNING] Missing POM for org.richfaces.framework:richfaces-api:jar:3.3.3.Final
> [WARNING] Missing POM for org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
> [WARNING] Missing POM for org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
> [WARNING] Missing POM for org.restfaces:restfaces:jar:1.3.0.1
> [WARNING] Missing POM for org.apache.myfaces.orchestra:myfaces-orchestra-core:jar:1.3
> [WARNING] Missing POM for org.apache.myfaces.orchestra:myfaces-orchestra-core15:jar:1.0
> [WARNING] Missing POM for com.sun.facelets:jsf-facelets:jar:1.1.14
> [WARNING] Missing POM for org.springframework:spring:jar:2.5.6
> [WARNING] Missing POM for net.sf.ehcache:ehcache:jar:1.4.1
> [WARNING] Missing POM for commons-httpclient:commons-httpclient:jar:3.0.1
> [WARNING] Missing POM for commons-collections:commons-collections:jar:3.2
> [WARNING] Missing POM for commons-io:commons-io:jar:1.3.2
> [WARNING] Missing POM for log4j:log4j:jar:1.2.16
> [WARNING] Missing POM for jboss:jbossall-client:jar:4.2.2.GA
> [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
> [WARNING] Missing POM for javax.servlet.jsp:jsp-api:jar:2.1
> [WARNING] Missing POM for taglibs:standard:jar:1.1.2
> [WARNING] Missing POM for commons-el:commons-el:jar:1.0
> [WARNING] Missing POM for junit:junit:jar:3.8.1
> [WARNING] Missing POM for joda-time:joda-time:jar:1.5.2
> [WARNING] Missing POM for dom4j:dom4j:jar:1.6.1
> [WARNING] Missing POM for com.google.code.google-collections:google-collect:jar:snapshot-20080530
> [WARNING] Missing POM for hsqldb:hsqldb:jar:1.8.0.7
> [WARNING] Missing POM for org.hibernate:hibernate-entitymanager:jar:3.2.1.ga
> [WARNING] Missing POM for commons-dbcp:commons-dbcp:jar:1.2.2
> [WARNING] Missing POM for mysql:mysql-connector-java:jar:5.1.6
> [WARNING] Missing POM for xalan:xalan:jar:2.7.0
> [WARNING] Missing POM for xerces:xerces:jar:2.4.0
> [WARNING] Missing POM for com.lowagie:itext:jar:2.0.8
> [ERROR] Error generate resource
> org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
> ----------
> 1) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -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.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
> 2) org.apache.myfaces.core:myfaces-impl:jar:1.2.5
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.apache.myfaces.core -DartifactId=myfaces-impl -Dversion=1.2.5 -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.myfaces.core -DartifactId=myfaces-impl -Dversion=1.2.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.apache.myfaces.core:myfaces-impl:jar:1.2.5
> 3) org.apache.myfaces.core:myfaces-api:jar:1.2.5
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.apache.myfaces.core -DartifactId=myfaces-api -Dversion=1.2.5 -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.myfaces.core -DartifactId=myfaces-api -Dversion=1.2.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.apache.myfaces.core:myfaces-api:jar:1.2.5
> 4) org.jboss.el:jboss-el:jar:2.0.1.GA
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -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.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.jboss.el:jboss-el:jar:2.0.1.GA
> 5) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.8
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk -DartifactId=tomahawk -Dversion=1.1.8 -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.myfaces.tomahawk -DartifactId=tomahawk -Dversion=1.1.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.8
> 6) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -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.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
> 7) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -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.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
> 8) org.apache.myfaces.orchestra:myfaces-orchestra-core:jar:1.3
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.apache.myfaces.orchestra -DartifactId=myfaces-orchestra-core -Dversion=1.3 -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.myfaces.orchestra -DartifactId=myfaces-orchestra-core -Dversion=1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.apache.myfaces.orchestra:myfaces-orchestra-core:jar:1.3
> 9) org.restfaces:restfaces:jar:1.3.0.1
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=org.restfaces -DartifactId=restfaces -Dversion=1.3.0.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.restfaces -DartifactId=restfaces -Dversion=1.3.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>   Path to dependency: 
>   	1) org.example:webapp:war:1.0-SNAPSHOT
>   	2) org.restfaces:restfaces:jar:1.3.0.1
> {code}
> With Maven 2.x everything works fine. If I remove the plugin from the pom.xml, the build also completes without errors.
> Similar problems have been reported multiple times on the net (even for the cdk plugin):
> http://stackoverflow.com/questions/4906017/maven-project-build-problems
> http://stackoverflow.com/questions/7079368/error-thrown-when-using-plug-n-skin-with-richfaces-and-maven

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list