Hi Steve, Stephen McConnell wrote on Wednesday, December 17, 2003 12:00 AM: > If you take a look at the binary download you will see that > the manifest > has the main-class attribute (its set by the mavan jar plugin) - and > that was build using Maven beta-10 on windows NT4. I can only assume > that there is something strange going on with your maven installation.
since Maven has decoupled the Maven version itself from the plugin's version, you have to refer now the plugin's version directly. But you're right, building merlin with the latest jar-plugin of version 1.4-SNAPSHOT, the Main-Class entry is missing. Using version 1.3 of the jar-plugin the manifest is fine: ====== snip ======== Manifest-Version: 1.0 Ant-Version: Apache Ant 1.5.3 Created-By: Apache Jakarta Maven Built-By: jos Package: org.apache.avalon.merlin.cli Build-Jdk: 1.4.2 Extension-Name: merlin-cli Specification-Version: 1.0 Specification-Vendor: Apache Software Foundation Specification-Title: Merlin CLI Implementation-Version: 3.2-dev Implementation-Vendor: Apache Software Foundation Implementation-Vendor-Id: ASF Main-Class: org.apache.avalon.merlin.cli.Main ====== snap ======== Unfortunately this is not enough, Merlin stops with an exception: ====== snip ======== [1] [EMAIL PROTECTED] ~/Elsag/Apps/Avalon/avalon/merlin/target/merlin/bin $ merlin.sh info RUN CMD IS: "/mnt/c/SDK/j2sdk1.4.2/bin/java" "-Djava.security.policy=C:\Work\Apps\Avalon\avalon\merlin\target\merlin/bin/security.policy" "-Dmerlin.home=C:\Work\Apps\Avalon\avalon\merlin\target\merlin" "-Djava.ext.dirs=C:\Work\Apps\Avalon\avalon\merlin\target\merlin/ext" -jar "C:\Work\Apps\Avalon\avalon\merlin\target\merlin/bin/lib/merlin-cli-3.2-dev.jar" "info" Download from: [http://dpml.net/xml-apis/jars/xmlParserAPIs-2.0.2.jar] ... Download from: [http://dpml.net/xml-apis/jars/xml-apis-2.0.2.jar] ..................... Download from: [http://dpml.net/xerces/jars/xerces-2.4.0.jar] ................................................................................................................................................................................................................................................... ---- runtime exception report -------------------------------------------------- Exception: org.apache.avalon.merlin.KernelRuntimeException Message: Unable to transform the token: [info] due to an unexpected error. ---- cause --------------------------------------------------------------------- Exception: org.apache.avalon.merlin.KernelRuntimeException Message: Unable to resolve the block path [info]. ---- stack trace --------------------------------------------------------------- org.apache.avalon.merlin.KernelRuntimeException: Unable to resolve the block path [info]. org.apache.avalon.merlin.impl.DefaultCriteria.resolveURL(DefaultCriteria.java:731) org.apache.avalon.merlin.impl.DefaultCriteria.getDeploymentURLs(DefaultCriteria.java:446) org.apache.avalon.merlin.impl.DefaultFactory.create(DefaultFactory.java:474) org.apache.avalon.merlin.cli.Main.<init>(Main.java:322) org.apache.avalon.merlin.cli.Main.main(Main.java:274) -------------------------------------------------------------------------------- ====== snap ======== At least I know now, that the scripts run in Cygwin. Shall I put them into an BugZilla issue? Regards, J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
