maven-3

NullPointerException archetype:crawl

青春壹個敷衍的年華 提交于 2019-12-25 01:44:11
问题 I'm trying to discover the archtypes installed in my local repository. I read this is possible run the following command: mvn archetype:crawl Now when I run this command I get this error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:crawl (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.2:crawl failed. NullPointerException -> [Help 1] org.apache.maven.lifecycle

Spring @Transactional not starting a transaction

戏子无情 提交于 2019-12-25 01:32:58
问题 I have a multi-module Maven project with the following structure: project | -- data | -- DepartmentRepository.java | -- domain | -- Department.java | -- service | -- DepartmentService.java | -- DepartmentServiceImpl.java | -- web | -- DepartmentController.java The project uses Spring 4.1.4, Spring Data JPA 1.7.2 and Maven 3.1.0. The following classes are included: @Entity class Department {} interface DepartmentRepository extends JpaRepository<Department, Long> {} interface DepartmentService

Can I use Maven repository manager outside of Maven?

落花浮王杯 提交于 2019-12-25 01:27:18
问题 I already asked in Maven User List, let me duplicate here. I'm trying to create an application that will download and use Maven artifacts outside of Maven. I think that in this case the smartest way would be to use Maven already existing classes. Can anyone help me with a hint where to look for? Would be nice to make it working this way: Repository rep = new Repository("~/.m2"); Artifact artifact = new Artifact("com.example", "foo", "1.0"); String path = rep.resolve(artifact); assert path

wildfly quickstart fails from the offset

[亡魂溺海] 提交于 2019-12-25 01:22:09
问题 i just downloaded wildfly 9.02 with the quickstarts and the jboss developer studio. I am a total newbie to jboss, i am following the guide on github https://github.com/wildfly/quickstart/ to build and deploy the sources. i got my maven installed (v 3.3.3) with java 8. settings.xml copied to my $HOME/.m2 directory but it seems to me that the urls of the artifcats are all broken [ERROR] The project org.wildfly.quickstarts:wildfly-helloworld:10.0.0-SNAPSHOT (C:\jboss\quickstart\helloworld\pom

java.lang.NoClassDefFoundError while deploying a war file that was created by maven overlay

大兔子大兔子 提交于 2019-12-24 22:16:03
问题 I've built by Maven a war file that uses other war overlays as dependencies... The built was successful. But while deploying to Jboss I get the following error: 11:27:49,054 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) .... nested exception is java.lang.NoClassDefFoundError: org/springframework/core/type/classreading/AnnotationMetadataReadingVisitor at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents

Maven Multiple module project in Eclipse issue

依然范特西╮ 提交于 2019-12-24 17:14:55
问题 I have multiple module maven project which i imported in eclipse. mvn eclipse:eclipse and it shows child modules as following. problem is it is not recognizing any of the child modules java files. if hover objects it does not show up any thing and consider as plain text files. it complains that it is not in build path ??? any idea how to fix or how to import multip modules maven project in eclipse. 回答1: Maven support is included in Eclipse Kepler. You can find it in the File -> Import screen

How to distinguish between different wsdl locations in one pom.xml - Maven

守給你的承諾、 提交于 2019-12-24 16:26:21
问题 Is there a possibility to distinguish between multiple configurations of wsdl webservices in maven? I have one application which can run on test, stage and prod environments . And I have to use one webservice. The webservice has 3 different wsdl locations . For test, stage and prod. Is there a way in maven to say if I want to build my application for prod just use the webservice location for prod. And the same also for stage and test? I have a wsdl import configuration which works fine for a

Maven plugin failed after upgrading Jenkins to 1.505

半城伤御伤魂 提交于 2019-12-24 16:26:13
问题 I have upgraded my Jenkins server to 1.505 but unexpectedly building with Maven plugin is not working and it throws an exception in the Jenkins logs Error injecting constructor, java.lang.NoClassDefFoundError: hudson/ivy/AntIvyBuildWrapper and after an hour googling this issue I found that Maven plugin guys upgrade their code base and it failed on an "optional" dependency, so I added the "optional plugin" but still it fails silently without any exception in the Jenkins logs. the error appears

Download dependencies to local repository but not to “target” one

走远了吗. 提交于 2019-12-24 15:58:48
问题 I have a project, that has pom.xml and depends on lots of dependencies from outside (located far-far in internet..). So, I want to download all those dependencies which I depend on to my "local repository". This is my try (I do not need do compilation, so I use "validate" here. So I'm do not expect to have "target" folder in the end): mvn validate -Dmaven.repo.local=C:\my\.m2\repository dependency:copy-dependencies In the end - yes I have many dependencies been downloaded to "C:\my\.m2

java.lang.NoClassDefFoundError: org/apache/tiles/TilesApplicationContext

99封情书 提交于 2019-12-24 15:46:51
问题 I am using Spring 4.2.5 version and all tile of 3.0.5 version. maven build also successful. But while starting of application I am getting error as java.lang.NoClassDefFoundError: org/apache/tiles/TilesApplicationContext. I try to search this class "TilesApplicationContext" in my project and found its used in spring-webmvc -4.2.5.jar and TilesApplicationContext is there till tiles-api-2.2.2 version and I am using tiles-api-3.0.5 Could any one help me on this issue. Following is my maven