in my J2EE project I've a couple of dependencies, which are not available in any Maven repository, because they're proprietary libraries. These libraries need to be available at runtime, so that ... |
I'm currently using the jar-with-dependencies assembly to create such a jar. However, the name of my jar is a bit long.
Since this jar is being used by RPG ... |
I can build a deployable jar just fine on my local machine, but when trying to use jar built off our server, even if I explicitly invoke the command by hand, ... |
In a pom.xml, if we are trying to compile and create a JAR, the name will be taken as
<artifactId>-<version>.jar
Is there a property or setting which can change the default separator ... |
I run my application using mvn jetty:run
At compile time everything is fine, my row
Tidy tidier = new Tidy();
tidier.setInputEncoding("UTF-8");
compiles fine and the classpath shows ... |
I have a jar files that cannot be found on maven2 repository. i interested to add the jar so i can just include extra tag in my pom.xml file and ... |
I'm relatively new to the maven mantra, but I'm trying to build a command-line runnable jar with maven. I've setup my dependencies, but when I run mvn install and attempt to ... |
|
I'm trying to get the hibernate-sqlite project to work. I downloaded it and can run
mvn eclipse:clean
and
mvn eclipse:eclipse
like the instructions say. And I can import the project into Eclipse. ... |
How can i make a project jar release and maven repository strucuture(md5hash,distribution pom,etc) to put this in my own repository? Maven have a plugin to do it? Note, i need to ... |
I am installing to Maven repository our internal files using mvn install:install command. All Jars installed in such way have version name added automatically as a suffix. Since we have many ... |
I developed a Java utility library (similarly to Apache Commons) that I use in various projects.
Additionally to fat clients I also use it for mobile clients (PDA with J9 Foundation ... |
trying to install a 3rd party jar into my repository (alfresco-repository.jar). I'm using the following command:
mvn install:install-file -DgroupId=alfresco -DartifactId=alfresco -Dversion=3.1 -Dpackaging=jar "-Dfile=C:/Users/xxx/Development/WIP/Alfresco/common/jars/alfresco/3.1/lib/alfresco-repository-3.1.jar" -DgeneratePom=true -e
and I'm getting the following exception (-e used ... |
I have a java application for exaple see below.
myProject
|
|----src
| |
| |--main
| ...
|
I have a used the maven assembly plugin to create multiple jar from one jar now the problem is that I have to publish these jar to the local repo, ... |
Has anybody used maven and yguard for obfuscating jar files?How to do so?
|
I have some proprietary.jar that I need to include in my project, but I don't wish to install it to the local repository.
What I did initially was to put the jar ... |
How can I convince my corp employer, than jars from the Maven repositories are safe for use? I've conducted a count of jars on my local repo and it came back ... |
I have a .jar that I want included in my IDEA web application project that is using maven2 (pom.xml).
How can I add a .jar to my project that isn't using maven?
... |
We have several maven projects, which are built on the build server. In some cases we want to sign our deliverables. We use Maven Jarsigner Plugin to do that.
We ... |
I have a maven project which uses the shade plugin to create a jar from several projects.
In addition it is possible with this plugin to create a source jar from these ... |
I want to deliver a single .jar file to my clients, but my project is currently built with Maven, and I have several modules that generate a single .jar each.
I know ... |
I'm using the "shade" Maven2 plugin to build a monolithic JAR with all Java dependencies bundled together. The relevant section in pom.xml is pretty straightforward:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
...
|
I am using maven jar plugin to package the jar file. But it looks like maven jar plugin just only pack the stuff that stay inside target/classes. I am also want ... |
i am using maven assembly plugin to pack a jar file.
But when i run mvn package, maven always trigger the [jar:jar {execution: default-jar}] to create a default jar file.
So i ... |
I am using an external, proprietary jar in my project. When I hard-code the path as follows in my pom.xml, it works fine:
<dependency>
<groupId>com.foo.bar</groupId>
<artifactId>bar</artifactId>
<version>5.2</version>
...
|
I am in the process of conversion of an existing project into Maven & their build and release process.
My structure is like this
ParentProj
-Child1
-Child2
-ChildWeb3
-ChildWeb4
I am not sure what the maven best practices ... |
i have a maven project using the maven soapui plugin.
Unfortunately this one in my case need an external jar for jdbc for
some groovy scripts.
And according to their ... |
I received a source code bundle. Inside the src directory tree there are some properties files(.properties) which I want to keep in the output jar in the same place. e.g: I ... |
I have a maven build which generates some duplicated JARs in classpath.
Here are some examples:
groupId: javax.xml.stream
artifactId: stax
version: 1.0-2
groupId: stax
artifactId: stax
version: 1.0.1
groupId: jboss
artifactId: javassist
version: 3.7.0 GA
groupId: javassist
artifactId: javassist
version: 3.9.0 GA
These JARs are ... |
I'm having some difficulty including a directory into the jar maven is creating. I need the actual directory in the jar, not just the files in it.
By using:
<resources>
<resource>
...
|
I have the following pom file:
<build>
<defaultGoal>package</defaultGoal>
<sourceDirectory>src/web</sourceDirectory>
<plugins>
<plugin>
...
|
I want to make a Maven meta-project; it won't contain any code, just a pom.xml. The purpose of the project is to have a place where I can declare some dependencies, ... |
I am trying to download http://mvnrepository.com/artifact/net.sf.json-lib/json-lib/2.1 in my POM. However, the actual jar is named json-lib-2.1-jdk15.jar. Maven is looking for the artifact name + version, hence json-lib-2.1.jar. So, it's ... |
I write a gui app , and use image files (gif) as icons. When I run the app in my IDE - the icons appear. When I run it from a ... |
I am doing a maven project. Everything is fine when compiling and running my project in an idea, but whenever I create jar file, my external jar files in web/lib/ cannot ... |
I want to add mysql tables into my jar file. How can I do this with maven project ?
|
I created jar file with maven but there was an NullPointerException is thrown because I used jgoodies form I think. But an idea When the project is run, there is no ... |
Is there a way to get the source jar besides the binary jar by using maven?
|
I want to built my application with maven but it says:
Missing:
----------
1) javaee:javaee-api:jar:5
Try downloading the file manually from the project website.
Then, install it using the command:
...
|
Suppose you are working on a big project, which is run on some application server (let's say Tomcat, but it may be also Jboss, or Jetty, or something else). The project ... |
This is more of a pattern question. I am using maven to create a three module project.
Domain, Services, Site
The services module depends on the domain module. Now in the services module ... |
I want to create a jar file containing downloaded and processed Internet files. And I want to do it using Mave. So, instead of compiling my .java classes and create a ... |
I'm using Maven and the izpack-maven-plugin for one of my java project.
My izpack files are in ${basedir}/izpack.
My install.xml file is in ${basedir}/src/main/filter and is filtered during the package phase
<resources>
...
|
Here is what my build plug in stanza looks like:
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
<executions>
...
|
I have the third party jar's in my WEB project placed at /src/main/webapp/WEB-INF/lib/
I have mentioned the dependency for all the required JAR's in the pom.xml.
Now, Since the dependencies are defined in ... |
I would like to generate two jars from the same maven project when executing a mvn clean install.
The only difference between the two jars, will be the content of the META-INF ... |
First, a not-so-brief backgrounder (...my apologies in advance for the LONG question... skip to paragraph #6 to get to the actual question :-) ...Long-time maven users know the pains of the ... |
I am new to Maven and using it to build a project on my local. This is working nicely on my local. Now, I want to run the same project on ... |
I am using a maven plugin that requires a class that is contained in the jdk's (windows) tools.jar (mac it's in classes.jar).
I add this as an explicit dependency of the plugin ... |
I want to replace an item in an existing jar/zip file while doing the maven build. What is the easiest way to achieve this? Thank you.
|
I am writing an application that consists of many artifacts. Some are jars and some are other types. The problem I am having has to do with testing. I am using ... |
I have the following POM entry
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>3.3.0</version>
</dependency>
When I build my project it downloads the following files:
- jna-3.3.0.jar
- jna-3.3.0.jar.sha1 ...
|
I have an application which is deployed into Jetty but is not packaged into single war file. Contrary, it is stored as a folder. There are quite a lot of dependencies ... |
I'd like to place my output jar and jar-with-dependencies into another folder (not in target/ but in ../libs/)
How can I do that?
Thanks
|
how do i get maven to run a specific method of mine before it creates the jar file?
basically, i have java code in my junits folder (not a test, just a ... |
I've download Guice 2.0 and 3.0 via Maven, and can't find the entire com.google.inject.assistedinject package in the jar. All the other components of Guice seem to be there, but |
How do I download JAR during a build in Maven script?
|
Eclipse is unable to find and download the following jar:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcomponents-client</artifactId>
<version>4.1.2</version>
<packaging>pom</packaging>
</dependency>
http://search.maven.org/#artifactdetails|org.apache.httpcomponents|httpclient|4.1.2|jar
http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.1.2/httpcomponents-client-4.1.2.jar
Resolved: I dunno where the pom came from.
Is missing.
|
I use the javax:javaee-api-6.0.jar maven artifact.
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
I would like to download it's source code with the dependency:sources mvn goal.
I was looking for the sources ... |
I have feeling I will get down voted. Please pardon my ignorance on this subject as I need to get this working soon.
Basically, I have two dependencies. Same GroupId, Same ... |
I'm converting an Ant based project to be buildable by Maven. Standard build is working for now. I'm trying to migrate the additional build targets which are specified in the original ... |
I have some jar files that I need to include in my build - I'd rather not specify them as system dependencies - that creates a nightmare for setup. I have ... |
I would like to have Maven download the JARs listed in a pom.xml file. How do I do that? Currently, Maven wants to compile the project (and it fails). ... |
I'm trying to build a Java 5 system using Java 6. I have configured and with 1.5, but I also need to set to point at a Java ... |
While reading about Maven I came across the line below.
A very significant aspect of Maven is the use of repositories to
manage jar files across different projects.
But, to ... |
I package all my dependency jars in the lib folder of my final jar. But when I use command to execute like java -cp my.jar MyMainClass, it said that can not ... |
I am using One-Jar's maven plugin to package my java into one jar with all it's dependencies.
The project has a resource called schema.xsd.
when I run the jar file using java -jar ... |
We have a multiwar project and with various people working on the project a lot of times, lots of unused jars are still specified as dependencies, is there any way , ... |
I am using maven2 to build the java project. when I am trying to build using mvn install I am getting the compilation error saying some package xya.abc.aaa doesnot ... |
Hi I am using maven2 to build my project. I am able to generate the jar file using maven build with the command mvn clean install.
I have added this plugin to ... |
We are building a maven based project. Now I am trying use the shade plugin to generate a runnable jar file.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.myCompany.mainClass</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>apache maven</id>
<url>http://repo1.maven.org/maven2/org/apache/maven/plugins</url>
</pluginReposit
|
I am currently developing an maven based application. I want to make a bat file to run final jar. I've wrote bat file with call to java -jar... and put it ... |
I do not understand maven. Better use ant, but... I've managed to create jar (with, or without dependencies), I've managed to copy bat runner script close to jar but now i ... |
I want to generate a ws client[JAX-WS ] bundled into a jar. is where it's at but no one even talks about putting the generated client into a jar! I am using Maven for builds. I'd like to set up maven to generate the client (wsimport or clientgen) when we build the service, then add that generated code's jar as a ... |