maven-2

Using Sonatype nexus in local network [closed]

試著忘記壹切 提交于 2019-12-18 11:47:53
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I've successfully created a small software engineering environment (SEE) for Java applications that is - amongst other tools - based on maven and nexus. My actual problem is - not a real surprise - that nexus usually requires access to the internet to to get the requested

log4j configuration file in a multi-module Maven project

我只是一个虾纸丫 提交于 2019-12-18 11:32:39
问题 I am working on a multi-module Maven project, whose structure is like this: war-module jar-module The war-module depends on the jar-module, and will add the jar artifact into the webapp's lib directory after packaging. And both the war-module and jar-module use Apache log4j for logging, and share the same log4j configuration file (log4j.xml), which locates in jar-module project at present. And this log4j.xml will be packaged into jar-module.jar file, however, I would like to make it into WEB

Convert files to UNIX format using Maven

大城市里の小女人 提交于 2019-12-18 11:25:22
问题 I have an application that is developed in a Windows environment. The application itself gets deployed to a Linux environment. Each time I deploy this application I have to convert executable files to UNIX format using dos2unix. I originally thought this was caused by the Windows CP1252 encoding, so I updated Maven to encode the files to UTF-8. This didn't solve my issue and I quickly found out that this has to do with carriage returns and line feeds by searching this site. Is there a way to

Where is the play framework maven repository?

假如想象 提交于 2019-12-18 11:19:38
问题 Trying to get my code to compile magically using maven dependancies. I can't find the playframework on any 3rd party maven repository. Can someone help ? I is even deployed anywhere ? 回答1: In typesafe Repo <repositories> <repository> <id>typesafe</id> <name>typesafe-releases</name> <url>https://repo.typesafe.com/typesafe/releases</url> </repository> </repositories> The dependency is: <dependency> <groupId>play</groupId> <artifactId>play_2.9.1</artifactId> <version>2.0.2</version> </dependency

Maven: How to use jetty:run in a multi-module Maven project, without needing to install

僤鯓⒐⒋嵵緔 提交于 2019-12-18 11:19:30
问题 I'm new to Maven. I have a multi-module maven 2 project that has the following structure (somewhat simplified): Project (POM packaging) | +-- Module1 (JAR) | | | +-- src | | | +-- main | | | +-- java | +-- resources | +-- Module2 (JAR) | | | ... | +-- Web Module (WAR) | ... I've configured the Web Module to include the Maven Jetty plugin. This works great for building the production artifacts. For development, I discovered that I need to call mvn install on any module that I change, followed

ClassNotFoundException when running a Spring + Maven2 project on Tomcat 6 from within Eclipse 3.5

蹲街弑〆低调 提交于 2019-12-18 11:11:17
问题 When trying to launch a Web project from within Eclipse I get: SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at org.apache.catalina.core.StandardContext.listenerStart

ClassNotFoundException when running a Spring + Maven2 project on Tomcat 6 from within Eclipse 3.5

爱⌒轻易说出口 提交于 2019-12-18 11:09:38
问题 When trying to launch a Web project from within Eclipse I get: SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at org.apache.catalina.core.StandardContext.listenerStart

Maven plugins to analyze javascript code quality

余生长醉 提交于 2019-12-18 10:42:59
问题 Javascript code can be tough to maintain. I am looking for tools that will help me ensure a reasonable quality level. So far I have found JsUNit, a very nice unit test framework for javascript. Tests can be run automatically from ant on any browser available. I have not found yet some javascript equivalent of PMD, checkstyle, Findbug... Do you know any static code analysis tool for javascript ? 回答1: This is an old thread, but if you're interested in running Jasmine for BDD testing in your

Maven “shaded” JAR is prefixed with “original” in the file name

孤人 提交于 2019-12-18 10:35:07
问题 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> <artifactId>maven-shade-plugin</artifactId> <version>1.4</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <finalName>${project.artifactId}-${project.version}-SHADED</finalName> <transformers> <transformer

how to release a project which depends on a 3rd party SNAPSHOT project in maven

微笑、不失礼 提交于 2019-12-18 10:22:45
问题 i would like to release a snapshot project 'foo-1.0-SNAPSHOT' using the maven release plugin. The project depends on a 3rd party module 'bar-1.0-SNAPSHOT' which is not released yet. I use the option 'allowTimestampedSnapshots' in my project's pom.xml to allow timestamped snapshots but i assume that the 3rd party module (bar) is not timestamped unless i build it myself as maven still complains about unresolved SNAPSHOT dependencies. Is there a way to release the project foo regardless of