GithubHelp home page GithubHelp logo

no main manifest in jars about c3po HOT 4 CLOSED

techmaurice avatar techmaurice commented on August 28, 2024
no main manifest in jars

from c3po.

Comments (4)

peshkira avatar peshkira commented on August 28, 2024

Maven is a build system. mvn clean package/install is not supposed to
create runnable jars.

Please read the guide and use mvn assembly:assembly.

cheers


Please excuse if short or if it does not make any sense. Sent via my phone

On 29.06.2013, at 17:22, Maurice de Rooij [email protected] wrote:

After compiling the maven file in the root of the project on Windows XP,
all jars fail to run, exiting with the message 'no main manifest attribute'.

Tried compiling with both mvn clean install and mvn clean package.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/67
.

from c3po.

techmaurice avatar techmaurice commented on August 28, 2024

Your dev guide tells to use mvn clean install
https://github.com/peshkira/c3po/wiki/Development-Guide

Additionally, isn't maven supposed to do just that, building runnable jars using maven-jar-plugin without additional assembly:assembly?

from c3po.

peshkira avatar peshkira commented on August 28, 2024

The dev guide states both things - how to build and how to create an executable jar.
Building just compiles the resources into jars that are suitable as dependencies for other projects. Runnable jars should be created in another fashion.
From the link above:

"In order to package the command line app into an executable jar, navigate to the cmd project and run mvn
assembly:assembly. This will create a jar with dependencies in the target folder. Just run it with java -jar c3po-0.4.0-jar-with-dependencies.jar and you will get some usage info."

Also, no. Maven is not supposed to do just that. As I said maven is a build system and is supposed to generate packages that can be resolved automatically and used by other developers in their projects. The maven jar plugin is just one of many plugins that extends the core functionality of maven and allows you create different jars with more complex structures - so does the maven assembly plugin, which I use.

If you read the maven lifecycle here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html,
you will see that install, for example, is supposed to create a package and put it in your local repository. If you use deploy, you can deploy the packages to maven central or bintray or other similar sites.

from c3po.

peshkira avatar peshkira commented on August 28, 2024

I am closing this issue now.
INVALID

from c3po.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.