开源软件名称(OpenSource Name):takari/polyglot-maven开源软件地址(OpenSource Url):https://github.com/takari/polyglot-maven开源编程语言(OpenSource Language):Java 55.7%开源软件介绍(OpenSource Introduction):OverviewPolyglot for Maven is a set of
extensions for Here's an example POM written in the Ruby dialect: project 'Polyglot :: Aggregator' do
model_version '4.0.0'
id 'io.tesla.polyglot:tesla-polyglot:0.0.1-SNAPSHOT'
inherit 'io.tesla:tesla:4'
packaging 'pom'
properties( 'sisuInjectVersion' => '0.0.0.M2a',
'teslaVersion' => '3.1.0' )
modules [ 'tesla-polyglot-common',
'tesla-polyglot-atom',
'tesla-polyglot-ruby',
'tesla-polyglot-groovy',
'tesla-polyglot-yaml',
'tesla-polyglot-clojure',
'tesla-polyglot-scala',
'tesla-polyglot-java',
'tesla-polyglot-xml',
'tesla-polyglot-cli',
'tesla-polyglot-maven-plugin' ]
overrides do
jar 'org.eclipse.sisu:org.eclipse.sisu.inject:${sisuInjectVersion}'
jar 'org.eclipse.sisu:org.eclipse.sisu.plexus:${sisuInjectVersion}'
jar 'org.apache.maven:maven-model-builder:3.1.0'
jar 'org.apache.maven:maven-embedder:3.1.0'
jar( 'junit:junit:4.11', :scope => 'test' )
end
plugin 'org.codehaus.plexus:plexus-component-metadata:1.5.4' do
execute_goals 'generate-metadata', 'generate-test-metadata'
end
build do
execute("first", :validate) do |context|
puts "Hello from JRuby!"
end
end
end RequirementsUsageTo use Polyglot for Maven you need to edit
The scala dialect supports a separate configuration parameter
Available LanguagesThe available languages, in alphabetical order, with their artifact id are:
The groupId value is Update extensions.xmlEdit the
Convert existing POMWe have created a simple Maven plugin that will help you convert any existing
Where the supported formats are Known Limitations and IssuesInteroperabilityThe whole interoperability story has not been worked out but you can create a XML-formatted POM from the Polyglot version. Currently mixing different dialects within a reactor is not supported. A ToolingSome support in IDE's like IntelliJ IDEA and Eclipse exist and the different markup languages are understood by various syntax highlighters. However, full integration of the markup syntax and the specific Maven-related aspects is not available. Limited Plugin SupportMaven plugins or Maven plugin goals that rely on the XML format are not supported, since they are either attempting to parse the XML directly or modify it in automated fashion do not work with Polyglot Maven. Examples are:
Fixes would have to be implemented in these plugins. Workarounds or replacement workflows for most usecases exist. Polyglot Maven in Real LifeDespite the warning above, Polyglot Maven is pretty stable right now. Have a look at the integration tests for each dialect in this repository for some examples as well as our dedicated polyglot-maven-examples project. Some dialect folder contain specific README files with futher instructions as as test code with example projects and more. Ensure to check the ones for your specific dialect out as well. The following projects are real world usage examples that use Polyglot Maven in their regular development and release work: KotlinSpecific docs and more can be found in the Kotlin dialect specific readme. Ruby
YAML
ScalaJava Projects
Scala Projects
Please let us know of your usage by filing an issue so we can add it here. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论