Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing JAR with compiled Java classes for engines #838

Open
OpenPj opened this issue Jul 17, 2023 · 0 comments
Open

Missing JAR with compiled Java classes for engines #838

OpenPj opened this issue Jul 17, 2023 · 0 comments

Comments

@OpenPj
Copy link

OpenPj commented Jul 17, 2023

It seems that if I want to implement my own T-Engine creating my own transformers and extractors there is no way to eventually reuse the abstract classes provided by Alfresco.

The reason for that is because there is no JAR dependencies available in the Alfresco Maven repo including compiled classes for all the current supported engines (aio, tika, libreoffice, imagemagik, misc and pdf-renderer).

If for example I want to create a new transformer based on Tika I don't have the availability of the class AbstractTikaMetadataExtractorEmbeddor. Looking at the Maven repo for the alfresco-transform-tika I see the tests-jar, sources but inside the jar dep there is no compiled code but the entire SpringBoot application.

Adding a new execution for the Maven JAR plugin can solve the problem creating a new dependency for extension purpose, such as the following snippet:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <id>jar-for-tests</id>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>jar-for-creating-extensions</id>
                        <goals>
		                    <goal>jar</goal>
		                </goals>
		                <phase>package</phase>
		                <configuration>
		                    <classifier>extensions</classifier>
		                </configuration>
                    </execution>
                </executions>
            </plugin>
OpenPj added a commit to OpenPj/alfresco-transform-core that referenced this issue Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant