You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by eo...@apache.org on 2019/03/07 15:27:48 UTC

[maven-scripting-plugin] branch MSCRIPTING-1 updated (e3cd854 -> b20e1c3)

This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a change to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git.


 discard e3cd854  MSCRIPTNG-1 Allow scripting in files
     new 607f9bb  MSCRIPTING-2 Update parent to 33 and maven-shared-utils to 3.2.1
     new b20e1c3  MSCRIPTNG-1 Allow scripting in files

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (e3cd854)
            \
             N -- N -- N   refs/heads/MSCRIPTING-1 (b20e1c3)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 11 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


[maven-scripting-plugin] 08/11: Add GitHub PR instructions

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit bdbe55dfe0da0ee069d8aed7d42abc3eb162160a
Author: Enrico Olivelli <eo...@apache.org>
AuthorDate: Fri Jan 4 19:26:23 2019 +0100

    Add GitHub PR instructions
---
 .github/pull_request_template.md | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 0000000..4ec0a37
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,29 @@
+Following this checklist to help us incorporate your 
+contribution quickly and easily:
+
+ - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MSCRIPTING) filed 
+       for the change (usually before you start working on it).  Trivial changes like typos do not 
+       require a JIRA issue.  Your pull request should address just this issue, without 
+       pulling in other changes.
+ - [ ] Each commit in the pull request should have a meaningful subject line and body.
+ - [ ] Format the pull request title like `[MSCRIPTING-XXX] - Fixes bug in ApproximateQuantiles`,
+       where you replace `MSCRIPTING-XXX` with the appropriate JIRA issue. Best practice
+       is to use the JIRA issue title in the pull request title and in the first line of the 
+       commit message.
+ - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
+ - [ ] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will 
+       be performed on your pull request automatically.
+ - [ ] You have run the integration tests successfully (`mvn -Prun-its clean verify`).
+
+If your pull request is about ~20 lines of code you don't need to sign an
+[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure
+please ask on the developers list.
+
+To make clear that you license your contribution under 
+the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
+you have to acknowledge this by using the following check-box.
+
+ - [ ] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
+
+ - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
+


[maven-scripting-plugin] 10/11: MSCRIPTING-2 Update parent to 33 and maven-shared-utils to 3.2.1

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit 607f9bb24f6a12f2eea54ca4300d3f660c5aad8f
Author: Enrico Olivelli <eo...@apache.prg>
AuthorDate: Thu Mar 7 14:14:59 2019 +0100

    MSCRIPTING-2 Update parent to 33 and maven-shared-utils to 3.2.1
---
 pom.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index c9e39d6..ca3ad41 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@ under the License.
   <parent>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-plugins</artifactId>
-    <version>31</version>
+    <version>33</version>
     <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
   </parent>
 
@@ -66,6 +66,8 @@ under the License.
 
   <properties>
     <mavenVersion>3.0</mavenVersion>
+    <maven.compiler.source>1.7</maven.compiler.source>
+    <maven.compiler.target>1.7</maven.compiler.target>
   </properties>
 
   <dependencies>
@@ -77,7 +79,7 @@ under the License.
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-shared-utils</artifactId>
-      <version>3.1.0</version>
+      <version>3.2.1</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>


[maven-scripting-plugin] 02/11: o Updated to latest parent SNAPSHOT.

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit adecb82a78a5899b9162b55d8eb6b4a3943af209
Author: Christian Schulte <sc...@apache.org>
AuthorDate: Sun Dec 18 00:49:25 2016 +0000

    o Updated to latest parent SNAPSHOT.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1774838 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 2af17e3..936a0ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@ under the License.
   <parent>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-plugins</artifactId>
-    <version>30</version>
+    <version>31-SNAPSHOT</version>
     <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
   </parent>
 


[maven-scripting-plugin] 04/11: moved to git

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit e8d34ffa88d96ba79ce38ad910c0e4387eb40c91
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Dec 9 19:31:11 2017 +0100

    moved to git
---
 .gitignore  | 15 +++++++++++++++
 Jenkinsfile | 20 ++++++++++++++++++++
 pom.xml     | 11 ++++++++---
 3 files changed, 43 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f79c928
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+target/
+.project
+.classpath
+.settings/
+.svn/
+bin/
+# Intellij
+*.ipr
+*.iml
+.idea
+out/
+.DS_Store
+/bootstrap
+/dependencies.xml
+.java-version
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..09ac70f
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+asfMavenTlpStdBuild()
diff --git a/pom.xml b/pom.xml
index 2af17e3..8e0b90f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,14 +44,19 @@ under the License.
   </prerequisites>
 
   <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-scripting-plugin</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-scripting-plugin</developerConnection>
-    <url>http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scripting-plugin</url>
+    <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git</connection>
+    <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git</developerConnection>
+    <url>https://github.com/apache/maven-scripting-plugin/tree/${project.scm.tag}</url>
+    <tag>HEAD</tag>
   </scm>
   <issueManagement>
     <system>JIRA</system>
     <url>https://issues.apache.org/jira/browse/MSCRIPTING</url>
   </issueManagement>
+  <ciManagement>
+    <system>Jenkins</system>
+    <url>https://builds.apache.org/job/maven-box/job/maven-scripting-plugin/</url>
+  </ciManagement>
   <distributionManagement>
     <site>
       <id>apache.website</id>


[maven-scripting-plugin] 07/11: Add test Travis-CI configuration file

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit 25081ddbfa1cab5d0dbd97670fbbe6c726179ae8
Author: Enrico Olivelli <eo...@apache.org>
AuthorDate: Fri Jan 4 14:21:31 2019 +0100

    Add test Travis-CI configuration file
---
 .travis.yml | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..e00391c
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+language: java
+sudo: false
+
+cache:
+  directories:
+  - "$HOME/.m2"
+
+jobs:
+  include:
+  - stage: test
+    jdk: openjdk11
+    script: mvn verify -Prun-its
+
+branches:
+  only:
+  - master


[maven-scripting-plugin] 01/11: Initial commit maven-scipting-plugin, a jsr223 wrapping maven plugin.

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit e411e95dd47e4235b415fdf550535d97023607d2
Author: Robert Scholte <rf...@apache.org>
AuthorDate: Sun Nov 20 13:08:33 2016 +0000

    Initial commit maven-scipting-plugin, a jsr223 wrapping maven plugin.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1770555 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            | 144 +++++++++++++++++++++
 src/it/groovy-script/pom.xml                       |  47 +++++++
 src/it/settings.xml                                |  55 ++++++++
 .../apache/maven/plugins/scripting/EvalMojo.java   | 109 ++++++++++++++++
 4 files changed, 355 insertions(+)

diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..2af17e3
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,144 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins</groupId>
+    <artifactId>maven-plugins</artifactId>
+    <version>30</version>
+    <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
+  </parent>
+
+  <artifactId>maven-scripting-plugin</artifactId>
+  <version>3.0.0-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <name>Apache Maven Scripting Plugin</name>
+  <description>
+    The Maven Scripting Plugin is a plugin that wrapped the Scripting API accoring to JSR223
+  </description>
+  <inceptionYear>2016</inceptionYear>
+
+  <prerequisites>
+    <maven>${mavenVersion}</maven>
+  </prerequisites>
+
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-scripting-plugin</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-scripting-plugin</developerConnection>
+    <url>http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scripting-plugin</url>
+  </scm>
+  <issueManagement>
+    <system>JIRA</system>
+    <url>https://issues.apache.org/jira/browse/MSCRIPTING</url>
+  </issueManagement>
+  <distributionManagement>
+    <site>
+      <id>apache.website</id>
+      <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/components/${maven.site.path}</url>
+    </site>
+  </distributionManagement>
+
+  <properties>
+    <mavenVersion>3.0</mavenVersion>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>${mavenVersion}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.shared</groupId>
+      <artifactId>maven-shared-utils</artifactId>
+      <version>3.1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-core</artifactId>
+      <version>${mavenVersion}</version>
+    </dependency>
+
+    <!-- dependencies to annotations -->
+    <dependency>
+      <groupId>org.apache.maven.plugin-tools</groupId>
+      <artifactId>maven-plugin-annotations</artifactId>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- ScriptEngines -->
+    <dependency>
+      <groupId>org.codehaus.groovy</groupId>
+      <artifactId>groovy-jsr223</artifactId>
+      <version>2.4.7</version>
+    </dependency>
+
+    <!-- Test -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.12</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugin-testing</groupId>
+      <artifactId>maven-plugin-testing-harness</artifactId>
+      <version>2.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-compat</artifactId>
+      <version>${mavenVersion}</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>run-its</id>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-invoker-plugin</artifactId>
+              <configuration>
+                <projectsDirectory>src/it</projectsDirectory>
+                <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+                <preBuildHookScript>setup</preBuildHookScript>
+                <postBuildHookScript>verify</postBuildHookScript>
+                <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+                <settingsFile>src/it/settings.xml</settingsFile>
+                <goals>
+                  <goal>scripting:eval</goal>
+                </goals>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/src/it/groovy-script/pom.xml b/src/it/groovy-script/pom.xml
new file mode 100644
index 0000000..5098a79
--- /dev/null
+++ b/src/it/groovy-script/pom.xml
@@ -0,0 +1,47 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.scripting.its</groupId>
+  <artifactId>groovy-script</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-scripting-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <engineName>groovy</engineName>
+          <script>
+          <![CDATA[
+            (1..10).sum() + ' ' + project.artifactId
+          ]]>
+          </script>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/src/it/settings.xml b/src/it/settings.xml
new file mode 100644
index 0000000..35dbcec
--- /dev/null
+++ b/src/it/settings.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
+  <profiles>
+    <profile>
+      <id>it-repo</id>
+      <repositories>
+        <repository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+  <activeProfiles>
+    <activeProfile>it-repo</activeProfile>
+  </activeProfiles>
+</settings>
diff --git a/src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java b/src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java
new file mode 100644
index 0000000..f4c349a
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java
@@ -0,0 +1,109 @@
+package org.apache.maven.plugins.scripting;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import javax.script.ScriptContext;
+import javax.script.ScriptEngine;
+import javax.script.ScriptEngineManager;
+import javax.script.ScriptException;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.MavenProject;
+
+/**
+ * Evaluate the specified script
+ * 
+ * @author Robert Scholte
+ * @since 3.0.0
+ */
+@Mojo( name = "eval" )
+public class EvalMojo
+    extends AbstractMojo
+{
+    @Parameter( required = true )
+    private String engineName; // or map extension to engineName??
+
+    /**
+     * When used, also specify the engineName
+     */
+    @Parameter
+    private String script;
+
+    // script variables
+    @Parameter( defaultValue = "${project}", readonly = true )
+    private MavenProject project;
+    
+    private ScriptEngineManager manager = new ScriptEngineManager();
+
+    @Override
+    public void execute()
+        throws MojoExecutionException, MojoFailureException
+    {
+        ScriptEngine engine = null;
+        
+        if ( script != null )
+        {
+            engine = getScriptEngine( engineName );
+
+            if ( engine == null )
+            {
+                throw new MojoFailureException( "Missing scriptEngine" );
+            }
+        }
+        else
+        {
+            // from file
+        }
+
+        try
+        {
+            ScriptContext context = engine.getContext();
+            context.setAttribute( "project", project, ScriptContext.GLOBAL_SCOPE );
+            
+            Object result = engine.eval( script );
+            
+            getLog().info( "Result:" );
+            if ( result != null )
+            {
+                getLog().info( result.toString() );
+            }
+        }
+        catch ( ScriptException e )
+        {
+            throw new MojoExecutionException( e.getMessage(), e );
+        }
+    }
+    
+    private ScriptEngine getScriptEngine( String name )
+    {
+        if ( name == null ) 
+        {
+            return null;
+        }
+        else
+        {
+            return manager.getEngineByName( engineName );
+        }
+    }
+}


[maven-scripting-plugin] 11/11: MSCRIPTNG-1 Allow scripting in files

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit b20e1c3dc647ddc3e522f286cc6252321509dd96
Author: Rusi Popov <po...@mdatools.net>
AuthorDate: Sat Jan 26 12:49:10 2019 +0200

    MSCRIPTNG-1 Allow scripting in files
---
 pom.xml                                            |  10 +-
 .../pom.xml                                        |  14 ++-
 src/it/groovy-script-file-name/test.groov          |  21 ++++
 .../{groovy-script => groovy-script-file}/pom.xml  |  16 ++-
 src/it/groovy-script-file/test.groovy              |  21 ++++
 src/it/groovy-script/pom.xml                       |   8 ++
 .../apache/maven/plugins/scripting/EvalMojo.java   | 117 ++++++++++---------
 .../apache/maven/plugins/scripting/Execute.java    |  71 ++++++++++++
 .../maven/plugins/scripting/ExecuteFile.java       | 126 +++++++++++++++++++++
 .../maven/plugins/scripting/ExecuteString.java     |  87 ++++++++++++++
 10 files changed, 419 insertions(+), 72 deletions(-)

diff --git a/pom.xml b/pom.xml
index ca3ad41..eb92171 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,8 @@ under the License.
 
   <name>Apache Maven Scripting Plugin</name>
   <description>
-    The Maven Scripting Plugin is a plugin that wrapped the Scripting API accoring to JSR223
+    The Maven Scripting Plugin is a plugin that wrapped the Scripting API according to JSR223.
+    Add the scripting engines as dependencies of this plugin on its use.
   </description>
   <inceptionYear>2016</inceptionYear>
 
@@ -94,13 +95,6 @@ under the License.
       <scope>provided</scope>
     </dependency>
 
-    <!-- ScriptEngines -->
-    <dependency>
-      <groupId>org.codehaus.groovy</groupId>
-      <artifactId>groovy-jsr223</artifactId>
-      <version>2.4.7</version>
-    </dependency>
-
     <!-- Test -->
     <dependency>
       <groupId>junit</groupId>
diff --git a/src/it/groovy-script/pom.xml b/src/it/groovy-script-file-name/pom.xml
similarity index 81%
copy from src/it/groovy-script/pom.xml
copy to src/it/groovy-script-file-name/pom.xml
index 5098a79..a5fdfca 100644
--- a/src/it/groovy-script/pom.xml
+++ b/src/it/groovy-script-file-name/pom.xml
@@ -35,12 +35,16 @@ under the License.
         <version>@project.version@</version>
         <configuration>
           <engineName>groovy</engineName>
-          <script>
-          <![CDATA[
-            (1..10).sum() + ' ' + project.artifactId
-          ]]>
-          </script>
+          <scriptFile>test.groov</scriptFile>
         </configuration>
+        <dependencies>
+          <!-- ScriptEngines -->
+          <dependency>
+            <groupId>org.codehaus.groovy</groupId>
+            <artifactId>groovy-jsr223</artifactId>
+            <version>2.4.7</version>
+          </dependency>
+        </dependencies>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/groovy-script-file-name/test.groov b/src/it/groovy-script-file-name/test.groov
new file mode 100644
index 0000000..94d935c
--- /dev/null
+++ b/src/it/groovy-script-file-name/test.groov
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+(1..10).sum() + ' ' + project.artifactId
\ No newline at end of file
diff --git a/src/it/groovy-script/pom.xml b/src/it/groovy-script-file/pom.xml
similarity index 78%
copy from src/it/groovy-script/pom.xml
copy to src/it/groovy-script-file/pom.xml
index 5098a79..6093e33 100644
--- a/src/it/groovy-script/pom.xml
+++ b/src/it/groovy-script-file/pom.xml
@@ -34,13 +34,17 @@ under the License.
         <artifactId>maven-scripting-plugin</artifactId>
         <version>@project.version@</version>
         <configuration>
-          <engineName>groovy</engineName>
-          <script>
-          <![CDATA[
-            (1..10).sum() + ' ' + project.artifactId
-          ]]>
-          </script>
+          <!--engineName>groovy</engineName-->
+          <scriptFile>test.groovy</scriptFile>
         </configuration>
+        <dependencies>
+          <!-- ScriptEngines -->
+          <dependency>
+            <groupId>org.codehaus.groovy</groupId>
+            <artifactId>groovy-jsr223</artifactId>
+            <version>2.4.7</version>
+          </dependency>
+        </dependencies>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/groovy-script-file/test.groovy b/src/it/groovy-script-file/test.groovy
new file mode 100644
index 0000000..94d935c
--- /dev/null
+++ b/src/it/groovy-script-file/test.groovy
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+(1..10).sum() + ' ' + project.artifactId
\ No newline at end of file
diff --git a/src/it/groovy-script/pom.xml b/src/it/groovy-script/pom.xml
index 5098a79..0c949f7 100644
--- a/src/it/groovy-script/pom.xml
+++ b/src/it/groovy-script/pom.xml
@@ -41,6 +41,14 @@ under the License.
           ]]>
           </script>
         </configuration>
+        <dependencies>
+          <!-- ScriptEngines -->
+          <dependency>
+            <groupId>org.codehaus.groovy</groupId>
+            <artifactId>groovy-jsr223</artifactId>
+            <version>2.4.7</version>
+          </dependency>
+        </dependencies>
       </plugin>
     </plugins>
   </build>
diff --git a/src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java b/src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java
index f4c349a..6dfc038 100644
--- a/src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java
+++ b/src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java
@@ -19,10 +19,10 @@ package org.apache.maven.plugins.scripting;
  * under the License.
  */
 
-import javax.script.ScriptContext;
-import javax.script.ScriptEngine;
-import javax.script.ScriptEngineManager;
-import javax.script.ScriptException;
+import java.io.File;
+
+import javax.script.Bindings;
+import javax.script.SimpleBindings;
 
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -33,7 +33,7 @@ import org.apache.maven.project.MavenProject;
 
 /**
  * Evaluate the specified script
- * 
+ *
  * @author Robert Scholte
  * @since 3.0.0
  */
@@ -41,8 +41,8 @@ import org.apache.maven.project.MavenProject;
 public class EvalMojo
     extends AbstractMojo
 {
-    @Parameter( required = true )
-    private String engineName; // or map extension to engineName??
+    @Parameter
+    private String engineName;
 
     /**
      * When used, also specify the engineName
@@ -50,60 +50,71 @@ public class EvalMojo
     @Parameter
     private String script;
 
+    /**
+     * Provide the script as an external file as an alternative to &lt;script&gt;.
+     * When scriptFile provided the script is ignored.
+     * The file name extension identifies the script language to use, as of javax.script.ScriptEngineManager
+     * and {@linkplain "https://jcp.org/aboutJava/communityprocess/final/jsr223/index.html"}
+     */
+    @Parameter
+    private File scriptFile;
+
     // script variables
     @Parameter( defaultValue = "${project}", readonly = true )
     private MavenProject project;
-    
-    private ScriptEngineManager manager = new ScriptEngineManager();
 
     @Override
     public void execute()
         throws MojoExecutionException, MojoFailureException
     {
-        ScriptEngine engine = null;
-        
-        if ( script != null )
-        {
-            engine = getScriptEngine( engineName );
-
-            if ( engine == null )
-            {
-                throw new MojoFailureException( "Missing scriptEngine" );
-            }
-        }
-        else
-        {
-            // from file
-        }
-
-        try
-        {
-            ScriptContext context = engine.getContext();
-            context.setAttribute( "project", project, ScriptContext.GLOBAL_SCOPE );
-            
-            Object result = engine.eval( script );
-            
-            getLog().info( "Result:" );
-            if ( result != null )
-            {
-                getLog().info( result.toString() );
-            }
-        }
-        catch ( ScriptException e )
-        {
-            throw new MojoExecutionException( e.getMessage(), e );
-        }
+       Execute execute;
+       Object result;
+       Bindings bindings;
+
+       try
+       {
+         execute = constructExecute();
+
+         bindings = new SimpleBindings();
+         bindings.put( "project", project );
+         bindings.put( "log", getLog() );
+
+         result = execute.run( bindings );
+
+         getLog().info( "Result:" );
+         if ( result != null )
+         {
+           getLog().info( result.toString() );
+         }
+       }
+       catch ( IllegalArgumentException e ) // configuring the plugin failed
+       {
+         throw new MojoExecutionException( e.getMessage(), e );
+       }
+       catch ( Exception e ) // execution failure
+       {
+           throw new MojoFailureException( e.getMessage(), e );
+       }
     }
-    
-    private ScriptEngine getScriptEngine( String name )
+
+    private Execute constructExecute() throws IllegalArgumentException
     {
-        if ( name == null ) 
-        {
-            return null;
-        }
-        else
-        {
-            return manager.getEngineByName( engineName );
-        }
+      Execute execute;
+
+      if ( scriptFile != null )
+      {
+         execute = new ExecuteFile( engineName, scriptFile );
+
+      }
+      else if ( script != null )
+      {
+         execute = new ExecuteString( engineName, script );
+
+      }
+      else
+      {
+         throw new IllegalArgumentException( "Missing script or scriptFile provided" );
+      }
+      return execute;
     }
-}
+}
\ No newline at end of file
diff --git a/src/main/java/org/apache/maven/plugins/scripting/Execute.java b/src/main/java/org/apache/maven/plugins/scripting/Execute.java
new file mode 100644
index 0000000..5563bc5
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugins/scripting/Execute.java
@@ -0,0 +1,71 @@
+package org.apache.maven.plugins.scripting;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import javax.script.Bindings;
+import javax.script.ScriptContext;
+import javax.script.ScriptEngine;
+import javax.script.ScriptEngineManager;
+import javax.script.ScriptException;
+
+/**
+ * Execute a script in the appropriate context and return its possibly null result
+ * @author Rusi Popov
+ */
+abstract class Execute
+{
+
+  /**
+   * @param bindings not null bindings to provide to the script to execute
+   * @return the possibly null result the script produced
+   * @throws IllegalArgumentException when the engine is not configured correctly
+   * @throws ScriptException
+   */
+  public final Object run( Bindings bindings ) throws IllegalArgumentException, ScriptException
+  {
+    ScriptEngine engine;
+    ScriptEngineManager manager;
+    ScriptContext context;
+
+    manager = new ScriptEngineManager();
+    engine = constructEngine( manager );
+    context = engine.getContext();
+
+    context.setBindings( bindings, ScriptContext.GLOBAL_SCOPE );
+
+    return execute( engine, context );
+  }
+
+  /**
+   * Execute the script
+   * @param engine not null
+   * @param context not null, initialized
+   * @return possibly null result of the script
+   * @throws ScriptException
+   */
+  protected abstract Object execute( ScriptEngine engine, ScriptContext context ) throws ScriptException;
+
+  /**
+   * @param manager not null
+   * @return non-null engine to execute the script
+   * @throws IllegalArgumentException when no engine could be identified
+   */
+  protected abstract ScriptEngine constructEngine( ScriptEngineManager manager ) throws IllegalArgumentException;
+}
diff --git a/src/main/java/org/apache/maven/plugins/scripting/ExecuteFile.java b/src/main/java/org/apache/maven/plugins/scripting/ExecuteFile.java
new file mode 100644
index 0000000..0c9ce9c
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugins/scripting/ExecuteFile.java
@@ -0,0 +1,126 @@
+package org.apache.maven.plugins.scripting;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+
+import javax.script.ScriptContext;
+import javax.script.ScriptEngine;
+import javax.script.ScriptEngineManager;
+import javax.script.ScriptException;
+
+/**
+ * Execute a script held in a file. Use the engine name to override the engine if the file name does not refer/decode
+ * to a valid engine name or not define any at all.
+ * @author Rusi Popov
+ */
+public class ExecuteFile extends Execute
+{
+
+  /**
+   * Not null, existing readable file with the script
+   */
+  private final File scriptFile;
+
+  /**
+   * Possibly null engine name
+   */
+  private final String engineName;
+
+  /**
+   * @param engineName optional engine name, used to override the engine selection from the file extension
+   * @param scriptFile not null
+   * @throws IllegalArgumentException when the combination of parameters is incorrect
+   */
+  public ExecuteFile( String engineName, File scriptFile ) throws IllegalArgumentException
+  {
+    if ( scriptFile == null
+         || !scriptFile.isFile()
+         || !scriptFile.exists()
+         || !scriptFile.canRead() )
+    {
+      throw new IllegalArgumentException( "Expected an existing readable file \"" + scriptFile + "\" provided" );
+    }
+    this.scriptFile = scriptFile;
+
+    this.engineName = engineName;
+  }
+
+  /**
+   * @param engine
+   * @param context
+   * @return
+   * @throws ScriptException
+   * @see org.apache.maven.plugins.scripting.Execute#execute(javax.script.ScriptEngine, javax.script.ScriptContext)
+   */
+  protected Object execute( ScriptEngine engine, ScriptContext context ) throws ScriptException
+  {
+    FileReader reader;
+
+    try
+    {
+      reader = new FileReader( scriptFile );
+    }
+    catch ( IOException ex )
+    {
+      throw new IllegalArgumentException( scriptFile + " caused:", ex );
+    }
+    return engine.eval( reader, context );
+  }
+
+  /**
+   * @see org.apache.maven.plugins.scripting.Execute#constructEngine(javax.script.ScriptEngineManager)
+   */
+  protected ScriptEngine constructEngine( ScriptEngineManager manager ) throws IllegalArgumentException
+  {
+    ScriptEngine result;
+    String extension;
+    int position;
+
+    if ( engineName != null && !engineName.trim().isEmpty() )
+    {
+      result = manager.getEngineByName( engineName );
+
+      if ( result == null )
+      {
+        throw new IllegalArgumentException( "No engine found by name \"" + engineName + "\n" );
+      }
+    }
+    else
+    {
+      extension = scriptFile.getName();
+      position = extension.indexOf( "." );
+
+      if ( position >= 0 )
+      {
+        extension = extension.substring( position + 1 );
+      }
+      result = manager.getEngineByExtension( extension );
+
+      if ( result == null )
+      {
+        throw new IllegalArgumentException( "No engine found by extension \"" + extension + "\n" );
+      }
+    }
+    return result;
+  }
+}
diff --git a/src/main/java/org/apache/maven/plugins/scripting/ExecuteString.java b/src/main/java/org/apache/maven/plugins/scripting/ExecuteString.java
new file mode 100644
index 0000000..b3171e5
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugins/scripting/ExecuteString.java
@@ -0,0 +1,87 @@
+package org.apache.maven.plugins.scripting;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import javax.script.ScriptContext;
+import javax.script.ScriptEngine;
+import javax.script.ScriptEngineManager;
+import javax.script.ScriptException;
+
+/**
+ * Execute a script held in a string
+ * @author Rusi Popov
+ */
+public class ExecuteString extends Execute
+{
+
+  /**
+   * Not null name of the engine to execute the script
+   */
+  private final String engineName;
+
+  /**
+   * The non-null script itself
+   */
+  private final String script;
+
+  /**
+   * @param engineName
+   * @param script
+   * @throws IllegalArgumentException
+   */
+  public ExecuteString( String engineName, String script ) throws IllegalArgumentException
+  {
+    if ( engineName == null || engineName.trim().isEmpty() )
+    {
+      throw new IllegalArgumentException( "Expected a non-empty engine name provided" );
+    }
+    this.engineName = engineName;
+
+    if ( script == null || script.trim().isEmpty() )
+    {
+      throw new IllegalArgumentException( "Expected a non-empty script provided" );
+    }
+    this.script = script;
+  }
+
+  /**
+   * @throws IllegalArgumentException
+   * @see org.apache.maven.plugins.scripting.Execute#constructEngine(javax.script.ScriptEngineManager)
+   */
+  protected ScriptEngine constructEngine( ScriptEngineManager manager ) throws IllegalArgumentException
+  {
+    ScriptEngine result;
+
+    result = manager.getEngineByName( engineName );
+    if ( result == null )
+    {
+      throw new IllegalArgumentException( "Unknown engine specified with name \"" + engineName + "\"" );
+    }
+    return result;
+  }
+
+  /**
+   * @see org.apache.maven.plugins.scripting.Execute#execute(javax.script.ScriptEngine, javax.script.ScriptContext)
+   */
+  protected Object execute( ScriptEngine engine, ScriptContext context ) throws ScriptException
+  {
+    return engine.eval( script, context );
+  }
+}
\ No newline at end of file


[maven-scripting-plugin] 06/11: [INFRA-16467] move components documentation out of CMS space

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit ae67d5e41279ea332b10a9cc74625fb3b192e30d
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Tue Jun 19 00:02:20 2018 +0200

    [INFRA-16467] move components documentation out of CMS space
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index bffad1b..c9e39d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -60,7 +60,7 @@ under the License.
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/components/${maven.site.path}</url>
+      <url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}</url>
     </site>
   </distributionManagement>
 


[maven-scripting-plugin] 09/11: Plugins should use asfMavenTlpPlgnBuild()

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit 5e6fa19c83c3b9efd7a90fb9d9ce7bc2061f6a92
Author: rfscholte <rf...@apache.org>
AuthorDate: Mon Feb 11 23:14:28 2019 +0100

    Plugins should use asfMavenTlpPlgnBuild()
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 09ac70f..e9f05f7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,4 +17,4 @@
  * under the License.
  */
 
-asfMavenTlpStdBuild()
+asfMavenTlpPlgnBuild()


[maven-scripting-plugin] 03/11: o Reverted last commit to reset to release version parent's.

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit e81cfb097d4654bf20f0220fb246c34036441aff
Author: Christian Schulte <sc...@apache.org>
AuthorDate: Sun Dec 18 03:37:05 2016 +0000

    o Reverted last commit to reset to release version parent's.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1774844 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 936a0ca..2af17e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@ under the License.
   <parent>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-plugins</artifactId>
-    <version>31-SNAPSHOT</version>
+    <version>30</version>
     <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
   </parent>
 


[maven-scripting-plugin] 05/11: Upgrade parent to 31

Posted by eo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch MSCRIPTING-1
in repository https://gitbox.apache.org/repos/asf/maven-scripting-plugin.git

commit ff07a8b02e7d945c71fe4c8bac7e4ccb82639b7c
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Tue Feb 13 20:24:20 2018 +0100

    Upgrade parent to 31
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 8e0b90f..bffad1b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@ under the License.
   <parent>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-plugins</artifactId>
-    <version>30</version>
+    <version>31</version>
     <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
   </parent>