spec/pom_maven_style/pom.rb in maven-tools-1.0.0.rc2 vs spec/pom_maven_style/pom.rb in maven-tools-1.0.0.rc3

- old
+ new

@@ -1,8 +1,8 @@ project do - model_version '1.0.0' + model_version '1.0.1' parent 'example:parent:1.1' do relative_path '../pom.xml' end @@ -100,11 +100,10 @@ download_url 'http://dev.example.com/downloads' repository do id :first url 'http://repo.example.com' name 'First' - unique_version 123 layout 'legacy' releases do enabled true update_policy 'daily' checksum_policy :strict @@ -116,11 +115,10 @@ end end snapshot_repository( 'snapshots', 'http://snaphots.example.com', 'First Snapshots', - :unique_version => 1234, :layout => 'legacy' ) do releases( :enabled => false, :update_policy => 'daily', :checksum_policy => :strict ) snapshots( :enabled =>true, @@ -157,11 +155,10 @@ end repository do id :first url 'http://repo.example.com' name 'First' - unique_version 123 layout 'legacy' releases do enabled true update_policy 'daily' checksum_policy :strict @@ -174,11 +171,10 @@ end snapshot_repository do id 'snapshots' url 'http://snaphots.example.com' name 'First Snapshots' - unique_version 12345 layout 'legacy' releases do update_policy 'daily' checksum_policy :strict end @@ -189,11 +185,10 @@ end plugin_repository do id :first url 'http://pluginrepo.example.com' name 'First' - unique_version 12 layout 'legacy' releases do enabled true update_policy 'daily' checksum_policy :strict @@ -223,9 +218,67 @@ target_path 'target/test' filtering false directory 'testresources' includes [ '**/*' ] excludes [ '*~' ] + end + + plugin :jar, '1.0' do + inherited true + configuration :finalName => :testing + end + + jruby_plugin :gem, '1.0.0' do + gem :bundler, '1.6.2' + end + + plugin :antrun do + execute_goals( 'run' ) do + configuration( 'tasks' => { + 'exec' => { + '@executable' => '/bin/sh', + '@osfamily' => 'unix', + 'arg' => { + '@line' => '-c \'cp "${jruby.basedir}/bin/jruby.bash" "${jruby.basedir}/bin/jruby"\'' + } + }, + 'chmod' => { + '@file' => '${jruby.basedir}/bin/jruby', + '@perm' => '755' + } + } ) + id 'copy' + phase 'package' + end + jar 'org.super.duper:executor:1.0.0' + end + + plugin 'org.codehaus.mojo:exec-maven-plugin' do + execute_goal( 'exec' ) do + id 'invoker-generator' + configuration( 'arguments' => [ '-Djruby.bytecode.version=${base.java.version}', + '-classpath', + xml( '<classpath/>' ), + 'org.jruby.anno.InvokerGenerator', + '${anno.sources}/annotated_classes.txt', + '${project.build.outputDirectory}' ], + 'executable' => 'java', + 'classpathScope' => 'compile' ) + end + end + + plugin_management do + plugin( "org.mortbay.jetty:jetty-maven-plugin:8.1" ) do + configuration( :path => '/', + :connectors => [ { :@implementation => "org.eclipse.jetty.server.nio.SelectChannelConnector", + :port => '${run.port}' }, + { :@implementation => "org.eclipse.jetty.server.ssl.SslSelectChannelConnector", + :port => '${run.sslport}', + :keystore => '${run.keystore}', + :keyPassword => '${run.keystore.pass}', + :trustPassword => '${run.truststore.pass}' } ], + :httpConnector => { :port => '${run.port}' } ) + end end end end # <build> # <extensions>