buildr4osgi 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/LICENSE +176 -0
  2. data/NOTICE +6 -0
  3. data/README.rdoc +50 -0
  4. data/Rakefile +45 -0
  5. data/buildr4osgi.gemspec +40 -0
  6. data/lib/buildr4osgi/compile/compiler.rb +54 -0
  7. data/lib/buildr4osgi/compile/ecj-3.4.1.jar +0 -0
  8. data/lib/buildr4osgi/compile.rb +16 -0
  9. data/lib/buildr4osgi/eclipse/feature.rb +271 -0
  10. data/lib/buildr4osgi/eclipse/plugin.rb +22 -0
  11. data/lib/buildr4osgi/eclipse.rb +17 -0
  12. data/lib/buildr4osgi/nature/eclipse.rb +80 -0
  13. data/lib/buildr4osgi/nature/java.rb +32 -0
  14. data/lib/buildr4osgi/nature/nature.rb +156 -0
  15. data/lib/buildr4osgi/nature/osgi.rb +32 -0
  16. data/lib/buildr4osgi/nature/scala.rb +32 -0
  17. data/lib/buildr4osgi/nature.rb +23 -0
  18. data/lib/buildr4osgi/osgi/bundle.rb +275 -0
  19. data/lib/buildr4osgi/osgi/bundle_package.rb +80 -0
  20. data/lib/buildr4osgi/osgi/container.rb +140 -0
  21. data/lib/buildr4osgi/osgi/library_extension.rb +174 -0
  22. data/lib/buildr4osgi/osgi/packaging.rb +129 -0
  23. data/lib/buildr4osgi/osgi/project_extension.rb +324 -0
  24. data/lib/buildr4osgi/osgi/registry.rb +61 -0
  25. data/lib/buildr4osgi/osgi/resolving_strategies.rb +104 -0
  26. data/lib/buildr4osgi/osgi/version.rb +131 -0
  27. data/lib/buildr4osgi/osgi.rb +24 -0
  28. data/lib/buildr4osgi.rb +37 -0
  29. data/rakelib/checks.rake +57 -0
  30. data/rakelib/doc.rake +92 -0
  31. data/rakelib/jekylltask.rb +120 -0
  32. data/rakelib/package.rake +73 -0
  33. data/rakelib/release.rake +149 -0
  34. data/rakelib/rspec.rake +73 -0
  35. data/rakelib/setup.rake +54 -0
  36. data/rakelib/stage.rake +206 -0
  37. data/spec/compile/compiler_spec.rb +30 -0
  38. data/spec/eclipse/feature_spec.rb +295 -0
  39. data/spec/nature/eclipse_spec.rb +46 -0
  40. data/spec/nature/java_spec.rb +45 -0
  41. data/spec/nature/osgi_spec.rb +63 -0
  42. data/spec/nature/scala_spec.rb +45 -0
  43. data/spec/nature_spec.rb +144 -0
  44. data/spec/osgi/bundle_package_spec.rb +32 -0
  45. data/spec/osgi/bundle_spec.rb +202 -0
  46. data/spec/osgi/container_spec.rb +93 -0
  47. data/spec/osgi/library_extension_spec.rb +142 -0
  48. data/spec/osgi/packaging_spec.rb +340 -0
  49. data/spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/META-INF/ECLIPSEF.RSA +0 -0
  50. data/spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/META-INF/ECLIPSEF.SF +20 -0
  51. data/spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/META-INF/MANIFEST.MF +28 -0
  52. data/spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/META-INF/eclipse.inf +3 -0
  53. data/spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/about.html +28 -0
  54. data/spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/fragment.properties +12 -0
  55. data/spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/runtime_registry_compatibility.jar +0 -0
  56. data/spec/osgi/project_extension_spec.rb +662 -0
  57. data/spec/osgi/registry_spec.rb +50 -0
  58. data/spec/osgi/version_spec.rb +127 -0
  59. data/spec/spec_helpers.rb +85 -0
  60. data/spec/tmp/remote/eclipse/org.eclipse.debug.ui/3.4.1.v20080811_r341/org.eclipse.debug.ui-3.4.1.v20080811_r341.jar +0 -0
  61. data/spec/tmp/remote/eclipse/org.eclipse.debug.ui/3.4.1.v20080811_r341/org.eclipse.debug.ui-3.4.1.v20080811_r341.pom +82 -0
  62. data/spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8-sources.jar +0 -0
  63. data/spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8.jar +0 -0
  64. data/spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8.pom +30 -0
  65. data/spec/tmp/remote/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8-sources.jar +0 -0
  66. data/spec/tmp/remote/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar +0 -0
  67. data/spec/tmp/remote/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.pom +101 -0
  68. data/spec/tmp/remote/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8-sources.jar +0 -0
  69. data/spec/tmp/remote/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar +0 -0
  70. data/spec/tmp/remote/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.pom +56 -0
  71. metadata +142 -0
@@ -0,0 +1,50 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with this
3
+ # work for additional information regarding copyright ownership. The ASF
4
+ # licenses this file to you under the Apache License, Version 2.0 (the
5
+ # "License"); you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ # License for the specific language governing permissions and limitations under
14
+ # the License.
15
+
16
+ require File.join(File.dirname(__FILE__), '../spec_helpers')
17
+
18
+ describe OSGi::Registry do
19
+
20
+ it 'should be possible to set containers from the Buildr settings' do
21
+ pending "Doesn't work when using rake coverage"
22
+ yaml = {"osgi" => ({"containers" => ["myContainer"]})}
23
+ write 'home/.buildr/settings.yaml', yaml.to_yaml
24
+ define("foo").osgi.registry.containers.should == ["myContainer"]
25
+ end
26
+
27
+ it 'should be accessible from a project' do
28
+ define('foo').osgi.registry.should be_instance_of(OSGi::Registry)
29
+ end
30
+
31
+
32
+
33
+ it 'should be possible to set the containers from the OSGi environment variables' do
34
+ ENV['OSGi'] = "foo;bar"
35
+ define('foo').osgi.registry.containers.should == ["foo","bar"]
36
+ end
37
+
38
+ it 'should be possible to modify the containers in the registry before the resolved_instances method is called' do
39
+ foo = define('foo')
40
+ lambda {foo.osgi.registry.containers << "hello"}.should_not raise_error
41
+ lambda {foo.osgi.registry.containers = ["hello"]}.should_not raise_error
42
+ end
43
+
44
+ it 'should throw an exception when modifying the containers in the registry after the resolved_instances method is called' do
45
+ foo = define('foo')
46
+ foo.osgi.registry.resolved_containers
47
+ lambda {foo.osgi.registry.containers << "hello"}.should raise_error(TypeError)
48
+ lambda {foo.osgi.registry.containers = ["hello"]}.should raise_error(RuntimeError, /Cannot set containers, containers have been resolved already/)
49
+ end
50
+ end
@@ -0,0 +1,127 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with this
3
+ # work for additional information regarding copyright ownership. The ASF
4
+ # licenses this file to you under the Apache License, Version 2.0 (the
5
+ # "License"); you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ # License for the specific language governing permissions and limitations under
14
+ # the License.
15
+
16
+ require File.join(File.dirname(__FILE__), '../spec_helpers')
17
+
18
+ describe OSGi::Version do
19
+ it 'should initialize itself from a string' do
20
+ version = OSGi::Version.new("1.0.0.qualifier")
21
+ version.major.should eql("1")
22
+ version.minor.should eql("0")
23
+ version.tiny.should eql("0")
24
+ version.qualifier.should eql("qualifier")
25
+ end
26
+
27
+ it 'should accept versions without a qualifier' do
28
+ version = OSGi::Version.new("1.0.0")
29
+ version.major.should eql("1")
30
+ version.minor.should eql("0")
31
+ version.tiny.should eql("0")
32
+ version.qualifier.should be_nil
33
+ end
34
+
35
+ it 'should accept versions without a qualifier and a tiny digit' do
36
+ version = OSGi::Version.new("1.0")
37
+ version.major.should eql("1")
38
+ version.minor.should eql("0")
39
+ version.tiny.should be_nil
40
+ version.qualifier.should be_nil
41
+ end
42
+
43
+ it 'should accept versions without a qualifier, a minor and a tiny digit' do
44
+ version = OSGi::Version.new("1")
45
+ version.major.should eql("1")
46
+ version.minor.should be_nil
47
+ version.tiny.should be_nil
48
+ version.qualifier.should be_nil
49
+ end
50
+
51
+ it 'should raise an exception if no major digit is given' do
52
+ lambda { OSGi::Version.new(".0.0.qualifier") }.should raise_error(RuntimeError, /Invalid version:/)
53
+ end
54
+
55
+ it 'should raise an exception if no minor digit is given' do
56
+ lambda { OSGi::Version.new("1..0.qualifier") }.should raise_error(RuntimeError, /Invalid version:/)
57
+ end
58
+
59
+ it 'should raise an exception if no tiny digit is given' do
60
+ lambda { OSGi::Version.new("1.0..qualifier") }.should raise_error(RuntimeError, /Invalid version:/)
61
+ end
62
+
63
+ it 'should have a string representation' do
64
+ version = OSGi::Version.new("1.0.0.qualifier")
65
+ version.to_s.should eql("1.0.0.qualifier")
66
+ version.major = 2
67
+ version.to_s.should eql("2.0.0.qualifier")
68
+ end
69
+
70
+ it 'should compare with other versions' do
71
+ (OSGi::Version.new('1.0.0') < "2.0.0").should be_true
72
+ (OSGi::Version.new('1.9.9') > "2.0.0").should be_false
73
+ (OSGi::Version.new('1.54.112') < "2.2.0").should be_true
74
+ (OSGi::Version.new('1.0.3') > "1.0.2").should be_true
75
+ (OSGi::Version.new('2.3.4') == "2.3.4").should be_true
76
+ (OSGi::Version.new('2.3.4') <=> "2.3.4").should eql(0)
77
+ end
78
+
79
+ it 'should compare with nil' do
80
+ (OSGi::Version.new('1.0.0') <=> nil).should eql(1)
81
+ end
82
+
83
+ it 'should find if two versions are equal' do
84
+ (OSGi::Version.new('1.0.0.001-March') <=> "1.0.0.001-March").should == 0
85
+ end
86
+
87
+ it "should consider a version with no qualifier equals the same version with a qualifier" do
88
+ (OSGi::Version.new('2.5.0') == "2.5.0.v200806031605").should be_true
89
+ (OSGi::Version.new('2.5.0.v200806031605') == "2.5.0").should be_true
90
+ end
91
+ end
92
+
93
+ describe OSGi::VersionRange do
94
+
95
+ it 'should be able to parse version ranges' do
96
+ OSGi::VersionRange.parse("[1.0.0,2.0.0)").should be_instance_of(OSGi::VersionRange)
97
+ OSGi::VersionRange.parse("[1.0.0,2.0.0]").should be_instance_of(OSGi::VersionRange)
98
+ OSGi::VersionRange.parse("(1.0.0,2.0.0)").should be_instance_of(OSGi::VersionRange)
99
+ OSGi::VersionRange.parse("(1.0.0,2.0.0]").should be_instance_of(OSGi::VersionRange)
100
+ OSGi::VersionRange.parse("[1.0.02.0.0)").should be_false
101
+ OSGi::VersionRange.parse("[1.0.0,2.0.0").should be_false
102
+ OSGi::VersionRange.parse("1.0.0,2.0.0)").should be_false
103
+ OSGi::VersionRange.parse("[1.0,0,2.0.0)").should be_false
104
+ end
105
+
106
+ it 'should be able to tell if a version is in a range' do
107
+ range = OSGi::VersionRange.parse("[1.0.0,2.0.0)")
108
+ range.in_range("1.5.0.20080607").should be_true
109
+ range.in_range("2.0.0.20080607").should be_false
110
+ range.in_range("1.0.0.20080607").should be_true
111
+ range.in_range("0.9.0.20080607").should be_false
112
+ range = OSGi::VersionRange.parse("(1.0.0,2.0.0]")
113
+ range.in_range("2.0.0.20080607").should be_true
114
+ range.in_range("1.0.0.20080607").should be_false
115
+ end
116
+
117
+ it 'should have a String representation' do
118
+ range = OSGi::VersionRange.parse("[1.0.0,2.0.0)")
119
+ range.to_s.should eql("[1.0.0,2.0.0)")
120
+ r2 = OSGi::VersionRange.new
121
+ r2.min = OSGi::Version.new("1.0.0")
122
+ r2.max = OSGi::Version.new("2.0.0")
123
+ r2.min_inclusive = true
124
+ r2.to_s.should eql("[1.0.0,2.0.0)")
125
+ end
126
+
127
+ end
@@ -0,0 +1,85 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with this
3
+ # work for additional information regarding copyright ownership. The ASF
4
+ # licenses this file to you under the Apache License, Version 2.0 (the
5
+ # "License"); you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ # License for the specific language governing permissions and limitations under
14
+ # the License.
15
+
16
+ unless defined?(SpecHelpers)
17
+
18
+ module SandboxHook
19
+
20
+ def SandboxHook.included(spec_helpers)
21
+ # For testing we use the gem requirements specified on the buildr4osgi.gemspec
22
+ spec = Gem::Specification.load(File.expand_path('../buildr4osgi.gemspec', File.dirname(__FILE__)))
23
+ spec.dependencies.each { |dep| gem dep.name, dep.version_requirements.to_s }
24
+ # Make sure to load from these paths first, we don't want to load any
25
+ # code from Gem library.
26
+ $LOAD_PATH.unshift File.expand_path('../lib', File.dirname(__FILE__))
27
+ require 'buildr4osgi'
28
+ end
29
+ end
30
+
31
+ require File.join(File.dirname(__FILE__), "/../buildr/spec/spec_helpers.rb")
32
+
33
+ #Change the local Maven repository so that it isn't deleted everytime:
34
+ fake_local = Buildr::repositories.local
35
+ HELPERS_REPOSITORY = File.expand_path(File.join(File.dirname(__FILE__), "tmp", "remote"))
36
+ Buildr::repositories.local = HELPERS_REPOSITORY
37
+ slf4j = Buildr::group(%w{ slf4j-api slf4j-log4j12 jcl104-over-slf4j }, :under=>"org.slf4j", :version=>"1.5.8")
38
+ SLF4J = slf4j
39
+ DEBUG_UI = "eclipse:org.eclipse.debug.ui:jar:3.4.1.v20080811_r341"
40
+ Buildr::repositories.remote << "http://www.intalio.org/public/maven2"
41
+ artifact(DEBUG_UI).invoke # download it once!
42
+ for lib in SLF4J do
43
+ artifact(lib).invoke
44
+ artifact(artifact(lib).to_hash.merge(:classifier => "sources")).invoke
45
+ end
46
+ Buildr::repositories.local = fake_local
47
+ # Keep a default registry.
48
+ DEFAULT = Buildr::Nature::Registry.all unless defined?(DEFAULT)
49
+
50
+ module Buildr4OSGi::SpecHelpers
51
+
52
+ OSGi_REPOS = File.expand_path File.join(File.dirname(__FILE__), "..", "tmp", "osgi")
53
+
54
+ class << self
55
+
56
+ def included(config)
57
+ config.before(:each) {
58
+ remoteRepositoryForHelpers()
59
+ }
60
+ config.after(:all) {
61
+ FileUtils.rm_rf Buildr4OSGi::SpecHelpers::OSGi_REPOS
62
+ }
63
+ end
64
+ end
65
+
66
+ def createRepository(name)
67
+ repo = File.join(OSGi_REPOS, name)
68
+ mkpath repo
69
+ return repo
70
+ end
71
+
72
+ def remoteRepositoryForHelpers()
73
+ repositories.remote << "file://#{HELPERS_REPOSITORY}"
74
+ end
75
+
76
+
77
+ end
78
+
79
+ Spec::Runner.configure do |config|
80
+ config.include Buildr4OSGi
81
+
82
+
83
+ end
84
+
85
+ end
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated by PomWritr v.0.1.2 -->
3
+ <project>
4
+ <modelVersion>4.0.0</modelVersion>
5
+ <groupId>eclipse</groupId>
6
+ <artifactId>org.eclipse.debug.ui</artifactId>
7
+ <version>3.4.1.v20080811_r341</version>
8
+ <dependencies>
9
+ <dependency>
10
+ <groupId>eclipse</groupId>
11
+ <artifactId>org.eclipse.ui.editors</artifactId>
12
+ <version>3.4.0.v20080603-2000</version>
13
+ <type>osgi-bundle</type>
14
+ </dependency>
15
+ <dependency>
16
+ <groupId>eclipse</groupId>
17
+ <artifactId>org.eclipse.ui.workbench.texteditor</artifactId>
18
+ <version>3.4.1.r341_v20080827-1100</version>
19
+ <type>osgi-bundle</type>
20
+ </dependency>
21
+ <dependency>
22
+ <groupId>eclipse</groupId>
23
+ <artifactId>org.eclipse.ui.ide</artifactId>
24
+ <version>3.4.1.M20080903-2000</version>
25
+ <type>osgi-bundle</type>
26
+ </dependency>
27
+ <dependency>
28
+ <groupId>eclipse</groupId>
29
+ <artifactId>org.eclipse.ui.console</artifactId>
30
+ <version>3.3.0.v20080529-1300</version>
31
+ <type>osgi-bundle</type>
32
+ </dependency>
33
+ <dependency>
34
+ <groupId>eclipse</groupId>
35
+ <artifactId>org.eclipse.core.runtime</artifactId>
36
+ <version>3.4.0.v20080512</version>
37
+ <type>osgi-bundle</type>
38
+ </dependency>
39
+ <dependency>
40
+ <groupId>eclipse</groupId>
41
+ <artifactId>org.eclipse.debug.core</artifactId>
42
+ <version>3.4.0.v20080612</version>
43
+ <type>osgi-bundle</type>
44
+ </dependency>
45
+ <dependency>
46
+ <groupId>eclipse</groupId>
47
+ <artifactId>org.eclipse.ui</artifactId>
48
+ <version>3.4.1.M20080910-0800</version>
49
+ <type>osgi-bundle</type>
50
+ </dependency>
51
+ <dependency>
52
+ <groupId>eclipse</groupId>
53
+ <artifactId>org.eclipse.help</artifactId>
54
+ <version>3.3.101.v20080702_34x</version>
55
+ <type>osgi-bundle</type>
56
+ </dependency>
57
+ <dependency>
58
+ <groupId>eclipse</groupId>
59
+ <artifactId>org.eclipse.core.variables</artifactId>
60
+ <version>3.2.100.v20080529-1300</version>
61
+ <type>osgi-bundle</type>
62
+ </dependency>
63
+ <dependency>
64
+ <groupId>eclipse</groupId>
65
+ <artifactId>org.eclipse.core.expressions</artifactId>
66
+ <version>3.4.0.v20080603-2000</version>
67
+ <type>osgi-bundle</type>
68
+ </dependency>
69
+ <dependency>
70
+ <groupId>eclipse</groupId>
71
+ <artifactId>org.eclipse.core.filesystem</artifactId>
72
+ <version>1.2.0.v20080604-1400</version>
73
+ <type>osgi-bundle</type>
74
+ </dependency>
75
+ <dependency>
76
+ <groupId>eclipse</groupId>
77
+ <artifactId>org.eclipse.jface.text</artifactId>
78
+ <version>3.4.1.r341_v20080827-1100</version>
79
+ <type>osgi-bundle</type>
80
+ </dependency>
81
+ </dependencies>
82
+ </project>
@@ -0,0 +1,30 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
+
3
+ <parent>
4
+ <groupId>org.slf4j</groupId>
5
+ <artifactId>slf4j-parent</artifactId>
6
+ <version>1.5.8</version>
7
+ </parent>
8
+
9
+ <modelVersion>4.0.0</modelVersion>
10
+
11
+ <groupId>org.slf4j</groupId>
12
+ <artifactId>jcl104-over-slf4j</artifactId>
13
+ <name>DEPRECATED - JCL 1.0.4 implemented over SLF4J</name>
14
+
15
+ <url>http://www.slf4j.org</url>
16
+ <description>
17
+ DEPRECATED - JCL implemented over SLF4J
18
+ </description>
19
+
20
+ <distributionManagement>
21
+ <relocation>
22
+ <groupId>org.slf4j</groupId>
23
+ <artifactId>jcl-over-slf4j</artifactId>
24
+
25
+ <message>As it now supports JCL versions 1.0.4, 1.1 and 1.1.1, the jcl104-over-slf4j module has been renamed as jcl-over-slf4j.</message>
26
+ </relocation>
27
+ </distributionManagement>
28
+
29
+
30
+ </project>
@@ -0,0 +1,101 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
2
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
+
5
+ <parent>
6
+ <groupId>org.slf4j</groupId>
7
+ <artifactId>slf4j-parent</artifactId>
8
+ <version>1.5.8</version>
9
+ </parent>
10
+
11
+ <modelVersion>4.0.0</modelVersion>
12
+
13
+ <groupId>org.slf4j</groupId>
14
+ <artifactId>slf4j-api</artifactId>
15
+ <packaging>jar</packaging>
16
+ <name>SLF4J API Module</name>
17
+
18
+ <url>http://www.slf4j.org</url>
19
+ <description>The slf4j API</description>
20
+
21
+ <dependencies>
22
+
23
+ </dependencies>
24
+
25
+ <build>
26
+ <plugins>
27
+ <plugin>
28
+ <groupId>org.apache.maven.plugins</groupId>
29
+ <artifactId>maven-surefire-plugin</artifactId>
30
+ <configuration>
31
+ <forkMode>once</forkMode>
32
+ <reportFormat>plain</reportFormat>
33
+ <trimStackTrace>false</trimStackTrace>
34
+ <excludes>
35
+ <exclude>**/AllTest.java</exclude>
36
+ <exclude>**/PackageTest.java</exclude>
37
+ </excludes>
38
+ </configuration>
39
+ </plugin>
40
+
41
+ <plugin>
42
+ <groupId>org.apache.maven.plugins</groupId>
43
+ <artifactId>maven-jar-plugin</artifactId>
44
+ <configuration>
45
+ <archive>
46
+ <manifestEntries>
47
+ <Bundle-Version>${project.version}</Bundle-Version>
48
+ <Bundle-Description>${project.description}</Bundle-Description>
49
+ <Implementation-Version>${project.version}</Implementation-Version>
50
+ </manifestEntries>
51
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
52
+ </archive>
53
+ </configuration>
54
+ <executions>
55
+ <execution>
56
+ <id>bundle-test-jar</id>
57
+ <phase>package</phase>
58
+ <goals>
59
+ <goal>jar</goal>
60
+ <goal>test-jar</goal>
61
+ </goals>
62
+ </execution>
63
+ </executions>
64
+ </plugin>
65
+
66
+ <plugin>
67
+ <groupId>org.apache.maven.plugins</groupId>
68
+ <artifactId>maven-antrun-plugin</artifactId>
69
+ <executions>
70
+ <execution>
71
+ <phase>process-classes</phase>
72
+ <goals>
73
+ <goal>run</goal>
74
+ </goals>
75
+ </execution>
76
+ </executions>
77
+ <configuration>
78
+ <tasks>
79
+ <echo>Removing slf4j-api's dummy StaticLoggerBinder and StaticMarkerBinder</echo>
80
+ <delete dir="target/classes/org/slf4j/impl"/>
81
+ </tasks>
82
+ </configuration>
83
+ </plugin>
84
+
85
+ </plugins>
86
+
87
+ </build>
88
+
89
+ <reporting>
90
+ <plugins>
91
+ <plugin>
92
+ <groupId>org.codehaus.mojo</groupId>
93
+ <artifactId>clirr-maven-plugin</artifactId>
94
+ <configuration>
95
+ <comparisonVersion>1.5.6</comparisonVersion>
96
+ </configuration>
97
+ </plugin>
98
+ </plugins>
99
+ </reporting>
100
+
101
+ </project>
@@ -0,0 +1,56 @@
1
+ <project
2
+ xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
+
6
+ <parent>
7
+ <groupId>org.slf4j</groupId>
8
+ <artifactId>slf4j-parent</artifactId>
9
+ <version>1.5.8</version>
10
+ </parent>
11
+
12
+ <modelVersion>4.0.0</modelVersion>
13
+
14
+ <groupId>org.slf4j</groupId>
15
+ <artifactId>slf4j-log4j12</artifactId>
16
+ <packaging>jar</packaging>
17
+ <name>SLF4J LOG4J-12 Binding</name>
18
+
19
+ <url>http://www.slf4j.org</url>
20
+
21
+ <description>
22
+ The slf4j log4j-12 binding
23
+ </description>
24
+
25
+ <dependencies>
26
+ <dependency>
27
+ <groupId>org.slf4j</groupId>
28
+ <artifactId>slf4j-api</artifactId>
29
+ </dependency>
30
+
31
+ <dependency>
32
+ <groupId>log4j</groupId>
33
+ <artifactId>log4j</artifactId>
34
+ </dependency>
35
+ </dependencies>
36
+
37
+ <build>
38
+ <plugins>
39
+ <plugin>
40
+ <groupId>org.apache.maven.plugins</groupId>
41
+ <artifactId>maven-jar-plugin</artifactId>
42
+ <configuration>
43
+ <archive>
44
+ <manifestEntries>
45
+ <Bundle-Version>${project.version}</Bundle-Version>
46
+ <Bundle-Description>${project.description}</Bundle-Description>
47
+ <Implementation-Version>${project.version}</Implementation-Version>
48
+ </manifestEntries>
49
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
50
+ </archive>
51
+ </configuration>
52
+ </plugin>
53
+ </plugins>
54
+ </build>
55
+
56
+ </project>