webdevelopersdiary / play2-maven-plugin

Automatically exported from code.google.com/p/play2-maven-plugin
0 stars 0 forks source link

Unable to build when upgrade to 1.0.0-alpha7 from 1.0.0-alpha6 #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Config Options:

        <scala.version.full>2.10.2</scala.version.full>
        <sbt.version>0.13.1</sbt.version>
        <sbt.compiler.maven.plugin.version>1.0.0-beta4</sbt.compiler.maven.plugin.version>
        <play2.plugin.version>1.0.0-alpha6</play2.plugin.version>
        <play2.version>2.2.3</play2.version>

Build setup on one of the projects:

<build>
        <sourceDirectory>${basedir}/app</sourceDirectory>
        <resources>
            <resource>
                <directory>${basedir}/conf</directory>
            </resource>
        </resources>

        <testSourceDirectory>${basedir}/test</testSourceDirectory>
        <testResources>
            <testResource>
                <directory>${basedir}/test-conf</directory>
            </testResource>
        </testResources>

        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <skipMain>true</skipMain> <!-- skip compile -->
                    <skip>true</skip> <!-- skip testCompile -->
                </configuration>
            </plugin>

            <plugin>
                <groupId>com.google.code.sbt-compiler-maven-plugin</groupId>
                <artifactId>sbt-compiler-maven-plugin</artifactId>
                <version>${sbt.compiler.maven.plugin.version}</version>
                <executions>
                    <execution>
                        <id>default-sbt-compile</id>
                        <goals>
                            <goal>compile</goal>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <scalaVersion>${scala.version.full}</scalaVersion>
                    <sbtVersion>${sbt.version}</sbtVersion>
                </configuration>
            </plugin>

            <plugin>
                <groupId>com.google.code.play2-maven-plugin</groupId>
                <artifactId>play2-maven-plugin</artifactId>
                <version>${play2.plugin.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <distAttach>true</distAttach>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>com.google.code.play2-maven-plugin</groupId>
                        <artifactId>play2-provider-play22</artifactId>
                        <version>${play2.plugin.version}</version>
                    </dependency>
                </dependencies>
            </plugin>

        </plugins>
    </build>

Changing the version from 1.0.0-alpha6 to 1.0.0-alpha7

I get the following error when running 'mvn clean install'

[ERROR] Failed to execute goal 
com.google.code.play2-maven-plugin:play2-maven-plugin:1.0.0-alpha7:enhance 
(default-enhance) on project public-rest-api: Execution default-enhance of goal 
com.google.code.play2-maven-plugin:play2-maven-plugin:1.0.0-alpha7:enhance 
failed: An API incompatibility was encountered while executing 
com.google.code.play2-maven-plugin:play2-maven-plugin:1.0.0-alpha7:enhance: 
java.lang.NoSuchMethodError: 
scala.Predef$.augmentString(Ljava/lang/String;)Ljava/lang/String;
[ERROR] -----------------------------------------------------
[ERROR] realm =    
plugin>com.google.code.play2-maven-plugin:play2-maven-plugin:1.0.0-alpha7--27553
7997
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = 
file:/Users/jamesmorgan/.m2/repository/com/google/code/play2-maven-plugin/play2-
maven-plugin/1.0.0-alpha7/play2-maven-plugin-1.0.0-alpha7.jar
[ERROR] urls[1] = 
file:/Users/jamesmorgan/.m2/repository/com/google/code/play2-maven-plugin/play2-
provider-play21/1.0.0-alpha7/play2-provider-play21-1.0.0-alpha7.jar
[ERROR] urls[2] = 
file:/Users/jamesmorgan/.m2/repository/com/google/javascript/closure-compiler/rr
2079.1/closure-compiler-rr2079.1.jar
[ERROR] urls[3] = 
file:/Users/jamesmorgan/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.
1.jar
[ERROR] urls[4] = 
file:/Users/jamesmorgan/.m2/repository/org/avaje/ebeanorm/avaje-ebeanorm-agent/3
.1.1/avaje-ebeanorm-agent-3.1.1.jar
[ERROR] urls[5] = 
file:/Users/jamesmorgan/.m2/repository/play/routes-compiler_2.9.2/2.1.5/routes-c
ompiler_2.9.2-2.1.5.jar
[ERROR] urls[6] = 
file:/Users/jamesmorgan/.m2/repository/com/github/scala-incubator/io/scala-io-fi
le_2.9.2/0.4.1/scala-io-file_2.9.2-0.4.1.jar
[ERROR] urls[7] = 
file:/Users/jamesmorgan/.m2/repository/com/github/scala-incubator/io/scala-io-co
re_2.9.2/0.4.1/scala-io-core_2.9.2-0.4.1.jar
[ERROR] urls[8] = 
file:/Users/jamesmorgan/.m2/repository/com/github/jsuereth/scala-arm/scala-arm_2
.9.1/1.1/scala-arm_2.9.1-1.1.jar
[ERROR] urls[9] = 
file:/Users/jamesmorgan/.m2/repository/play/templates-compiler_2.9.2/2.1.5/templ
ates-compiler_2.9.2-2.1.5.jar
[ERROR] urls[10] = 
file:/Users/jamesmorgan/.m2/repository/org/scala-lang/scala-compiler/2.9.2/scala
-compiler-2.9.2.jar
[ERROR] urls[11] = 
file:/Users/jamesmorgan/.m2/repository/org/scala-lang/scala-library/2.9.2/scala-
library-2.9.2.jar
[ERROR] urls[12] = 
file:/Users/jamesmorgan/.m2/repository/play/sbt-link/2.1.5/sbt-link-2.1.5.jar
[ERROR] urls[13] = 
file:/Users/jamesmorgan/.m2/repository/org/javassist/javassist/3.16.1-GA/javassi
st-3.16.1-GA.jar
[ERROR] urls[14] = 
file:/Users/jamesmorgan/.m2/repository/rhino/js/1.7R2/js-1.7R2.jar
[ERROR] urls[15] = 
file:/Users/jamesmorgan/.m2/repository/com/google/code/play2-maven-plugin/play2-
provider-api/1.0.0-alpha7/play2-provider-api-1.0.0-alpha7.jar
[ERROR] urls[16] = 
file:/Users/jamesmorgan/.m2/repository/com/google/code/sbt-compiler-maven-plugin
/sbt-compiler-api/1.0.0-beta4/sbt-compiler-api-1.0.0-beta4.jar
[ERROR] urls[17] = 
file:/Users/jamesmorgan/.m2/repository/org/apache/ant/ant/1.9.0/ant-1.9.0.jar
[ERROR] urls[18] = 
file:/Users/jamesmorgan/.m2/repository/org/apache/ant/ant-launcher/1.9.0/ant-lau
ncher-1.9.0.jar
[ERROR] urls[19] = 
file:/Users/jamesmorgan/.m2/repository/com/typesafe/config/1.2.0/config-1.2.0.ja
r
[ERROR] urls[20] = 
file:/Users/jamesmorgan/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[21] = 
file:/Users/jamesmorgan/.m2/repository/backport-util-concurrent/backport-util-co
ncurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[22] = 
file:/Users/jamesmorgan/.m2/repository/org/codehaus/plexus/plexus-interpolation/
1.11/plexus-interpolation-1.11.jar
[ERROR] urls[23] = 
file:/Users/jamesmorgan/.m2/repository/org/apache/maven/shared/maven-common-arti
fact-filters/1.4/maven-common-artifact-filters-1.4.jar
[ERROR] urls[24] = 
file:/Users/jamesmorgan/.m2/repository/org/codehaus/plexus/plexus-archiver/2.3/p
lexus-archiver-2.3.jar
[ERROR] urls[25] = 
file:/Users/jamesmorgan/.m2/repository/org/codehaus/plexus/plexus-io/2.0.6/plexu
s-io-2.0.6.jar
[ERROR] urls[26] = 
file:/Users/jamesmorgan/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/pl
exus-utils-2.0.6.jar
[ERROR] urls[27] = 
file:/Users/jamesmorgan/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.
7/plexus-build-api-0.0.7.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm 
ClassRealm[project>com.msm.aggregation:public-rest-api:0.3.0-SNAPSHOT, parent: 
ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]

Original issue reported on code.google.com by James.mo...@gmail.com on 24 Jul 2014 at 3:47

GoogleCodeExporter commented 9 years ago
Hi James

This looks strange, I see "play2-provider-play21" in log fragment, but you 
declare "play2-provider-play22". I have some questions, but your "pom.xml" 
would explain everything. Can you attach it (and parent-pom if there is one) 
here, or send me directly, if you don't want to publish it. If not, run "mvn 
clean package -X" and attach log file, please.

Original comment by gslowiko...@gmail.com on 26 Jul 2014 at 9:22

GoogleCodeExporter commented 9 years ago
Have you got any email address I can send this to since the logs contain 
information my employer may feel is sensitive etc?

Original comment by James.mo...@gmail.com on 28 Jul 2014 at 12:05

GoogleCodeExporter commented 9 years ago
you can find it in license header in any plugin's source file.

Original comment by gslowiko...@gmail.com on 28 Jul 2014 at 1:30

GoogleCodeExporter commented 9 years ago
I've sent you the log, thanks. 

Original comment by James.mo...@gmail.com on 28 Jul 2014 at 1:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Discussion continued "offline", but with no conclusions.

Original comment by gslowiko...@gmail.com on 12 Feb 2015 at 8:36