Hi all,
I'm working with the revision 734769 and I've detected an error when I try
to install a bunlde from maven using the maven-sling-plugin.
This is my plug-in config in the pom.xml [1]
The bundle initializes content in the repository and this is the bundle's
config [2].
And this is the error [3]:
Thank you all
Agus
[1]: <profile>
<id>autoInstallBundle</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
<executions>
<execution>
<id>install-bundle</id>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
<configuration>
<slingUrl>
http://localhost:8888/system/console/install
</slingUrl>
<user>admin</user>
<password>admin</password>
</configuration>
</plugin>
</plugins>
</build>
</profile>
[2]: <plugins>
<!-- Buidls the OSGi bundle to install in SLING -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Sling-Initial-Content>
SLING-INF/content
</Sling-Initial-Content>
</instructions>
</configuration>
</plugin>
</plugins>
[3]:
[INFO] [sling:install {execution: install-bundle}]
[INFO] Installing Bundle my-project-ui(my-project-ui-1.1.1-SNAPSHOT.jar) to
http://localhost:8888/system/con
sole/bundles
[INFO] Bundle installed
[INFO] Trying to configure file system provider...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Reading configuration from
http://localhost:8888/system/console/bundles/c
onfigMgr/(service.factoryPid=org.apache.sling.fsprovider.FsResourceProvider).jso
n failed, cause: A JSONArray text must start with '[' at character 0 of
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Thu Jan 15 19:13:43 CET 2009
[INFO] Final Memory: 17M/34M
[INFO]
------------------------------------------------------------------------