commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niall Pemberton <niall.pember...@gmail.com>
Subject Re: [all] Compile-Source-JDK and Compile-Target-JDK
Date Wed, 15 Feb 2006 00:27:16 GMT
On 2/14/06, Wendy Smoak <wsmoak@gmail.com> wrote:
> On 2/13/06, Niall Pemberton <niall.pemberton@gmail.com> wrote:
>
> > Also exec and openpgp only have maven2 build files. I downloaded
> > maven2 and got as far as working out how to add manifest entries - but
> > I couldn't work out how to refernece the compile plugin configuration
> > - so I've left the JDK bits commented out in the sandbox's pom.xml:
> >
> >    http://tinyurl.com/737qc
> >
>
> I don't know how to get at the compiler config directly, but this
> seems to work.  Uncomment your lines in trunks-sandbox/pom.xml, and in
> trunks-sandbox/exec/pom.xml:
>
> <build>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>          <source>${maven.compile.source}</source>
>          <target>${maven.compile.target}</target>
>        </configuration>
>      </plugin>
>    </plugins>
>  </build>
>  <properties>
>      <maven.compile.source>1.3</maven.compile.source>
>      <maven.compile.target>1.3</maven.compile.target>
>  </properties>
>
> This is not foolproof-- it's still possible to compile the project
> without that configuration, but someone should eventually notice the
> expressions showing up in the manifest and fix it.  Or Brett will
> chime in with the right answer. :)

Thanks Wendy. I guess the trick is not to put the properties with
default values in the parent pom - that way what gets put in the
manifest is either true or not there (unless a component configures
the properties AND overrides the comiler configuration),

> BTW, the tests for exec won't run for me; I used
> -Dmaven.test.skip=true to build the jar so I could look at the
> manifest.

Thats what I did too,

Niall

> $ mvn install
> ...
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> java.lang.NoSuchMethodException: org.apache.commons.exec.TestUtil.<init>()
>        at java.lang.Class.getConstructor0(Class.java:2647)
>        at java.lang.Class.getConstructor(Class.java:1629)
>        at org.apache.maven.surefire.battery.JUnitBattery.getTestConstructor(JUnitBattery.java:307)
>
> --
> Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message