赞
踩
- <?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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>com.headwire.cqblueprints</groupId>
- <artifactId>parent</artifactId>
- <version>5.4.0-SNAPSHOT</version>
- </parent>
- <artifactId>cqblueprints-examples-osgi-bundle</artifactId>
- <packaging>bundle</packaging>
- ...
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>2.3.5</version>
- <extensions>true</extensions>
- </plugin>
- ...
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- ...
- </plugin>
- </plugins>
- </build>
- ...
- </project>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Bundle-Activator>com.headwire.cqblueprints.examples.osgi.Activator</Bundle-Activator>
- <Private-Package>com.headwire.cqblueprints.examples.osgi</Private-Package>
- <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
- <Embed-Directory>OSGI-INF/lib</Embed-Directory>
- <Embed-Transitive>true</Embed-Transitive>
- <Import-Package>!org.slf4j.impl,*</Import-Package>
- </instructions>
- </configuration>
- </plugin>
- <profiles>
- <profile>
- <id>auto-deploy</id>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.sling</groupId>
- <artifactId>maven-sling-plugin</artifactId>
- <version>2.0.4-incubator</version>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.sling</groupId>
- <artifactId>maven-sling-plugin</artifactId>
- <executions>
- <execution>
- <id>deploy-to-cq</id>
- <phase>install</phase>
- <goals>
- <goal>install</goal>
- </goals>
- <configuration>
- <slingUrl>${crx.url}/system/console/install</slingUrl>
- <user>${crx.user}</user>
- <password>${crx.password}</password>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- <properties>
- <crx.url>http://localhost:4502</crx.url>
- <crx.user>admin</crx.user>
- <crx.password>admin</crx.password>
- </properties>
- <?xml version="1.0" encoding="UTF-8"?>
- <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
- ...
- <profiles>
- ...
- <profile>
- <id>local-crx-settings</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <crx.url>http://localhost</crx.url>
- </properties>
- </profile>
- </profiles>
- </settings>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。