"no main manifest attribute" и Maven

При попытке выполнения jar собранного с помошью maven, я столкнулся со следующей проблемой:

no main manifest attribute

Для решения этой проблемы нужно указать класс для выполнения. Как мы уже знаем, что в maven всё делается через плагины, вот пример моего pom.xml:

 

<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>ru.devhead</groupId>
  <artifactId>SuperApp</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>SuperApp</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  
   <build>
   <plugins>
   <plugin>
    <!-- Build an executable JAR -->
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
    <archive>
      <manifest>
      <addClasspath>true</addClasspath>
      <classpathPrefix>lib/</classpathPrefix>
          <mainClass>ru.devhead.superapp.App</mainClass>
      </manifest>
    </archive>
     </configuration>
    </plugin>
    </plugins>
    </build>

</project>

 

Теги: , ,

Дата: 19 августа 2012

Автор: Аноним

Комментарии: 282

Комментарии: 282

  1. mini cooper viagra commercial http://genericviagraindia100mg.com# viagra after prostate surgery [url=http://genericviagraindia100mg.com]generic viagra from mumbai india[/url] where can u buy viagra

  2. what does viagra cost http://genericviagraindia100mg.com# mini cooper viagra commercial [url=http://genericviagraindia100mg.com]viagra improves erectile function by[/url] how long does 25mg viagra last

  3. viagra from canada cheap http://genericviagraindia100mg.com# is viagra or cialis better [url=http://genericviagraindia100mg.com]generic viagra prescriptions over internet[/url] viagra replacement

  4. get viagra prescription online generic viagra from mumbai india ingredient in viagra [url=http://genericviagraindia100mg.com]india viagra pills[/url] viagra high

  5. best places to buy generic viagra http://genericviagraindia100mg.com# viagra where to buy over the counter [url=http://genericviagraindia100mg.com]cheap generic drugs from india[/url] reviews on viagra

  6. women viagra india viagra pills viagra white pill [url=http://genericviagraindia100mg.com]generic viagra from mumbai india[/url] viagra reaction time

  7. can you chew viagra generic viagra india price whats in viagra ingredients [url=http://genericviagraindia100mg.com]200 milligrams of viagra[/url] is viagra covered by medicaid

  8. viagra off label uses http://genericviagraindia100mg.com# movie about viagra [url=http://genericviagraindia100mg.com]natural viagra watermelon[/url] does medicaid cover viagra 2017

  9. viagra rezeptfrei kaufen generic viagra india price viagra online no prior prescription canada [url=http://genericviagraindia100mg.com]Find Out More[/url] viagra delivery

  10. ebay viagra viagra how to get your doctor to prescribe viagra [url=http://genericviagraindia100mg.com]generic viagra images[/url] canada viagra cialis

  11. viagra side effects blood pressure http://genericviagraindia100mg.com# cheap viagra no prescription [url=http://genericviagraindia100mg.com]generic viagra from mumbai india[/url] 12.5 mg viagra

  12. viagra strain http://genericviagraindia100mg.com# vardenafil vs viagra [url=http://genericviagraindia100mg.com]viagra from pharmacy in india[/url] female viagra cvs

  13. buy levitra online purchase viagra cheap where to cialis
    [url=http://cialis-walmart.com]cialis over the counter
    [/url] cialis and mania
    cialis over counter
    - cialis dosage forum newbie
    cialis vs viagra for women

  14. cialis pastilla https://canadianpharmacystorm.com# can viagra cause a heart attack [url=https://canadianpharmacystorm.com#]CanadianPharmacyStorm.com[/url] viagra condoms

Оставить комментарий

*

Комментарий:

Ваш e-mail не будет опубликован.
Обязательные поля помечены *

Разрешенные HTML теги:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>