Shouldn't it be pom.repository.connection?
--
dIon Gillard, Multitask Consulting



"Tim Riley" <[EMAIL PROTECTED]> wrote on 07/05/2004 11:08:05 PM:

> I have attempted to parameterize some of the values in the project.
> xml specifically
> <repository>
>     <connection>${project.repository.connection}</connection>
>     <url>${project.repository.url}</url>
> </repository>
> 
> and several issues arise...
> 
> 1. I receieve a Method Innvocation Exception 
> [MethodExpression] Cannot evaluate expression
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.
> invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.
> invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.commons.betwixt.expression.MethodExpression.
> evaluate(MethodExpression.java:96)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> writeContent(AbstractBeanWriter.java:658)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> writeRestOfElement(AbstractBeanWriter.java:539)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> write(AbstractBeanWriter.java:481)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> writeContent(AbstractBeanWriter.java:643)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> writeRestOfElement(AbstractBeanWriter.java:539)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> write(AbstractBeanWriter.java:513)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> write(AbstractBeanWriter.java:233)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> writeContent(AbstractBeanWriter.java:630)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> writeRestOfElement(AbstractBeanWriter.java:539)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> write(AbstractBeanWriter.java:513)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> write(AbstractBeanWriter.java:233)
>         at org.apache.commons.betwixt.io.AbstractBeanWriter.
> write(AbstractBeanWriter.java:162)
>         at 
org.apache.commons.betwixt.io.BeanWriter.write(BeanWriter.java:217)
>         at 
org.apache.maven.MavenUtils.getProjectString(MavenUtils.java:374)
>         at 
org.apache.maven.MavenUtils.getInterpolatedPOM(MavenUtils.java:341)
>         at 
org.apache.maven.MavenUtils.getJellyProject(MavenUtils.java:319)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:145)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:126)
>         at org.apache.maven.MavenSession.
> initializeRootProject(MavenSession.java:234)
>         at 
org.apache.maven.MavenSession.initialize(MavenSession.java:174)
>         at org.apache.maven.cli.App.doMain(App.java:457)
>         at org.apache.maven.cli.App.main(App.java:1117)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.
> invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.
> invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> Caused by: java.lang.StringIndexOutOfBoundsException: String index 
> out of range: -1
>         at java.lang.String.substring(String.java:1444)
>         at 
org.apache.maven.project.Repository.getCvsRoot(Repository.java:129)
> 
> 
> however this does not arise when I hard code the connection.
> 
> 2. When I implement the <developerConnection> without implementing 
> the <connection> the generated html does not display the 
> <developerConnection> section.
> 
> Does anyone have any advice on how to proceed or are these bugs 
> currently under development.
> 
> Thanks Tim


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to