creating new project in java with maven - java

I wanna create a java project with maven, when I type this command in cmd instead of creating a project it gives some error, I guess it is because of some internet problems but I don't know how to solve it. I don't use any proxy and I've tried this command even when my pc's firewall was turned off.
the command I write in cmd is:
mvn archetype:generate -DgroupId=com.companyname.bank -DartifactId=consumerBanking -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
the rezult is:
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.4: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4
.
.
.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.167 s
[INFO] Finished at: 2012-05-18T21:09:38-07:00
[INFO] Final Memory: 3M/254M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\a\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]

You're posting this in 2014, but the log says:
[INFO] Finished at: 2012-05-18T21:09:38-07:00
If your local clock is wrong, SSL won't work because the certificate will appear to be invalid, and your connection to https://repo.maven.apache.org/ will fail.
Fix your clock.

Related

Deployment failed: repository element was not specified in the POM

I imported an Maven application for the Intellij Idea. After configure Spring and Hibernate, i tried to build it. But, Maven return an error to me, the error is:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.571 s
[INFO] Finished at: 2019-07-04T15:49:48-03:00
[INFO] Final Memory: 16M/211M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project GECi: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
[ERROR]
If you can help me, i'll appreciate that :D Thanks
Calling mvn deploy means you want to deploy to a Maven repository. You need to specify that repository in the <distributionManagement> element of the POM.

Unable to download jersey-quickstart-webapp from maven

I am trying download a jersey-quickstart-webapp using maven. I am unable to figure out what is wrong with my command below.
mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.2
The errors I get are below: what am I doing wrong here?
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) > generate-sources # standalone-pom
[INFO] Generating project in Interactive mode
[WARNING] No archetype found in remote catalog. Defaulting to internal catalog
[WARNING] Archetype not found in any catalog. Falling back to central repository
(http://repo.maven.apache.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
Downloading: http://repo.maven.apache.org/maven2/org/glassfish/jersey/archetypes/jersey-quickstart-webapp/2.2/jersey-quickstart-webapp-2.2.pom
Downloading: https://repo.maven.apache.org/maven2/org/glassfish/jersey/archetypes/jersey-quickstart-webapp/2.2/jersey-quickstart-webapp-2.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.330 s
[INFO] Finished at: 2017-03-29T20:46:00+05:30
[INFO] Final Memory: 14M/139M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.glassfish.jersey.archetypes:jersey-quickstart-webapp:2.2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
The version you have specified is wrong(NOT 2.2 its 2.25.1). Try to run this:
mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.25.1
The issue was not with the command but the settings.xml.
I had to add my local artifactory setton

red5 Build hls-plugin and the example failure

I have tried to excute mvn -Dmaven.test.skip=true in hls-plugin and the example. But it failed to connect and I can't download red5-server-1.0.2.SNAPSHOT.jar.
Here is what I get when I run the mvn command :
D:\DataAsia\LivingData\red5-hls-plugin-master\example>mvn eclipse:eclipse
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.red5:hlsapp:war:1.1
[WARNING] 'dependencies.dependency.systemPath' for org.red5:hls-plugin:jar should not point at files within the project directory, ${basedir}/lib/hls-plugin-1.1.jar will be unresolvable by dependent projects # line 436, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.red5:hls-plugin:jar refers to a non-existing file D:\DataAsia\LivingData\red5-hls-plugin-master\example\lib\hls-plugin-1.1.jar # line 436, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hlsapp 1.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.7:eclipse (default-cli) # hlsapp >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.7:eclipse (default-cli) # hlsapp <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.7:eclipse (default-cli) # hlsapp ---
Downloading: http://xuggle.googlecode.com/svn/trunk/repo/share/java/org/red5/red5-server/1.0.2-SNAPSHOT/maven-metadata.xml
Downloading: http://red5.googlecode.com/svn/repository/org/red5/red5-server/1.0.2-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from/to Red5 (http://red5.googlecode.com/svn/repository): Connection to http://red5.googlecode.com refused
[WARNING] Could not transfer metadata org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from/to Xuggle (http://xuggle.googlecode.com/svn/trunk/repo/share/java/): Connection to http://xuggle.googlecode.com refused
Downloading: http://red5.googlecode.com/svn/repository/org/red5/red5-server/1.0.2-SNAPSHOT/red5-server-1.0.2-SNAPSHOT.pom
Downloading: http://xuggle.googlecode.com/svn/trunk/repo/share/java/org/red5/red5-server/1.0.2-SNAPSHOT/red5-server-1.0.2-SNAPSHOT.pom
[INFO] Using Eclipse Workspace: null
[WARNING] An error occurred during dependency resolution.
Failed to retrieve org.red5:hls-plugin-1.1
Caused by: System artifact: org.red5:hls-plugin:jar:1.1:system not found in path: D:\DataAsia\LivingData\red5-hls-plugin-master\example\lib\hls-plugin-1.1.jar
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.red5 -DartifactId=hls-plugin -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.red5 -DartifactId=hls-plugin -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.red5:hlsapp:war:1.1
2) org.red5:hls-plugin:jar:1.1
org.red5:hls-plugin:jar:1.1
[INFO] Unable to read jar manifest from D:\DataAsia\LivingData\red5-hls-plugin-master\example\lib\hls-plugin-1.1.jar
[INFO] Resource directory's path matches an existing source directory. Resources will be merged with the source directory src/main/java
[INFO] File D:\DataAsia\LivingData\red5-hls-plugin-master\example.project already exists.
Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "hlsapp" to D:\DataAsia\LivingData\red5-hls-plugin-master\example.
[INFO]
Javadoc for some artifacts is not available.
Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.
List of artifacts without a javadoc archive:
o ch.qos.logback:logback-classic:1.0.13
o ch.qos.logback:logback-core:1.0.13
o org.slf4j:slf4j-api:1.7.5
o javax.servlet:servlet-api:2.5
o junit:junit:4.10
o org.hamcrest:hamcrest-core:1.1
o net.sourceforge.groboutils:groboutils-core:5
o org.apache.mina:mina-core:2.0.7
o org.apache.mina:mina-integration-beans:2.0.7
o org.apache.mina:mina-integration-jmx:2.0.7
o ognl:ognl:3.0.5
o javassist:javassist:3.11.0.GA
o org.slf4j:jcl-over-slf4j:1.7.5
o org.slf4j:jul-to-slf4j:1.7.5
o org.slf4j:log4j-over-slf4j:1.7.5
o org.springframework:spring-aop:3.1.4.RELEASE
o aopalliance:aopalliance:1.0
o org.springframework:spring-asm:3.1.4.RELEASE
o org.springframework:spring-beans:3.1.4.RELEASE
o org.springframework:spring-core:3.1.4.RELEASE
o org.springframework:spring-context:3.1.4.RELEASE
o org.springframework:spring-expression:3.1.4.RELEASE
o org.springframework:spring-context-support:3.1.4.RELEASE
o org.springframework:spring-test:3.1.4.RELEASE
o org.springframework:spring-web:3.1.4.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:08.655s
[INFO] Finished at: Tue Jun 28 16:24:37 CST 2016
[INFO] Final Memory: 9M/122M
[INFO] ------------------------------------------------------------------------
D:\DataAsia\LivingData\red5-hls-plugin-master\example>mvn -Dmaven.test.skip=true
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.red5:hlsapp:war:1.1
[WARNING] 'dependencies.dependency.systemPath' for org.red5:hls-plugin:jar should not point at files within the project directory, ${basedir}/lib/hls-plugin-1.1.jar will be unresolvable by dependent projects # line 436, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.red5:hls-plugin:jar refers to a non-existing file D:\DataAsia\LivingData\red5-hls-plugin-master\example\lib\hls-plugin-1.1.jar # line 436, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hlsapp 1.1
[INFO] ------------------------------------------------------------------------
Downloading: http://xuggle.googlecode.com/svn/trunk/repo/share/java/org/red5/red5-server/1.0.2-SNAPSHOT/maven-metadata.xml
Downloading: http://red5.googlecode.com/svn/repository/org/red5/red5-server/1.0.2-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from/to Red5 (http://red5.googlecode.com/svn/repository): Connection to http://red5.googlecode.com refused
[WARNING] Could not transfer metadata org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from/to Xuggle (http://xuggle.googlecode.com/svn/trunk/repo/share/java/): Connection to http://xuggle.googlecode.com refused
[WARNING] Failure to transfer org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from http://red5.googlecode.com/svn/repository was cached in the local repository, resolution will not be reattempted until the update interval of Red5 has elapsed or updates are forced. Original error: Could not transfer metadata org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from/to Red5 (http://red5.googlecode.com/svn/repository): Connection to http://red5.googlecode.com refused
[WARNING] Failure to transfer org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from http://xuggle.googlecode.com/svn/trunk/repo/share/java/ was cached in the local repository, resolution will not be reattempted until the update interval of Xuggle has elapsed or updates are forced. Original error: Could not transfer metadata org.red5:red5-server:1.0.2-SNAPSHOT/maven-metadata.xml from/to Xuggle (http://xuggle.googlecode.com/svn/trunk/repo/share/java/): Connection to http://xuggle.googlecode.com refused
Downloading: http://red5.googlecode.com/svn/repository/org/red5/red5-server/1.0.2-SNAPSHOT/red5-server-1.0.2-SNAPSHOT.pom
Downloading: http://xuggle.googlecode.com/svn/trunk/repo/share/java/org/red5/red5-server/1.0.2-SNAPSHOT/red5-server-1.0.2-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:04.798s
[INFO] Finished at: Tue Jun 28 16:26:08 CST 2016
[INFO] Final Memory: 10M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hlsapp: Could not resolve dependencies for project org.red5:hlsapp:war:1.1: Failed to collect dependencies at org.red5:red5-server:jar:1.0.2-SNAPSHOT: Failed to read artifact descriptor for org.red5:red5-server:jar:1.0.2-SNAPSHOT: Could not transfer artifact org.red5:red5-server:pom:1.0.2-SNAPSHOT from/to Red5 (http://red5.googlecode.com/svn/repository): Connection to http://red5.googlecode.com refused: Connection timed out: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
D:\DataAsia\LivingData\red5-hls-plugin-master\example>

Magnolia project archetype can not resolve vaadin dependencies

I'm trying to create a Magnolia project archetype:
I'm running
mvn archetype:generate -DarchetypeCatalog=http://nexus.magnolia-cms.com/content/groups/public/
I choose
5: http://nexus.magnolia-cms.com/content/groups/public/ -> info.magnolia.maven.archetypes:magnolia-project-archetype (An archetype to create a Magnolia project (a parent pom and a webapp))
archetype version I choose 1.1.0
Define value for property 'magnolia-version': 5.0.4
When I run the maven build, the webapp build fails because it cant find some vaadin libraries
[WARNING] The POM for org.vaadin.addons:icepush:jar:0.5.3 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:cssinject:jar:2.0.3 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:gwt-graphics:jar:1.0.0 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:ckeditor-wrapper-for-vaadin:jar:7.8.3 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addon:easyuploads:jar:7.0.0 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:refresher:jar:1.2.1.7 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] myapp (parent pom) ............................. SUCCESS [0.394s]
[INFO] myapp: webapp .................................. FAILURE [1.305s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.962s
[INFO] Finished at: Wed Sep 18 13:53:45 CEST 2013
[INFO] Final Memory: 7M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project myapp-webapp: Could not resolve dependencies for project myapp-webapp:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.vaadin.addon:easyuploads:jar:7.0.0, org.vaadin.addons:refresher:jar:1.2.1.7, org.vaadin.addons:cssinject:jar:2.0.3, org.vaadin.addons:icepush:jar:0.5.3, org.vaadin.addons:gwt-graphics:jar:1.0.0, org.vaadin.addons:ckeditor-wrapper-for-vaadin:jar:7.8.3: Failure to find org.vaadin.addon:easyuploads:jar:7.0.0 in http://nexus.magnolia-cms.com/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of magnolia.public has elapsed or updates are forced -> [Help 1]
[ERROR]
Do I need to add some maven repository ?
Solved it by adding following repository in my pom.xml
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>

Errors with Maven and Eclipse integration

i'm totally new to the use of Eclipse with Maven, i am trying to follow a tutorial for using a java library, but fail on prerequisite : http://code.google.com/p/dkpro-core-asl/wiki/DeveloperSetup
immediately after the end of the last click "finish" of the page, if i look to my Eclipse windows, i think that something went wrong, as i have many errors and some small in Eclipse Package Explorer (i also do not get the differents points between a red exclamation mark, a small white cross on red (think this is one is an error mark) or what must be the "warning symbol" (yellow exlamation mark triangle).
so i have many different kind of errors, and no idea on how to solve them, i copy the full log below.
my errors are of the form :
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.frequency:jar:0.4.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin *:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.toolbox-asl line 1 Maven Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\stephane\.m2\repository\de\tudarmstadt\ukp\dkpro\teaching\de.tudarmstadt.ukp.dkpro.teaching.frequency\0.4.0\de.tudarmstadt.ukp.dkpro.teaching.frequency-0.4.0.jar' de.tudarmstadt.ukp.dkpro.core.api.frequency-asl Build path Build Path Problem
The project cannot be built until build path errors are resolved de.tudarmstadt.ukp.dkpro.core.api.frequency-asl Unknown Java Problem
please, if you have any clue on how to solve them,
i am wondering if i do not forget some king of elementary checkout or so, as i looks like almost everything is broken ?
thank u
(the expected tutorial is : "First Programming Steps with DKPro Core")
logs as image : http://imageshack.us/photo/my-images/856/dkprocoreaslmaven201204.png/
---8<---
Description Resource Path Location Type
Failed to read artifact descriptor for edu.berkeley.nlp.lm:edu.berkeley.nlp.lm.berkeleylm:jar:1.0b2 pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact com.ibm.icu:icu4j:jar:4.0.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact commons-io:commons-io:jar:2.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact commons-lang:commons-lang:jar:2.5:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact commons-logging:commons-logging:jar:1.1.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.io-asl:jar:1.2.1-SNAPSHOT:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.lexmorph-asl:jar:1.2.1-SNAPSHOT:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.metadata-asl:jar:1.2.1-SNAPSHOT:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.resources-asl:jar:1.2.1-SNAPSHOT:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.segmentation-asl:jar:1.2.1-SNAPSHOT:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.core:jar:0.4.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.corpus:jar:0.4.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.frequency:jar:0.4.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.ngram:jar:0.4.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact dom4j:dom4j:jar:1.6.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact jaxen:jaxen:jar:1.1.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact jdom:jdom:jar:1.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact junit:junit:jar:4.8.2:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact log4j:log4j:jar:1.2.14:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.ant:ant-launcher:jar:1.8.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.ant:ant:jar:1.8.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.uima:jVinci:jar:2.3.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.uima:uimaj-adapter-vinci:jar:2.3.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.uima:uimaj-core:jar:2.3.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.uima:uimaj-cpe:jar:2.3.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.uima:uimaj-document-annotation:jar:2.3.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.apache.uima:uimaj-tools:jar:2.3.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.springframework:spring-core:jar:3.0.5.RELEASE:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact org.uimafit:uimafit:jar:1.2.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact pcj:pcj:jar:1.2:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact xalan:serializer:jar:2.7.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact xalan:xalan:jar:2.7.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact xerces:xercesImpl:jar:2.9.1:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact xerces:xmlParserAPIs:jar:2.6.2:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact xml-apis:xml-apis:jar:1.3.04:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Missing artifact xom:xom:jar:1.0:compile pom.xml /de.tudarmstadt.ukp.dkpro.core.api.frequency-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.api.coref-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.api.corpus-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.api.parameter-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.arktweet-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.frequency-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.aclanthology-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.bnc-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.jdbc-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.tei-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.io.web1t-asl line 1 Maven Problem
Project build error: Unresolveable build extension: Plugin de.tudarmstadt.ukp.dkpro.core:build-tools:3 or one of its dependencies could not be resolved: Failure to find de.tudarmstadt.ukp.dkpro.core:build-tools:jar:3 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced pom.xml /de.tudarmstadt.ukp.dkpro.core.toolbox-asl line 1 Maven Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\stephane\.m2\repository\de\tudarmstadt\ukp\dkpro\teaching\de.tudarmstadt.ukp.dkpro.teaching.frequency\0.4.0\de.tudarmstadt.ukp.dkpro.teaching.frequency-0.4.0.jar' de.tudarmstadt.ukp.dkpro.core.api.frequency-asl Build path Build Path Problem
The project cannot be built until build path errors are resolved de.tudarmstadt.ukp.dkpro.core.api.frequency-asl Unknown Java Problem
---8<---
EDIT :
i think i have installed the eclipse setup (but with Eclipse Indigo Service Release 2
Build id: 20120216-1857) as required by the tutorial that is :
Subclipse 1.6.x
update site: http://subclipse.tigris.org/update_1.6.x
m2eclipse 0.10.0 or higher.
update site: http://m2eclipse.sonatype.org/sites/m2e
Maven SCM handler for Subclipse
update site: http://m2eclipse.sonatype.org/sites/m2e-extras
here is the output of mvn clean package command from the directory where there is a pom.xml files :
[... here i am skipping as there are more 700 lines ... these below are last one :]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.054s
[INFO] Finished at: Wed Apr 18 11:18:31 CEST 2012
[INFO] Final Memory: 93M/223M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project de.tudarmstadt.ukp.dkpro.core.io.aclanthology-asl: There are test failures.
[ERROR]
[ERROR] Please refer to D:\eclipseWorkspace\de.tudarmstadt.ukp.dkpro.core-asl\de.tudarmstadt.ukp.dkpro.core.io.aclanthology\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :de.tudarmstadt.ukp.dkpro.core.io.aclanthology-asl
EDIT 2 :
another very strange things => maybe the "mvn dependecy:resolve" or the "mvn clean package" has done something for me as after a computer reboot, almost all errors have disappeared and now only have 2 in Eclipse "Problems" tab !
(but still 225 items warning)
The 2 remaining errors are : and i have a red exclamation mark (what is it standing for ?) on the de.tudarmstadt.ukp.dkpro.core.api.frequency-asl in package explorer
Description Resource Path Location Type
The container 'Maven Dependencies' references non existing library 'C:\Users\stephane\.m2\repository\de\tudarmstadt\ukp\dkpro\teaching\de.tudarmstadt.ukp.dkpro.teaching.frequency\0.4.0\de.tudarmstadt.ukp.dkpro.teaching.frequency-0.4.0.jar' de.tudarmstadt.ukp.dkpro.core.api.frequency-asl Build path Build Path Problem
The project cannot be built until build path errors are resolved de.tudarmstadt.ukp.dkpro.core.api.frequency-asl Unknown Java Problem
still did not know what is it asking me !
LAST EDIT :
so reading answers provided by Kal (thank u a lot for helping), i am really wondering if my trouble do not also come from missing jars or some "build path" referenced libraries (i am really new to Maven/Eclipse). As from the Build errors for de.tudarmstadt.ukp.dkpro.core.api.frequency-asl (the one with red exclamation marks from EDIT2) that i have i get the following exception trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project de.tudarmstadt.ukp.dkpro.core.api.frequency-asl: Could not resolve dependencies for project de.tudarmstadt.ukp.dkpro.core:de.tudarmstadt.ukp.dkpro.core.api.frequency-asl:jar:1.2.1-SNAPSHOT: Failed to collect dependencies for [org.uimafit:uimafit:jar:1.2.0 (compile), xerces:xercesImpl:jar:2.9.1 (compile), xalan:xalan:jar:2.7.1 (compile), de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.frequency:jar:0.4.0 (compile), junit:junit:jar:4.8.2 (compile)]
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)
[...]
is it not that i should have installed xerces, xalan, uimafit, junit or something like that to told where to find them ? I thought everything was inside the tutorial, or handled directly by Maven, but may be am i wrong ???
i had tried to do :
mvn install:install-file -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\junit-4.8.2.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\uimafit-1.2.0.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xalan-2.7.1.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xercesImpl-2.9.1.jar \
after manually downloading each files from mvnrepository.com website and putting them in d:\downloaded\dependencies-for-DKPro-Core-ASL\
of course, i can not find de.tudarmstadt.ukp.dkpro.teaching:de.tudarmstadt.ukp.dkpro.teaching.frequency:jar:0.4.0 there.
mvn clean install:install -file -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\junit-4.8.2.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\uimafit-1.2.0.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xalan-2.7.1.jar -Dfile=d:\downloaded\dependencies-for-DKPro-Core-ASL\xercesImpl-2.9.1.jar \ -Dmaven.test.skip=true
was no more successful and ended with :
[INFO] Deleting D:\eclipseWorkspace\maven.1334761781732\branches\1.2.x\de.tudarm
stadt.ukp.dkpro.core.io.text\target
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DKPro Core ASL - IO - XMI 1.2.1-SNAPSHOT
[...]
[INFO] ------------------------------------------------------------------------
[INFO] Building DKPro Core ASL 1.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) # de.tudarmstad
t.ukp.dkpro.core-asl ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping DKPro Core ASL
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DKPro Core ASL .................................... FAILURE [0.139s]
[INFO] DKPro Core ASL - Anomaly API ...................... SUCCESS [0.048s]
[INFO] DKPro Core ASL - FeaturePath API (ASL) ............ SUCCESS [0.074s]
[INFO] DKPro Core ASL - Metadata API ..................... SUCCESS [0.227s]
[INFO] DKPro Core ASL - IO API ........................... SUCCESS [0.085s]
[INFO] DKPro Core ASL - Part-of-Speech API ............... SUCCESS [0.060s]
[INFO] DKPro Core ASL - Common API ....................... SUCCESS [0.075s]
[INFO] DKPro Core ASL - Lexical Units API ................ SUCCESS [0.117s]
[INFO] DKPro Core ASL - Structured and Semi-Structured Data API SUCCESS [0.044s
]
[INFO] DKPro Core ASL - Syntactic Units API .............. SUCCESS [0.274s]
[INFO] DKPro Core ASL - CAS Transformation API ........... SUCCESS [0.042s]
[INFO] DKPro Core ASL - Named Entity Recognition API ..... SUCCESS [0.083s]
[INFO] DKPro Core ASL - Frequency Providers API (ASL) .... SUCCESS [0.015s]
[INFO] DKPro Core ASL - IO - MMAX2 (ASL) ................. SUCCESS [0.070s]
[INFO] DKPro Core ASL - IO - Text ........................ SUCCESS [0.090s]
[INFO] DKPro Core ASL - IO - XMI ......................... SUCCESS [0.083s]
[INFO] DKPro Core ASL - IO - XML ......................... SUCCESS [0.059s]
[INFO] DKPro Core ASL - IO - WSDL (CPL) .................. SUCCESS [0.096s]
[INFO] DKPro Core ASL - IO - Wikipedia (LGPL) ............ SUCCESS [0.114s]
[INFO] DKPro Core ASL - IO - PDFBox 0.7.3 (BSD) .......... SUCCESS [0.088s]
[INFO] DKPro Core ASL - IO - NEGRA ....................... SUCCESS [0.127s]
[INFO] DKPro Core ASL - TreeTagger (free for research) ... SUCCESS [0.113s]
[INFO] DKPro Core ASL - IO - IMS Corpus Workbench ........ SUCCESS [0.044s]
[INFO] DKPro Core ASL - IO - ANNIS2 ...................... SUCCESS [0.063s]
[INFO] DKPro Core ASL - Tokenization Toolkit ............. SUCCESS [0.134s]
[INFO] DKPro Core ASL - CAS Transformation (ASL) ......... SUCCESS [0.216s]
[INFO] DKPro Core ASL - Jazzy (LGPL) ..................... SUCCESS [0.159s]
[INFO] DKPro Core ASL - JWordSplitter (ASL) .............. SUCCESS [0.036s]
[INFO] DKPro Core ASL - LanguageTool (LGPL) .............. SUCCESS [0.062s]
[INFO] DKPro Core ASL - Norvig's Spelling Correction ..... SUCCESS [0.046s]
[INFO] DKPro Core ASL - Snowball (BSD) ................... SUCCESS [0.243s]
[INFO] DKPro Core ASL - TextCat (LGPL) ................... SUCCESS [0.062s]
[INFO] DKPro Core ASL - BananaSplit (ASL) ................ SUCCESS [0.046s]
[INFO] DKPro Core ASL - Stop Word Remover (ASL) .......... SUCCESS [0.505s]
[INFO] DKPro Core ASL - N-Gram Tools ..................... SUCCESS [0.307s]
[INFO] DKPro Core ASL - Part-of-Speech Filter ............ SUCCESS [0.058s]
[INFO] DKPro Core ASL - Dictionary Annotator ............. SUCCESS [0.344s]
[INFO] DKPro Core ASL - Examples ......................... SUCCESS [0.184s]
[INFO] DKPro Core ASL - Distribution ..................... SUCCESS [0.007s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.815s
[INFO] Finished at: Thu Apr 19 11:13:27 CEST 2012
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3
.1:install-file (default-cli) on project de.tudarmstadt.ukp.dkpro.core-asl: The
artifact information is incomplete or not valid:
[ERROR] [0] 'groupId' is missing.
[ERROR] [1] 'artifactId' is missing.
[ERROR] [2] 'packaging' is missing.
[ERROR] [3] 'version' is missing.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
have also see that there was some complining about : "The dependencies resolving doesn't work correctly. The new m2eclipse plugin doesn't resolve the dependencies until the end." that may be involved ?
and i'm still badly stuck :/ and still too new to the maven/java/eclipse platform tricks...
Firstly you seem to have some dependency jars which seem to be proprietary (I may be wrong) secondly even the public libraries like Apache libraries cannot be downloaded. Are you behind a firewall? Looks like Maven cannot reach the Maven Central to download all the dependency jars as well as plugins. Make sure that you are using the correct version of maven compatible with your project.
If you are checking out a huge project, I advice you to first do a top level build (mvn clean package) in console. This will ensure that all the plugins and dependencies are downloaded and then you can tackle problems of importing this project into eclipse. Alternatively you can do mvn dependency:resolve to download all the dependencies.

Categories

Resources