How to use downloaded version of andromda to create and compile Project? - maven

I am creating andromda project using following command
mvn org.andromda.maven.plugins:andromdapp-maven-plugin:3.4-SNAPSHOT:generate
This generates project using the latest version of andromda and using Web. I wish to create and compile andromda Project using downloaded andromda directory jars or binaries. Is it possible??? If yes then how??

To do this download the binaries of andromda version and run mvn install through command line in the main folder of downloaded andromda project. It will start to build and will put all the jars in maven repository. Now when generating the project you have to pass the version of the andromda whose binaries you have built. It will go directly to maven repo.

Related

How to check maven installed in Drools machine

I have installed Drools in my machine and we have m2 repository in our linux machine. Does that mean maven installed in my machine.
If type mvn -v its saying command not found.
I am new to this maven. Kindly help me out
Drools is a library. It does not "install". You add it as a dependency to a Java project. If you "installed" something, it's not Drools. Perhaps it's jBPM or some other application which uses Drools.
Maven is a toolchain. When you install it, the zip file includes a binary that you need to put on your path. That binary (mvn) allows you to run from the commandline.
The two are not related in any way.
If you get an error when trying to run mvn -v that the command is not recognized, that means that the Maven binary is not on your path. Find where you installed Maven, locate the 'bin' directory in that installation, and add that bin directory to your Path environment variable.
If you did not install Maven, and therefore don't have an install directory, you probably want to go do that. Don't forget to put the bin directory on your path after installing.
(A less common way of using Maven involves packaging a mvn.cmd or mvn.sh script with your project itself so that you don't need to have Maven installed globally. If this is what you're doing instead, you need to run the mvn command from the same directory as that script.)

how to use mvnw command for first project setting

I am new to maven and have some basical questions.
When I see some projects, there is mvnw file included.
What I know is I dont need to install maven on my local if I use mvnw.
My question is:
what will happen when I firstly execute mvnw install?
maven with certain version is automatically installed on my local?
can I use like mvn compile instead of mvnw compile after executing mvnw install?
Thanks in advance.
what will happen when I firstly execute mvnw install? maven with certain version is automatically installed on my local?
The mvnw command will look for maven-wrapper.jar in the .mvn/wrapper directory. It will automatically download this jar file if it is not present there. We can consider this step as installing maven in the local machine just for this project. And the version of maven-wrapper.jar installed depends on the configuration in the mvnw command. On the other hand, if the maven-wrapper.jar is already present in the ./mvn/wrapper directory, the mvnw command simply uses it.
can I use like mvn compile instead of mvnw compile after executing mvnw install?
If you have maven installed in your local machine, you certainly can use mvn compile instead of mvnw compile, as long as the version of maven installed in the local machine is compatible with the project. However this can cause problems if the maven installed in the local machine is an older version and the project requires a newer version, or the the other way around.

How to install maven toll for dependencies in netbeans in windows?

I recently started a project and learnt that I need to install depended packages manually and i'm very much lazy to do so. I searched and got Maven, but installation process is missing. How do I do it?
Download the latest Netbeans from here..
https://netbeans.org/downloads/
Maven is embedded in Netbeans, then you'd only create a new Maven project from the file menu... And you will manage you dependencies easily..
I have downloaded NetBeans new version when I try to create a new project, Maven Project is already there.

Old Maven Dependency has Broken My Build

I downloaded the following library, navigated to its directory, and entered mvn install.
Since then, my Grails project in STS will not build:
General error during conversion: Error grabbing Grapes -- [download
failed: org.codehaus.groovy#groovy;1.7.11!groovy.jar]
I think I accidentally added a dependency on the old groovy 1.7.11. How can I remove the library and fix my Grails project?
This project uses the old (v 1.x) version of groovy-eclipse. Here's how to fix:
delete .project and .classpath (outside of eclipse)
install m2e v1.2 into your eclipse
install the groovy-eclipse m2e configurator
import project using the "Import existing maven project wizard"
Rejoice

How to deploy own files from maven

I am installing and running sakai project from command prompt
mvn install sakai:deploy
but command prompt show me error that 2 artifact missing that is 2 jar files are missing dwnload it manually
i am dwnload it and save it in local system then how i can install and deploy it
When you build Sakai it will generate that missing jar file and place it into the local maven repo. That said, this version of Sakai is very old and you should be running Sakai 10. We suggest you upgrade to Sakai 10 and maven 3. If you do, this issue will go away.
The process for building Sakai is as follows:
Open a command line shell
Change directory to your Sakai source root directory (should contain many directories including the "master" directory)
Execute mvn clean install to build the Sakai source using maven
Note: The build will take an extra 5-10 minutes to download dependencies the first time
Execute mvn sakai:deploy to deploy Sakai to your tomcat using maven
Partial builds are supported by the maven2/3 build system
You can do a "mvn clean install sakai:deploy" from any subdirectory and build just that code
Once you have downloaded the jars you can run maven off-line with mvn -o clean install sakai:deploy
As i can understand you have to manually add the jar in .m2 repository where it needs to be or
add dependency in pom.xml for it(it will automatically add it in repository).
One more thing you can try, go to project>right click>build path> add external jar (it will add the jar to your project).

Resources