[mevenide-dev] [jira] Resolved: (MEVENIDE-580) Package doesn't start due to ClassCastException
"Milos Kleint (JIRA)" <jira-yCVjj/[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.devel |
|---|---|
| Message-ID | <8244009.1205479109350.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ http://jira.codehaus.org/browse/MEVENIDE-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Milos Kleint resolved MEVENIDE-580.
-----------------------------------
Resolution: Fixed
i believe the exception got there because the war-plugin you were using required maven 2.0.5+ (because of the plexus-util version it was using) but didn't correctly set the <mavenPrerequisite> element in it's pom.
in any case it should be working in current mevenide 3.1-SNAPSHOT which use the current maven 2.1-SNAPSHOT as embedded version.
> Package doesn't start due to ClassCastException
> -----------------------------------------------
>
> Key: MEVENIDE-580
> URL: http://jira.codehaus.org/browse/MEVENIDE-580
> Project: mevenide
> Issue Type: Bug
> Components: mevenide2-netbeans
> Affects Versions: NB_3.0
> Environment: Windows XP, Netbeans 6.0
> Reporter: Ken Borthwick
> Assignee: Milos Kleint
> Fix For: NB_3.1
>
>
> Packaging a war project in Netbeans 6.0 using the internal maven2 results in a ClassCastException. Switching it to the external Maven home works, but I can't debug.
> Here is the output from performing a build action.
> [war:war]
> Exploding webapp...
> Assembling webapp PghSurroundScreens in C:\Documents and Settings\kmborthwick\projects\PghSurroundScreens\target\amisys-web
> Copy webapp webResources to C:\Documents and Settings\kmborthwick\projects\PghSurroundScreens\target\amisys-web
> ------------------------------------------------------------------------
> [ERROR]FATAL ERROR
> ------------------------------------------------------------------------
> org.apache.maven.project.MavenProject
> ------------------------------------------------------------------------
> Trace
> java.lang.ClassCastException: org.apache.maven.project.MavenProject
> at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:269)
> at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:162)
> at java.io.Reader.read(Reader.java:122)
> at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
> at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
> at org.apache.maven.plugin.war.AbstractWarMojo.copyFilteredFile(AbstractWarMojo.java:921)
> at org.apache.maven.plugin.war.AbstractWarMojo.copyResources(AbstractWarMojo.java:415)
> at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:518)
> at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:347)
> at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:164)
> at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:610)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:551)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:530)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:309)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:276)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:92)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
> at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
> at org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:196)
> at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
> ------------------------------------------------------------------------
> Total time: 23 seconds
> Finished at: Wed Dec 19 14:03:53 EST 2007
> Final Memory: 80M/209M
> ------------------------------------------------------------------------
> Here is my war plugin config from my pom.
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <!-- Overlay Amisys WAR as shipped by DST onto PGH custom WAR.
> Assemble images for environment based on profile. -->
> <configuration>
> <warName>${app.name}</warName>
> <webXml>${app.webXmlDir}/web.xml</webXml>
> <webResources>
> <resource>
> <directory>${basedir}/src/main/webapp</directory>
> <filtering>true</filtering>
> <excludes>
> <exclude>**/*.txt</exclude>
> <exclude>**/*.xslt</exclude>
> </excludes>
> </resource>
> <resource>
> <directory>${basedir}/src/main/PGHImages/${env}</directory>
> <filtering>false</filtering>
> <includes>
> <include>**/*.jpg</include>
> </includes>
> <targetPath>images</targetPath>
> </resource>
> <resource>
> <directory>${basedir}/src/main/PGHImages/${env}</directory>
> <filtering>false</filtering>
> <includes>
> <include>**/*.gif</include>
> </includes>
> <targetPath>images/backgrounds</targetPath>
> </resource>
> </webResources>
> </configuration>
> </plugin>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email