composum-nodes-commons-bundle
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.composum.nodes</groupId> <artifactId>composum-nodes-commons-bundle</artifactId> <version>4.1.3</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.composum.nodes</groupId> <artifactId>composum-nodes-package</artifactId> <version>4.1.3</version> </parent> <artifactId>composum-nodes-commons-bundle</artifactId> <packaging>bundle</packaging> <name>Composum Nodes API (Commons) Bundle</name> <description>general components and objects to use the Sling API - no initial content</description> <properties> <bundle.name>com.composum.nodes.commons</bundle.name> <source.java>${project.basedir}/../../commons/src/main/java</source.java> <source.resources>${project.basedir}/../../commons/src/main/resources</source.resources> </properties> <build> <sourceDirectory>${source.java}</sourceDirectory> <resources> <resource> <directory>${source.resources}</directory> <includes> <include>com/composum/**</include> <include>slingconsole/**</include> <include>META-INF/**</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compileSourceRoots>${source.java}</compileSourceRoots> </configuration> </plugin> <!-- --> <plugin> <groupId>pl.project13.maven</groupId> <artifactId>git-commit-id-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.sling</groupId> <artifactId>sling-maven-plugin</artifactId> <executions> <execution> <id>generate-adapter-metadata</id> <phase>process-classes</phase> <goals> <goal>generate-adapter-metadata</goal> </goals> </execution> </executions> </plugin> <!-- FIXME why do I need to exclude junit and why is org.apache.sling.api.resource neccessary? --> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <exportScr>true</exportScr> <instructions> <_dsannotations>*</_dsannotations> <_metatypeannotations>*</_metatypeannotations> <Bundle-Category>${bundle.category}</Bundle-Category> <Bundle-SymbolicName>${bundle.name}</Bundle-SymbolicName> <Include-Resource> {maven-resources} </Include-Resource> <Import-Package> org.apache.sling.event.jobs.consumer.*;version="[1.1,3)", org.apache.sling.event.jobs.*;version="[1.3,3)", groovy.*;version="[2.2,4]", org.codehaus.groovy.*;version="[2.2,4]", org.apache.sling.api.resource.*;version="[2.10,3)", !sun.*, !junit.*, * </Import-Package> <Export-Package> !com.composum.sling.core.*.impl.*, com.composum.sling.clientlibs.*, com.composum.sling.core.*, com.composum.sling.cpnl.*, com.google.gson.* </Export-Package> <Embed-Dependency> *;scope=compile|runtime </Embed-Dependency> <Sling-Initial-Content> </Sling-Initial-Content> </instructions> </configuration> </plugin> <plugin> <groupId>org.apache.sling</groupId> <artifactId>slingfeature-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <jarStartOrder>20</jarStartOrder> </configuration> <executions> <execution> <id>features</id> <phase>package</phase> <goals> <goal>include-artifact</goal> <goal>attach-features</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <id>generateTldTod</id> <phase>prepare-package</phase> <goals> <goal>java</goal> </goals> <configuration> <includePluginDependencies>true</includePluginDependencies> <includeProjectDependencies>false</includeProjectDependencies> <mainClass>com.sun.tlddoc.TLDDoc</mainClass> <arguments> <argument>-doctitle</argument> <argument>Composum Nodes Taglib</argument> <argument>-windowtitle</argument> <argument>Composum Nodes Taglib</argument> <argument>-d</argument> <argument>${project.build.directory}/tlddoc</argument> <argument>${source.resources}/META-INF/cpnl.tld</argument> </arguments> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>taglibrarydoc</groupId> <artifactId>tlddoc</artifactId> <version>1.3</version> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <!-- YUICompressor embedded(!) --> <!-- https://mvnrepository.com/artifact/com.yahoo.platform.yui/yuicompressor --> <dependency> <groupId>com.yahoo.platform.yui</groupId> <artifactId>yuicompressor</artifactId> <version>2.4.8</version> </dependency> <!-- OSGi, Felix --> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>osgi.cmpn</artifactId> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.annotation</artifactId> </dependency> <!-- JCR API, Jackrabbit --> <dependency> <groupId>javax.jcr</groupId> <artifactId>jcr</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-api</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-jcr-commons</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-core</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit.vault</groupId> <artifactId>org.apache.jackrabbit.vault</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-atinject_1.0_spec</artifactId> </dependency> <!-- Apache Sling --> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.api</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.scripting.jsp</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.scripting.jsp.taglib</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.xss</artifactId> <!-- This is an evil JAR with several old versions of libraries as embedded dependencies that aren't exported and can conflict with your code. "Optional" at least means that that doesn't conflict with artefacts using a bundle that uses the sling.xss bundle. --> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.api</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.base</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.resource</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.resourceresolver</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.adapter</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.commons.classloader</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.commons.threads</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.commons.osgi</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.event</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.discovery.api</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.servlets.post</artifactId> </dependency> <!-- annotation dependencies (no runtime artifacts) --> <dependency> <groupId>org.apache.sling</groupId> <artifactId>adapter-annotations</artifactId> </dependency> <!-- JSON --> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> </dependency> <!-- Groovy --> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy</artifactId> <optional>true</optional> </dependency> <!-- Apache Commons --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> </dependency> <!-- HTTP --> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> </dependency> <!-- Java Annotations --> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> </dependency> <!-- Logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> </dependency> <!-- Test --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-core</artifactId> </dependency> <dependency> <groupId>org.jmock</groupId> <artifactId>jmock-junit4</artifactId> </dependency> <dependency> <groupId>org.easymock</groupId> <artifactId>easymock</artifactId> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> </dependency> </dependencies> <profiles> <profile> <id>installBundle</id> </profile> <profile> <id>uploadBundle</id> </profile> </profiles> </project>