leiningen has a target you can call like this:

lein pom

maybe setting up a fake simple lein project
you can watch how the generated pom is different from yours.

On Wed, Dec 7, 2011 at 1:32 PM, Riccardo <riccardo.novie...@gmail.com> wrote:
> The error shown in Ubuntu, when I try to execute the jar file, is:
> "Failed to load Main-Class manifest attribute from '...demo.jar' "
>
> I suppose I am missing something in the main structure...
>
> This is the pom:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>com.snowtide</groupId>
>    <artifactId>easy-maven</artifactId>
>    <packaging>jar</packaging>
>    <version>1.0-demo</version>
>    <name>Clojure004</name>
>    <dependencies>
>        <dependency>
>            <groupId>org.clojure</groupId>
>            <artifactId>clojure</artifactId>
>            <version>1.1.0</version>
>        </dependency>
>        <dependency>
>            <groupId>org.clojure</groupId>
>            <artifactId>clojure-contrib</artifactId>
>            <version>1.1.0</version>
>        </dependency>
>    </dependencies>
>
>    <build>
>        <plugins>
>            <plugin>
>                <groupId>com.theoryinpractise</groupId>
>                <artifactId>clojure-maven-plugin</artifactId>
>                <version>1.3.2</version>
>                <executions>
>                    <execution>
>                        <id>compile-clojure</id>
>                        <phase>compile</phase>
>                        <goals>
>                            <goal>compile</goal>
>                        </goals>
>                    </execution>
>                </executions>
>            </plugin>
>        </plugins>
>    </build>
>
>    <repositories>
>        <repository>
>            <id>clojure</id>
>            <url>http://build.clojure.org/releases</url>
>        </repository>
>    </repositories>
> </project>
>
> Thanks!
>
>
> On Dec 7, 2:34 am, Richard Lyman <richard.ly...@gmail.com> wrote:
>> Can you provide the pom you're using?
>>
>> By 'build' do you mean AOT?
>>
>> -Rich
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Dec 6, 2011 at 3:35 PM, Riccardo <riccardo.novie...@gmail.com> wrote:
>> > Hello, I am doing my dissertation project with Clojure and I am using
>> > Maven to build. It works on REPL and it build successfully, but the
>> > JAR file doesn't work, it says: "Java Exception" all the time. Any
>> > suggestion?
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Clojure" group.
>> > To post to this group, send email to clojure@googlegroups.com
>> > Note that posts from new members are moderated - please be patient with 
>> > your first post.
>> > To unsubscribe from this group, send email to
>> > clojure+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/clojure?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Matteo Moci
http://it.linkedin.com/in/matteomoci
http://about.me/matteomoci/bio

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to