Comments (4)
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.
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.
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.
I am closing this issue now.
INVALID
from c3po.
Related Issues (20)
- Release 0.4.0 Core and CLI - Community Ready HOT 2
- Remove Deprecated methods and libraries HOT 1
- [Core] Improve TIKA adaptor
- Redesign REST API
- Redesign overview
- [Core] archive extraction under windows/linux does not work HOT 5
- Allow parsing of many Elements from one file (by one adaptor)
- New Properties are not stored
- [Core] Systematic Sampling algorithm returns the same element.
- 64-bit database vs 32-bit database HOT 4
- play deployment start script not suitable for windows
- profile parameter crashes c3po-cmd
- many "creating application name" entries make application names unreadable HOT 1
- Create MySQL interface HOT 2
- Adding collection requires restart of Play deployment HOT 2
- Compile/build c3po HOT 2
- Database issue wit MongoDB v2.4.2
- Failed to load Main-Class manifest attribute from c3po-cmd-0.4.0.jar HOT 2
- Can't use zip inputs with assembled cmd jar HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c3po.