Hi
My project is based on what the Bundle Initial Content Sling Maven Archetype
creates but added a Sling Model to it.
So, it does not have a META-INF/MANIFEST.MF and running it from the command
line there are not errors or warnings reported.
This is the build section in the POM:
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<version>3.2.0</version>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<obrRepository>NONE</obrRepository>
<!-- Export SCR metadata to classpath to have them available in
unit tests -->
<exportScr>true</exportScr>
<instructions>
<Bundle-Category>sling</Bundle-Category>
<Bundle-DocURL>
http://sling.apache.org
</Bundle-DocURL>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<!-- Stop bnd complaining about unused Private-Package
instructions -->
<Private-Package></Private-Package>
<Sling-Nodetypes>
SLING-INF/nodetypes/nodetypes.cnd
</Sling-Nodetypes>
<Sling-Initial-Content>
SLING-INF/scripts;overwrite:=true;uninstall:=true;path:=/apps/my/node,
SLING-INF/content;overwrite:=true;uninstall:=true;path:=/content,
SLING-INF/apps/testBundleApps;overwrite:=true;uninstall:=true;path:=/apps/testBundleApps
</Sling-Initial-Content>
<Sling-Model-Packages>org.apache.sling.ui.testModelUI</Sling-Model-Packages>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<slingUrl>http://localhost:8080/system/console</slingUrl>
<user>admin</user>
<password>admin</password>
</configuration>
</plugin>
</plugins>
</build>
Cheers - Andy Schaefer
> On Nov 28, 2017, at 3:19 AM, Robert Munteanu <[email protected]> wrote:
>
> On Fri, 2017-11-24 at 09:42 -0800, Andreas Schaefer wrote:
>> On another note I created a OSGi Bundle with Sling-Initial-Content
>> and it deploys
>> and works just fine. That said using the latest Eclipse with the
>> Sling Plugin trying
>> to deploy it fails as it tells me that I am missing a META-
>> INF/MANIFEST.MF.
>>
>> !ENTRY org.apache.sling.ide.eclipse-core 2 0 2017-11-24 09:34:33.327
>> !MESSAGE Project P/sling-initial-content-bundle does not have a META-
>> INF/MANIFEST.MF (yet) - not publishing this time
>
> Do you have a META-INF/MANIFEST.MF file under /target/classes? If not,
> do you have any error/warning markers in your pom.xml file?
>
>>
>> Any way to make this deploy?
>>
>> Am I correct assuming that the Sling Plugin on Eclipse should deploy
>> a module
>> automatically or does it require a “Publish” on the Server?
>
> Yes, it should deploy it automatically.
>
> Robert