cmrockwell commented on a change in pull request #51: SAML2 Service Provider Pull Request URL: https://github.com/apache/sling-whiteboard/pull/51#discussion_r405741387
########## File path: saml-handler/pom.xml ########## @@ -0,0 +1,378 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor + license agreements. See the NOTICE file distributed with this work for additional + information regarding copyright ownership. The ASF licenses this file to + you under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required + by applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS + OF ANY KIND, either express or implied. See the License for the specific + language governing permissions and limitations under the License. --> +<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"> + <parent> + <groupId>org.apache.sling</groupId> + <artifactId>sling</artifactId> + <version>37</version> + <relativePath /> + </parent> + + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.sling.auth</groupId> + <artifactId>saml2</artifactId> + <version>0.1.0-SNAPSHOT</version> + <name>SAML2 Service Provider</name> + + <properties> + <opensaml.version>3.4.3</opensaml.version> + <sling.host>localhost</sling.host> + <sling.port>8080</sling.port> + <sling.user>admin</sling.user> + <sling.password>admin</sling.password> + </properties> + + <packaging>bundle</packaging> + + <build> + <plugins> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <version>3.5.0</version> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-Activator>org.apache.sling.auth.saml2.Activator</Bundle-Activator> + <Embed-Dependency>*;scope=compile|runtime;</Embed-Dependency> + <Embed-Transitive>true</Embed-Transitive> + <Embed-Directory>target/dependency</Embed-Directory> + <Embed-StripGroup>true</Embed-StripGroup> + <Import-Package> + !sun.misc;resolution:=optional, + !com.sun.msv.*;resolution:=optional, + !com.sun.jdmk.comm;resolution:=optional, + sun.io.*;resolution:=optional, + com.beust.jcommander*;resolution:=optional, + com.google.appengine.api.*;resolution:=optional, + com.google.apphosting.api.*;resolution:=optional, + com.google.appengine.repackaged.*;resolution:=optional, + org.apache.log.*;resolution:=optional, + org.apache.oro.text.perl.*;resolution:=optional, + antlr.*;resolution:=optional, + org.apache.tools.ant.*;resolution:=optional, + junit.framework.*;resolution:=optional, + org.dom4j.*;resolution:=optional, + org.jdom.*;resolution:=optional, + org.bouncycastle.*;resolution:=optional, + com.sun.org.apache.xerces.internal.*;resolution:=optional, + *</Import-Package> + <_noee>true</_noee> + </instructions> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.sling</groupId> + <artifactId>maven-sling-plugin</artifactId> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>8</source> + <target>8</target> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.6</version> + <configuration> + <archive> + <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> + <manifestEntries> Review comment: I tried taking this suggestion using bnd-maven-plugin without maven-jar-plugin. The doc https://github.com/bndtools/bnd/tree/master/maven/bnd-maven-plugin suggest it is typical to use maven-jar-plugin. I tried removing it but could not make it result in a OSGI bundle. If this is important please provide a little bit more detail. Thanks ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services