I created scala application and now I want to build jar.
I run mvn package than I try to run jar by command
java -jar target/burner-1.0-SNAPSHOT.jar
and I see error:
Failed to load Main-Class manifest attribute from
How can I define Main-Class property?
Do I need to create Manifest.mf? where?
Or I need to have mainclass property some...
Hi,
I'm using Hudson to build Maven-projects with the dedicated Maven 2 job. unfortunately, I can't find any way to publish the generated javadoc like it can be done using a "Free Style" job and the "Publish javadoc" option. Running the javadoc goal didn't link the generated javadocs.
Any ideas?
...
Hi Experts,
I am trying build a jar file with some dependencies. Initially i have installed all the jar file dependencies with mvn install:install-file command. Now Instead of that i given as below.
< dependency>
< groupId> POP< /groupId>
< artifactId>ROCK< /artifactId>
< version>1< /version>
< scope>sy...
Hi.
I've created a project that runs integration-tests on 3 web services. There's a project for each integration-test per web-service. I want all 3 integration-test projects to be run when executing the parent pom (outside of the 3 integration projects).
I've got the modules up and running but since each module deploys a WAR to its jet...
This is the structure of my project (exactly these five files):
/p1
pom.xml
/src
/main
/java
/webapp
a.html
b.xhtml
/WEB-INF
faces-config.xml
web.xml
I'm deploying this WAR to GlassFish and I can successfully access this URL: http://localhost:8080/p1/a.html. When I'm trying to ...
I have a EAR with a number of EJB dependencies. 2 of these have a provided scope dependency to the glassfish-embedded-all jar. However when I do a mvn install on my local machine or when the application is build through maven on hudson the ear always contains the glassfish-embedded-all jar.
e.g. DataAccess-ejb with provided dependency
...
Hi, I have a maven project that has both code and documentation (pdf files). When I create a release of my software, I'd like to package the jar file and the documentation for the user. Is there a "correct" way to do this in maven? Should I have a multiple modules - one for the code (it's a small project, so the code is a single module r...
Trying to create a Maven PHP project (just test) for Sonar
Generated empty project with
mvn archetype:generate
-DarchetypeGroupId=org.phpmaven -DarchetypeArtifactId=php5-web-archetype
-DarchetypeVersion=1.0 -DgroupId=org.sample -Dartifact=my-app
Then trying to compile empty test project with
mvn clean compile -e
And get...
In a pom.xml, when specifying a dependency version, what is the difference between LATEST and [0,) ?
In my opinion they should be equivalent, but for some dependencies, LATEST does not match any version, whereas [0,) does.
...
I share a config file between several modules and I don't want the config file to be baked into any of the JARs.
How can i make Maven do (resource) filtering on the file which is not specified as a resource but is in a config folder on the same level as the root POM?
...
Hi there!
I am trying to setup embedded glassfish maven plugin and I succeeded, but I can't make jsp files to be hot-swapped.
Here is my config:
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<instanceRoot>${project.bui...
I have a large Java Web Application project using Maven and I need to start a new project that will share most of the same code (so I don't have to repeat work), but not all of it. I'm going to copy the shared code into a new project (let's call it "root"). How do I make my original Project depend on root for source code? I can't just j...
Hi,
I'm in the process of deploying Nexus OSS as internal company repository.
One of the main requirements is that once a jar has been downloaded by Nexus (for example, when using is as a proxy of Maven Central) it will never change.
I know that Maven Central has that policy, but I'm using other repositories which are not under my cont...
I have a project with mixed Java and Scala sources, following the instructions on this page, which works when running Maven from the command line.
However, people using IDEs like IDEA and Netbeans have problems resolving Scala classes in Java code (but not the other way around, thanks to the nice plugins available). Is there a way to r...
I'm trying to use Hibernate for the first time, and early on in the getting started guide, it makes reference to Maven. If I'm not mistaken, Maven appears to be a build tool. However, I've been using Eclipse to build my project up to this point.
Is there a way for me to use Hibernate without needing Maven? Can I just do what I need t...
Hi I am new to Struts 2 and all the java web development, I created a basic struts2 application using maven and then added the struts2-rest-plugin to build my project; here is pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>tutorial</groupId>
<artifactId>tutorial</artifactId>
<pa...
Hi,
I check out the Mojarra JSF 2.0 helloworld sample from here (just enter guest as username).
I import it as maven project to eclipse (v 3.5) with a tomcat 6 server. I have the mojarra dependencies for running JSF 2.0 inside a servlet container.
When i package it and because the jsf dependencies have compile scope, these jar are alre...
If I'm looking at a class (MyComponent, say) somewhere underneath src/main/java in Eclipse, I can right click it and pick new...--> other --> JUnit test. Eclipse is smart enough to guess the name for the unit test class (MyComponentTest), but it insists on putting the unit test under src/main/java. Is there anything in Eclipse or m2Eclip...
As I said in title when i build ear the artifacts (wars and ejbs) are copied inside ear but the APP-INF/lib is missing, and i don't know what could be the reason.
This is a part of pom.xml:
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.3.2</version>
<configuration>
...
I know all of the philosophical arguments against preprocessors and macros in Java. I don't agree that just because some may abuse a language feature, it should be excluded for all.
I would like to include __FILE__ and __LINE__ macros in my Java and Scala code for efficient logging. Any use of Exception is unacceptable because of runtim...