You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sirona.apache.org by ol...@apache.org on 2014/02/20 02:35:39 UTC

svn commit: r1570036 - /incubator/sirona/trunk/server/store/cassandra/pom.xml

Author: olamy
Date: Thu Feb 20 01:35:39 2014
New Revision: 1570036

URL: http://svn.apache.org/r1570036
Log:
add a convenient sirona cassandra shaded jar, if we want to use it directly in javaagent

Modified:
    incubator/sirona/trunk/server/store/cassandra/pom.xml

Modified: incubator/sirona/trunk/server/store/cassandra/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/server/store/cassandra/pom.xml?rev=1570036&r1=1570035&r2=1570036&view=diff
==============================================================================
--- incubator/sirona/trunk/server/store/cassandra/pom.xml (original)
+++ incubator/sirona/trunk/server/store/cassandra/pom.xml Thu Feb 20 01:35:39 2014
@@ -70,4 +70,47 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <version>2.1</version>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <createSourcesJar>true</createSourcesJar>
+              <shadedArtifactAttached>true</shadedArtifactAttached>
+              <shadedClassifierName>shaded</shadedClassifierName>
+              <relocations>
+                <relocation>
+                  <pattern>com.google</pattern>
+                  <shadedPattern>org.apache.sirona.google</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>org.apache</pattern>
+                  <shadedPattern>org.apache.sirona.apache</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>me.prettyprint</pattern>
+                  <shadedPattern>org.apache.sirona.me.prettyprint</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>com.eaio</pattern>
+                  <shadedPattern>org.apache.sirona.com.eaio</shadedPattern>
+                </relocation>
+
+              </relocations>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>



Re: svn commit: r1570036 - /incubator/sirona/trunk/server/store/cassandra/pom.xml

Posted by Romain Manni-Bucau <rm...@gmail.com>.
yep, never said to remove it ;)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-20 11:53 GMT+01:00 Olivier Lamy <ol...@apache.org>:
> On 20 February 2014 17:11, Romain Manni-Bucau <rm...@gmail.com> wrote:
>> We can keep it while using a classifier but just to mention the javaagent
>> supports a lib parameter designed for it (pointing on an extension folder)
>
> Yes I know but this mean adding manually a lot of dependencies too.
> (can be a pain).
> So that pretty easy for users: just configure to run the agent and
> drop this shaded jar in the lib library (very convenient I believe :-)
> )
> And can prevent adding in the root classloader some jars/classes which
> can be used in apps.
> Make sense?
> I'm testing that with a tomcat instance to populate a bit of data to
> start working on the ui to display those path tracking datas.
> Anyway still some issues with classloading.
>
>> ---------- Message transféré ----------
>> De : <ol...@apache.org>
>> Date : 20 févr. 2014 02:36
>> Objet : svn commit: r1570036 -
>> /incubator/sirona/trunk/server/store/cassandra/pom.xml
>> À : <co...@sirona.incubator.apache.org>
>>
>> Author: olamy
>> Date: Thu Feb 20 01:35:39 2014
>> New Revision: 1570036
>>
>> URL: http://svn.apache.org/r1570036
>> Log:
>> add a convenient sirona cassandra shaded jar, if we want to use it directly
>> in javaagent
>>
>> Modified:
>>     incubator/sirona/trunk/server/store/cassandra/pom.xml
>>
>> Modified: incubator/sirona/trunk/server/store/cassandra/pom.xml
>> URL:
>> http://svn.apache.org/viewvc/incubator/sirona/trunk/server/store/cassandra/pom.xml?rev=1570036&r1=1570035&r2=1570036&view=diff
>> ==============================================================================
>> --- incubator/sirona/trunk/server/store/cassandra/pom.xml (original)
>> +++ incubator/sirona/trunk/server/store/cassandra/pom.xml Thu Feb 20
>> 01:35:39 2014
>> @@ -70,4 +70,47 @@
>>        <scope>test</scope>
>>      </dependency>
>>    </dependencies>
>> +
>> +  <build>
>> +    <plugins>
>> +      <plugin>
>> +        <groupId>org.apache.maven.plugins</groupId>
>> +        <artifactId>maven-shade-plugin</artifactId>
>> +        <version>2.1</version>
>> +        <executions>
>> +          <execution>
>> +            <phase>package</phase>
>> +            <goals>
>> +              <goal>shade</goal>
>> +            </goals>
>> +            <configuration>
>> +              <createSourcesJar>true</createSourcesJar>
>> +              <shadedArtifactAttached>true</shadedArtifactAttached>
>> +              <shadedClassifierName>shaded</shadedClassifierName>
>> +              <relocations>
>> +                <relocation>
>> +                  <pattern>com.google</pattern>
>> +                  <shadedPattern>org.apache.sirona.google</shadedPattern>
>> +                </relocation>
>> +                <relocation>
>> +                  <pattern>org.apache</pattern>
>> +                  <shadedPattern>org.apache.sirona.apache</shadedPattern>
>> +                </relocation>
>> +                <relocation>
>> +                  <pattern>me.prettyprint</pattern>
>> +
>>  <shadedPattern>org.apache.sirona.me.prettyprint</shadedPattern>
>> +                </relocation>
>> +                <relocation>
>> +                  <pattern>com.eaio</pattern>
>> +                  <shadedPattern>org.apache.sirona.com.eaio</shadedPattern>
>> +                </relocation>
>> +
>> +              </relocations>
>> +            </configuration>
>> +          </execution>
>> +        </executions>
>> +      </plugin>
>> +    </plugins>
>> +  </build>
>> +
>>  </project>
>
>
>
> --
> Olivier Lamy
> Ecetera: http://ecetera.com.au
> http://twitter.com/olamy | http://linkedin.com/in/olamy

Re: svn commit: r1570036 - /incubator/sirona/trunk/server/store/cassandra/pom.xml

Posted by Olivier Lamy <ol...@apache.org>.
On 20 February 2014 17:11, Romain Manni-Bucau <rm...@gmail.com> wrote:
> We can keep it while using a classifier but just to mention the javaagent
> supports a lib parameter designed for it (pointing on an extension folder)

Yes I know but this mean adding manually a lot of dependencies too.
(can be a pain).
So that pretty easy for users: just configure to run the agent and
drop this shaded jar in the lib library (very convenient I believe :-)
)
And can prevent adding in the root classloader some jars/classes which
can be used in apps.
Make sense?
I'm testing that with a tomcat instance to populate a bit of data to
start working on the ui to display those path tracking datas.
Anyway still some issues with classloading.

> ---------- Message transféré ----------
> De : <ol...@apache.org>
> Date : 20 févr. 2014 02:36
> Objet : svn commit: r1570036 -
> /incubator/sirona/trunk/server/store/cassandra/pom.xml
> À : <co...@sirona.incubator.apache.org>
>
> Author: olamy
> Date: Thu Feb 20 01:35:39 2014
> New Revision: 1570036
>
> URL: http://svn.apache.org/r1570036
> Log:
> add a convenient sirona cassandra shaded jar, if we want to use it directly
> in javaagent
>
> Modified:
>     incubator/sirona/trunk/server/store/cassandra/pom.xml
>
> Modified: incubator/sirona/trunk/server/store/cassandra/pom.xml
> URL:
> http://svn.apache.org/viewvc/incubator/sirona/trunk/server/store/cassandra/pom.xml?rev=1570036&r1=1570035&r2=1570036&view=diff
> ==============================================================================
> --- incubator/sirona/trunk/server/store/cassandra/pom.xml (original)
> +++ incubator/sirona/trunk/server/store/cassandra/pom.xml Thu Feb 20
> 01:35:39 2014
> @@ -70,4 +70,47 @@
>        <scope>test</scope>
>      </dependency>
>    </dependencies>
> +
> +  <build>
> +    <plugins>
> +      <plugin>
> +        <groupId>org.apache.maven.plugins</groupId>
> +        <artifactId>maven-shade-plugin</artifactId>
> +        <version>2.1</version>
> +        <executions>
> +          <execution>
> +            <phase>package</phase>
> +            <goals>
> +              <goal>shade</goal>
> +            </goals>
> +            <configuration>
> +              <createSourcesJar>true</createSourcesJar>
> +              <shadedArtifactAttached>true</shadedArtifactAttached>
> +              <shadedClassifierName>shaded</shadedClassifierName>
> +              <relocations>
> +                <relocation>
> +                  <pattern>com.google</pattern>
> +                  <shadedPattern>org.apache.sirona.google</shadedPattern>
> +                </relocation>
> +                <relocation>
> +                  <pattern>org.apache</pattern>
> +                  <shadedPattern>org.apache.sirona.apache</shadedPattern>
> +                </relocation>
> +                <relocation>
> +                  <pattern>me.prettyprint</pattern>
> +
>  <shadedPattern>org.apache.sirona.me.prettyprint</shadedPattern>
> +                </relocation>
> +                <relocation>
> +                  <pattern>com.eaio</pattern>
> +                  <shadedPattern>org.apache.sirona.com.eaio</shadedPattern>
> +                </relocation>
> +
> +              </relocations>
> +            </configuration>
> +          </execution>
> +        </executions>
> +      </plugin>
> +    </plugins>
> +  </build>
> +
>  </project>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

Fwd: svn commit: r1570036 - /incubator/sirona/trunk/server/store/cassandra/pom.xml

Posted by Romain Manni-Bucau <rm...@gmail.com>.
We can keep it while using a classifier but just to mention the javaagent
supports a lib parameter designed for it (pointing on an extension folder)
---------- Message transféré ----------
De : <ol...@apache.org>
Date : 20 févr. 2014 02:36
Objet : svn commit: r1570036 -
/incubator/sirona/trunk/server/store/cassandra/pom.xml
À : <co...@sirona.incubator.apache.org>

Author: olamy
Date: Thu Feb 20 01:35:39 2014
New Revision: 1570036

URL: http://svn.apache.org/r1570036
Log:
add a convenient sirona cassandra shaded jar, if we want to use it directly
in javaagent

Modified:
    incubator/sirona/trunk/server/store/cassandra/pom.xml

Modified: incubator/sirona/trunk/server/store/cassandra/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/sirona/trunk/server/store/cassandra/pom.xml?rev=1570036&r1=1570035&r2=1570036&view=diff
==============================================================================
--- incubator/sirona/trunk/server/store/cassandra/pom.xml (original)
+++ incubator/sirona/trunk/server/store/cassandra/pom.xml Thu Feb 20
01:35:39 2014
@@ -70,4 +70,47 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <version>2.1</version>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <createSourcesJar>true</createSourcesJar>
+              <shadedArtifactAttached>true</shadedArtifactAttached>
+              <shadedClassifierName>shaded</shadedClassifierName>
+              <relocations>
+                <relocation>
+                  <pattern>com.google</pattern>
+                  <shadedPattern>org.apache.sirona.google</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>org.apache</pattern>
+                  <shadedPattern>org.apache.sirona.apache</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>me.prettyprint</pattern>
+
 <shadedPattern>org.apache.sirona.me.prettyprint</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>com.eaio</pattern>
+                  <shadedPattern>org.apache.sirona.com.eaio</shadedPattern>
+                </relocation>
+
+              </relocations>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>