You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "AdamDanischewski (via GitHub)" <gi...@apache.org> on 2023/08/05 17:00:41 UTC

[I] Documentation for Log4j Plugin Cache Transformer (logging-log4j-transform)

AdamDanischewski opened a new issue, #54:
URL: https://github.com/apache/logging-log4j-transform/issues/54

   I tried using the example for Log4j Plugin Cache Transformer example as listed in the adoc and also using examples found on the transformers official documentation.  Neither made mention of a need to supply id/phase to the execution section, without it I received errors. 
   
   ```
   			<plugin>
   				<groupId>org.apache.maven.plugins</groupId>
   				<artifactId>maven-shade-plugin</artifactId>
   				<dependencies>
   					<dependency>
   						<groupId>org.apache.logging.log4j</groupId>
   						<artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId>
   						<version>0.1.0</version>
   					</dependency>
   				</dependencies>
   				<executions>
   					<execution>
   						<id>shade-jar-with-dependencies</id>
   						<phase>package</phase>
   						<goals>
   							<goal>shade</goal>
   						</goals>
   						<configuration>
   							<transformers>
   								<transformer implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" />
   								<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
   								<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
   									<manifestEntries>
   										<Multi-Release>true</Multi-Release>
   									</manifestEntries>
   								</transformer>
   							</transformers>
   						</configuration>
   					</execution>
   				</executions>
   			</plugin>
   
   ```
   Note: 
   < id >shade-jar-with-dependencies< /id >
   	 < phase >package< /phase >
   
   in the execution section. 
   
   Without it I get an error message on **mvn package**, like: 
   `[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.4.1:shade (default) on project demo: Unable to parse configuration of mojo org.apache.maven.plugins:maven-shade-plugin:3.4.1:shade for parameter resource: Cannot find 'resource' in class org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer -> [Help 1]`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Documentation for Log4j Plugin Cache Transformer (logging-log4j-transform)

Posted by "luckydonald (via GitHub)" <gi...@apache.org>.
luckydonald commented on issue #54:
URL: https://github.com/apache/logging-log4j-transform/issues/54#issuecomment-1679117148

   In case you're still stuck, the `mavel-shade-plugin` should be indeed version `3.4.1`, version `3.2.1` fails.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Documentation for Log4j Plugin Cache Transformer [logging-log4j-transform]

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy commented on issue #54:
URL: https://github.com/apache/logging-log4j-transform/issues/54#issuecomment-1746280914

   @AdamDanischewski, thanks so much, fixed the docs. Note that we now have a website: https://logging.apache.org/log4j/transform :rocket:


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Documentation for Log4j Plugin Cache Transformer [logging-log4j-transform]

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy closed issue #54: Documentation for Log4j Plugin Cache Transformer
URL: https://github.com/apache/logging-log4j-transform/issues/54


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org