Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
http://jira.codehaus.org/browse/MASSEMBLY-230 On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Debug it a bit, and let us know. ;-) Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: After researching this a bit more: THIS DOES NOT WORK: fileSet directory${basedir}/src/main/resources/deploy/directory outputDirectory//outputDirectory filteredtrue/filtered includes include**/*.*/include /includes /fileSet /fileSets THIS DOES WORK: files file source${basedir}/src/main/resources/deploy/deploy.sh.txt/source filteredtrue/filtered /file /files Why do files respect the filtering, but filesets do not? On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: So has anyone out there ever gotten any filter example to work with assemblies? On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: I don't really have an answer for you. I'm not a big user of assembly plugin. Perhaps someone else who uses assembly + filters will respond. It is also possible that you've found a bug. Make a small test case and post it in JIRA if you're reasonably convinced its a bug. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: Is there something I am missing to just filter resources for an assembly? I can filter just fine for my modules (wars), but not creating an assembly. On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: OK, I have the following filter and resources attribultes in my master pom.xml: filters filter${basedir}/src/main/filters/filter.properties/filter /filters resources resource directory${basedir}/src/main/resources/directory filteringtrue/filtering /resource /resources /build Then the filter.properties has: filter.application.name=DAP filter.application.version=1.0.0.9 Then I have these 2 lines and nothing is filtered: #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version }/logging- ${project.version}.ear -deploymentname LoggingService -bindAllWebApps #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${ filter.application.version }/logging-${filter.application.version} .ear -deploymentname LoggingService -bindAllWebApps On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar: 2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime
[m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime(selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar:2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: null:maven-error-diagnostics:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected for runtime) [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project: null:wagon-ssh-external:jar:1.0-alpha-6 from the repository . [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime(selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-monitor:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-monitor:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project: null:wagon-ssh:jar:1.0-alpha-7 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] com.jcraft:jsch:jar:0.1.24:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] classworlds:classworlds:jar:1.1:runtime (removed - nearer found: 1.1-alpha-2) [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:1.0-alpha-1:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0.2:runtime (removed - nearer found: 2.0.4) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error configuring: org.apache.maven.plugins:maven-assembly-plugin. Reason: ERROR: Cannot override read-only parameter: filters in goal: assembly:ass embly [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-assembly-plugin. Reason: ERROR: Cannot override read-only parameter: filters in goal:
Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime(selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar:2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: null:maven-error-diagnostics:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected for runtime) [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project: null:wagon-ssh-external:jar:1.0-alpha-6 from the repository . [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime(selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-monitor:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-monitor:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project: null:wagon-ssh:jar:1.0-alpha-7 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] com.jcraft:jsch:jar:0.1.24:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] classworlds:classworlds:jar:1.1:runtime (removed - nearer found: 1.1-alpha-2) [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:1.0-alpha-1:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0.2:runtime (removed - nearer found: 2.0.4) [INFO] [ERROR] BUILD ERROR [INFO]
Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
OK, I have the following filter and resources attribultes in my master pom.xml: filters filter${basedir}/src/main/filters/filter.properties/filter /filters resources resource directory${basedir}/src/main/resources/directory filteringtrue/filtering /resource /resources /build Then the filter.properties has: filter.application.name=DAP filter.application.version=1.0.0.9 Then I have these 2 lines and nothing is filtered: #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version}/logging-${ project.version}.ear -deploymentname LoggingService -bindAllWebApps #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${filter.application.version}/logging-${ filter.application.version}.ear -deploymentname LoggingService -bindAllWebApps On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar:2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: null:maven-error-diagnostics:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime (selected for runtime) [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project: null:wagon-ssh-external:jar:1.0-alpha-6 from the repository . [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime(selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime(removed - nearer found: 1.1) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-monitor:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-monitor:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM:
Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
Is there something I am missing to just filter resources for an assembly? I can filter just fine for my modules (wars), but not creating an assembly. On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: OK, I have the following filter and resources attribultes in my master pom.xml: filters filter${basedir}/src/main/filters/filter.properties/filter /filters resources resource directory${basedir}/src/main/resources/directory filteringtrue/filtering /resource /resources /build Then the filter.properties has: filter.application.name=DAP filter.application.version=1.0.0.9 Then I have these 2 lines and nothing is filtered: #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version}/logging- ${project.version}.ear -deploymentname LoggingService -bindAllWebApps #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${filter.application.version }/logging-${filter.application.version} .ear -deploymentname LoggingService -bindAllWebApps On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar:2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer found: 2.0.4 ) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: null:maven-error-diagnostics:jar: 2.0.4 from the repository. [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected for runtime) [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project: null:wagon-ssh-external:jar:1.0-alpha-6 from the repository . [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime(selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime(removed - nearer found: 1.1) [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime (selected for runtime) [DEBUG]
Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
I don't really have an answer for you. I'm not a big user of assembly plugin. Perhaps someone else who uses assembly + filters will respond. It is also possible that you've found a bug. Make a small test case and post it in JIRA if you're reasonably convinced its a bug. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: Is there something I am missing to just filter resources for an assembly? I can filter just fine for my modules (wars), but not creating an assembly. On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: OK, I have the following filter and resources attribultes in my master pom.xml: filters filter${basedir}/src/main/filters/filter.properties/filter /filters resources resource directory${basedir}/src/main/resources/directory filteringtrue/filtering /resource /resources /build Then the filter.properties has: filter.application.name=DAP filter.application.version=1.0.0.9 Then I have these 2 lines and nothing is filtered: #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version}/logging- ${project.version}.ear -deploymentname LoggingService -bindAllWebApps #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${filter.application.version }/logging-${filter.application.version} .ear -deploymentname LoggingService -bindAllWebApps On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar:2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer found: 2.0.4 ) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: null:maven-error-diagnostics:jar: 2.0.4 from the repository. [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed - nearer found: 2.0) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected for runtime) [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project: null:wagon-ssh-external:jar:1.0-alpha-6 from the repository . [DEBUG] Retrieving parent-POM:
Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
So has anyone out there ever gotten any filter example to work with assemblies? On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: I don't really have an answer for you. I'm not a big user of assembly plugin. Perhaps someone else who uses assembly + filters will respond. It is also possible that you've found a bug. Make a small test case and post it in JIRA if you're reasonably convinced its a bug. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: Is there something I am missing to just filter resources for an assembly? I can filter just fine for my modules (wars), but not creating an assembly. On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: OK, I have the following filter and resources attribultes in my master pom.xml: filters filter${basedir}/src/main/filters/filter.properties/filter /filters resources resource directory${basedir}/src/main/resources/directory filteringtrue/filtering /resource /resources /build Then the filter.properties has: filter.application.name=DAP filter.application.version=1.0.0.9 Then I have these 2 lines and nothing is filtered: #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version }/logging- ${project.version}.ear -deploymentname LoggingService -bindAllWebApps #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${ filter.application.version }/logging-${filter.application.version} .ear -deploymentname LoggingService -bindAllWebApps On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar:2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime(removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime(removed - nearer found: 2.0) [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer found: 2.0.4 ) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime(selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: null:maven-error-diagnostics:jar: 2.0.4 from the repository. [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime(removed - nearer found: 2.0) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository. [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected for runtime) [DEBUG]
Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
After researching this a bit more: THIS DOES NOT WORK: fileSet directory${basedir}/src/main/resources/deploy/directory outputDirectory//outputDirectory filteredtrue/filtered includes include**/*.*/include /includes /fileSet /fileSets THIS DOES WORK: files file source${basedir}/src/main/resources/deploy/deploy.sh.txt/source filteredtrue/filtered /file /files Why do files respect the filtering, but filesets do not? On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: So has anyone out there ever gotten any filter example to work with assemblies? On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: I don't really have an answer for you. I'm not a big user of assembly plugin. Perhaps someone else who uses assembly + filters will respond. It is also possible that you've found a bug. Make a small test case and post it in JIRA if you're reasonably convinced its a bug. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: Is there something I am missing to just filter resources for an assembly? I can filter just fine for my modules (wars), but not creating an assembly. On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: OK, I have the following filter and resources attribultes in my master pom.xml: filters filter${basedir}/src/main/filters/filter.properties/filter /filters resources resource directory${basedir}/src/main/resources/directory filteringtrue/filtering /resource /resources /build Then the filter.properties has: filter.application.name=DAP filter.application.version=1.0.0.9 Then I have these 2 lines and nothing is filtered: #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version }/logging- ${project.version}.ear -deploymentname LoggingService -bindAllWebApps #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${ filter.application.version }/logging-${filter.application.version} .ear -deploymentname LoggingService -bindAllWebApps On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar: 2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime(removed - nearer found: 2.0.4) [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime(removed - nearer found: 2.0) [DEBUG]
Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly
Debug it a bit, and let us know. ;-) Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: After researching this a bit more: THIS DOES NOT WORK: fileSet directory${basedir}/src/main/resources/deploy/directory outputDirectory//outputDirectory filteredtrue/filtered includes include**/*.*/include /includes /fileSet /fileSets THIS DOES WORK: files file source${basedir}/src/main/resources/deploy/deploy.sh.txt/source filteredtrue/filtered /file /files Why do files respect the filtering, but filesets do not? On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: So has anyone out there ever gotten any filter example to work with assemblies? On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: I don't really have an answer for you. I'm not a big user of assembly plugin. Perhaps someone else who uses assembly + filters will respond. It is also possible that you've found a bug. Make a small test case and post it in JIRA if you're reasonably convinced its a bug. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: Is there something I am missing to just filter resources for an assembly? I can filter just fine for my modules (wars), but not creating an assembly. On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: OK, I have the following filter and resources attribultes in my master pom.xml: filters filter${basedir}/src/main/filters/filter.properties/filter /filters resources resource directory${basedir}/src/main/resources/directory filteringtrue/filtering /resource /resources /build Then the filter.properties has: filter.application.name=DAP filter.application.version=1.0.0.9 Then I have these 2 lines and nothing is filtered: #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version }/logging- ${project.version}.ear -deploymentname LoggingService -bindAllWebApps #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${ filter.application.version }/logging-${filter.application.version} .ear -deploymentname LoggingService -bindAllWebApps On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote: Apparently the filters parameter is readonly in the mojo: https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java The default value is ${project.build.filters} which means the assembly plugin inherits its filters from the build section. Wayne On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote: I want to filter the resources that I am adding to my assembly, but I get a read-only parameter error. plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-1/version configuration filters filtersrc/main/filters/filter.properties/filter /filters descriptors descriptorsrc/main/resources/assembly- descriptor.xml/descriptor /descriptors /configuration /plugin error: -- [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for project: null:wagon-providers:pom:1.0-alpha-6 from the repository. [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0.4 for project: null:maven-reporting-api:jar: 2.0.4 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project: org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository. [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime (selected for runtime) [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime(removed - nearer found: 2.0.4)