Skip to content

Instantly share code, notes, and snippets.

<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
<version>...</version>
<executions>
<execution>
<goals><goal>prepare</goal></goals> <!-- granted, this is a questionable goal name -->
</execution>
</executions>
<configuration>
Diagnostic Report (1.9.0011.0):
-----------------------------------------
WGA Data-->
Validation Status: Invalid Product Key
Validation Code: 8
Cached Validation Code: N/A
Windows Product Key: *****-*****-HFQ29-3KT4D-87CY8
Windows Product Key Hash: uzXPLz1rwtwSSYC1gfoXtRxnEhg=
Windows Product ID: 76487-011-1024437-22915
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="Region 1" http://localhost:8888/test/regions/region1
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="Region 2" http://localhost:8888/test/regions/region2
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="Region 3" http://localhost:8888/test/regions/region3
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="Region 4" http://localhost:8888/test/regions/region4
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="User 1" http://localhost:8888/test/users/user1
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="User 2" http://localhost:8888/test/users/user2
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="User 3" http://localhost:8888/test/users/user3
$ curl -u admin:admin -F"jcr:mixinTypes=mix:referenceable" -Ftitle="User 4" http://localhost:8888/test/users/user4
diff --git a/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/bundlelist/BaseBundleList.java b/maven/mave
index cd838c8..43b78fc 100644
--- a/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/bundlelist/BaseBundleList.java
+++ b/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/bundlelist/BaseBundleList.java
@@ -85,6 +85,7 @@ public abstract class BaseBundleList {
}
StartLevel sl = new StartLevel();
+ getStartLevels().add(sl);
sl.setLevel(startLevel);
@justinedelson
justinedelson / sample launchpad war pom
Created April 12, 2010 14:55
This is a Maven pom using the Sling Launchpad plugin. It creates a WAR file which includes Sling and the Felix Shell bundle.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
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
private void clearAcl(AccessControlList acl) {
acl.accessControlEntries.each {
acl.removeAccessControlEntry it
}
}
private AccessControlList findAcl(String path) {
def acl = null
getSession().getAccessControlManager().getPolicies(path).each { AccessControlPolicy policy ->
@Component(immediate = true)
public class Configurer {
@Reference
private ConfigurationAdmin cfgAdmin;
protected void activate(ComponentContext ctx) throws Exception {
Configuration cfg = cfgAdmin.getConfiguration(
"org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl", null);
Dictionary props = new Hashtable();
$ git clone git://github.com/justinedelson/jruby-osgi-testing.git
$ cd jruby-osgi-testing/tests
$ mvn -Djruby.version=1.6.0.RC1 clean test
blah blah blah... all tests pass
$ mvn -Djruby.version=1.5.6 clean test
blah blah blah... all tests fail
$ git clone git://github.com/justinedelson/jruby-osgi-testing.git
$ cd jruby-osgi-testing/tests
$ mvn -Djruby.version=1.6.0.RC1 clean test
blah blah blah... all tests pass
$ mvn -Djruby.version=1.5.6 clean test
blah blah blah... all tests fail
$ git clone git://github.com/justinedelson/jruby-osgi-testing.git
$ cd jruby-osgi-testing/tests
$ mvn -Djruby.version=1.6.0.RC1 clean install
blah blah blah... the service implementation tests fail due to JRUBY-5414
apply patch to JRUBY-5414 and rebuild...
$ cd $JRUBY_SRC
$ ant jar-complete
Then rerun tests