m2eclipse

servlet packages not importing after converting project to maven project in eclipse

别来无恙 提交于 2019-12-11 08:26:30
问题 I have a dynamic web application that I've converted to a maven project in Spring Toolsuite (Eclipse, basically.) The project now has a pom.xml file, but the Java Build Path no longer has the jars I used to use because maven is supposed to handle the dependencies. I put the dependencies in the pom like this: <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>(,1.0]</version> </dependency> </dependencies> and I included a repository like

Maven workspace resolution horked

[亡魂溺海] 提交于 2019-12-11 06:56:21
问题 I'm using m2eclipse to manage maven projects. Somehow I did a bad thing, and now the system is behaving as if workspace resolution is disabled. I have several projects that depend on a main project. This project has a version of 4.0-SNAPSHOT, and all the dependent projects reference it in the dependencies section of their poms. Everything was working fine until I created an entirely new project and mistakenly copied the pom from the main project into the new project. Suddenly, all of the

Maven Failing download the JBoss dependency

喜你入骨 提交于 2019-12-11 06:17:32
问题 Below are my maven settings from behind the proxy User Settings: <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>D:\path\mvn_repo</localRepository> <pluginGroups></pluginGroups> <proxies> <proxy> <active>true</active> <protocol>https</protocol> <username>myusername<

ClassNotFoundException when I try to deploy to Tomcat / tc Server in Eclipse / STS

可紊 提交于 2019-12-11 04:19:05
问题 I'm new to Eclipse/STS, and I am having deploying to Tomcat / tcServer. My project builds just fine and deploys to Tomcat fine both in Netbeans and directly to Tomcat, but it will not deploy to Tomcat or tc Server in Eclipse. I get a ClassNotFoundException for org.hibernate.HibernateException, which I know is on the included in the pom. Here's my log output if it helps. Also in the markers view, I see the following build path problem: Archive for required library: '~/.m2/repository/org

Roboelectric, Maven and the plight of the output folder

限于喜欢 提交于 2019-12-11 04:02:47
问题 Dear awesome community, I have decided to bite the bullet and put together some proper TDD/BDD testing infrastructure for my Android application. I am looking to incorporate Roboelectric in my separate test project in order prevent me from having to launch an emulator for anything remotely Android-y. To see what's what I have imported into my (Eclipse ADT 3.8) environment the RoboElectricSample project found here. But I've hit a snag... everything is working swimmingly compilation wise and I

How to force Eclipse JUnit run configuration to use project “default classpath” instead of Maven?

旧城冷巷雨未停 提交于 2019-12-11 03:57:11
问题 I am running Eclipse Luna on OS X 10.10.2. I have a project, which has somewhat recently had a Maven nature introduced. How can I configure a particular JUnit run configuration Classpath so that it uses the enclosing project's "default classpath" instead of Maven Dependencies? Every time I try to define or update (via "Restore Default Entries") the JUnit run classpath configuration, an empty project entry is added, then an empty Maven Dependencies entry, as illustrated by this screenshot.

Some sonatype nexus questions

主宰稳场 提交于 2019-12-11 03:38:37
问题 I deployed a sonatype nexus server inside my LAN , mapping some remote repositories to my public repositories : alt text http://img576.imageshack.us/img576/5517/7875d01884ad4234a5b02e2.png First question is , why these repositories not sync with the "real" repositories ? For example , I mapped maven central (http://repo1.maven.org/maven2) to "central" , but when I browse http://smallufo:8081/nexus/content/repositories/central/org/springframework/ , the packages are not complete , in http:/

maven-shade-plugin reports: Error creating shaded jar: …target/classes (Is a directory)

家住魔仙堡 提交于 2019-12-11 01:06:15
问题 When running a Maven build in eclipse using the m2eclipse tooling for a project that is configured for the Maven Shade Plugin, the build fails with the following error message: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (default) on project xxx: Error creating shaded jar: /.../project/target/classes (Is a directory) -> [Help 1] I tried different versions of the Shade plugin and tried with different Java versions (6,7,8). All lead to the same error.

maven eclipse workspace resolution

梦想的初衷 提交于 2019-12-11 00:44:43
问题 I have 2 maven projects in my workspace. They are not a multi-module project, but two separate ones. In one project, I reference the other as a dependency. I have workspace resolution turned on, but it tries to go out to the repository to find it. I've tried deleting an reimporting both projects with no luck, and I'm using the latest version of m2eclipse (0.12.1). I am under the impression that this should work, but does not - any thoughts why? Edit: The relevant sections of the poms looks

Maven apt-get-plugin for mysema

限于喜欢 提交于 2019-12-10 21:10:18
问题 I have added following snippet in my pom.xml, but in eclipse the execution part is error saying: Plugin execution not covered by lifecycle configuration: com.mysema.maven:maven-apt-plugin:1.0.3:process (execution: default, phase: generate-sources) Though when I am running mvn clean install from command line it is working properly then. <build> <plugins> <plugin> <groupId>com.mysema.maven</groupId> <artifactId>maven-apt-plugin</artifactId> <version>1.0.3</version> <executions> <execution>