Hi Agus, Agustín Gañán schrieb: > 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]:
IIRC you might need to update the Felix Web Console to the latest SNAPSHOT for this to work. If you don't need the latest feature of the sling plugin, you might want to use version 2.0.2-incubator. This should work flawlessly. On the other hand, I think the plugin should better cope with the situation, that the web console might not provide, what is required. Carsten, WDYT ? Regards Felix > > > 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] > ------------------------------------------------------------------------ >
