Created
July 30, 2013 10:07
-
-
Save mkristian/6111761 to your computer and use it in GitHub Desktop.
maven tasks for rake using pom.xml or pom.rb or Mavenfile as POM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake | |
mvn package | |
using java invokation | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Polyglot Tesla :: Ruby 0.0.1-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- tesla-license-plugin:1.0.0:check (default) @ tesla-polyglot-ruby --- | |
[INFO] Checking licenses... | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ tesla-polyglot-ruby --- | |
[debug] execute contextualize | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] Copying 1 resource | |
[INFO] | |
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ tesla-polyglot-ruby --- | |
[INFO] Nothing to compile - all classes are up to date | |
[INFO] | |
[INFO] --- plexus-component-metadata:1.5.4:generate-metadata (default) @ tesla-polyglot-ruby --- | |
[INFO] Discovered 3 component descriptors(s) | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ tesla-polyglot-ruby --- | |
[debug] execute contextualize | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] Copying 1 resource | |
[INFO] | |
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ tesla-polyglot-ruby --- | |
[INFO] Nothing to compile - all classes are up to date | |
[INFO] | |
[INFO] --- plexus-component-metadata:1.5.4:generate-test-metadata (default) @ tesla-polyglot-ruby --- | |
[INFO] | |
[INFO] --- maven-surefire-plugin:2.9:test (default-test) @ tesla-polyglot-ruby --- | |
[INFO] Surefire report directory: /home/christian/projects/active/maven/tesla-polyglot/tesla-polyglot-ruby/target/surefire-reports | |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running org.sonatype.maven.polyglot.ruby.RubyModelWithExecuteTasksTest | |
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.872 sec | |
Running org.sonatype.maven.polyglot.ruby.RubyModelRoundtripTest | |
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.603 sec | |
Running org.sonatype.maven.polyglot.ruby.RubyModelWithMavenTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.162 sec | |
Running org.sonatype.maven.polyglot.ruby.RubyReaderWithGemspecsTest | |
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.529 sec | |
Results : | |
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0 | |
[INFO] | |
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ tesla-polyglot-ruby --- | |
[INFO] Building jar: /home/christian/projects/active/maven/tesla-polyglot/tesla-polyglot-ruby/target/tesla-polyglot-ruby-0.0.1-SNAPSHOT.jar | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD SUCCESS | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 9.109s | |
[INFO] Finished at: Tue Jul 30 11:05:03 BST 2013 | |
[INFO] Final Memory: 10M/213M | |
[INFO] ------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake compile | |
mvn compile | |
using java invokation | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Polyglot Tesla :: Ruby 0.0.1-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- tesla-license-plugin:1.0.0:check (default) @ tesla-polyglot-ruby --- | |
[INFO] Checking licenses... | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ tesla-polyglot-ruby --- | |
[debug] execute contextualize | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] Copying 1 resource | |
[INFO] | |
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ tesla-polyglot-ruby --- | |
[INFO] Nothing to compile - all classes are up to date | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD SUCCESS | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 1.049s | |
[INFO] Finished at: Tue Jul 30 11:06:01 BST 2013 | |
[INFO] Final Memory: 10M/210M | |
[INFO] ------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'maven/ruby/tasks' | |
task :default => :build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment