Bauen Sie Misserfolg in Maven aufJava

Java-Forum
Anonymous
 Bauen Sie Misserfolg in Maven auf

Post by Anonymous »

Ich versuche, mein neues Webapp -Modul mit Maven zu erstellen, und wenn ich mit Cygwin mit MVN install aus der Eingabeaufforderung mache, gibt es mir diesen Fehler -

Code: Select all

$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building new-webapp MAIN
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.parent:test-logic:jar:MAIN is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.404s
[INFO] Finished at: Tue Nov 19 22:19:10 PST 2013
[INFO] Final Memory: 4M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project new-webapp: Could not resolve dependencies for project com.parent:new-webapp:jar:MAIN: Failure to find com.parent:test-logic:jar:MAIN in http://caucho.com/m2-snapshot was cached in the local repository, resolution will not be reattempted until the update interval of caucho.maven-repo has elapsed or updates are forced -> [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
Und dieses neue Webapp -Modul hängt von einer mehr Abhängigkeit ab und von dem obigen Fehler, dass ich bauen muss-com.Parent: test-logic: jar auch abhängig und dann kann ich nur meine new-bappen bauen.

Code: Select all

com.parent:test-logic:jar
) zuerst vor MVN install in meinem neuen Webapp . Also ging ich zu meinem Test -Logic -Projekt und habe denselben Befehl mvn install ausgeführt. Dieses Mal habe ich einen anderen Fehler erhalten und ich bin mir nicht sicher, wie ich diesen Fehler beheben kann -

Code: Select all

[INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 247 classes.

[ERROR] com.parent.logic.exception.AlreadyLockedException failed check. Line coverage rate of 0.0% is below 80.0%
com.parent.logic.util.LuaUtil$1 failed check. Line coverage rate of 0.0% is below 80.0%
com.parent.logic.dao.impl.UrlDAOReadOnlyImpl failed check. Branch coverage rate of 0.0% is below 90.0%
com.parent.logic.dao.impl.UrlDAOReadOnlyImpl failed check. Line coverage rate of 0.0% is below 80.0%
com.parent.logic.service.CronService failed check. Branch coverage rate of 0.0% is below 90.0%
com.parent.logic.service.CronService failed check. Line coverage rate of 0.0% is below 80.0%
com.parent.logic.msg.client.AppStoreResponse failed check. Branch coverage rate of 0.0% is below 90.0%

----- some other errors like this

Project failed check. Total branch coverage rate of 0.0% is below 85.0%
Project failed check. Total line coverage rate of 0.0% is below 85.0%

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.424s
[INFO] Finished at: Tue Nov 19 22:18:42 PST 2013
[INFO] Final Memory: 23M/249M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.5.2:check (default) on project mac-core: Coverage check failed. See messages above. -> [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
< /code>

Dies hängt mit einem Plugin -Fehler von Cobertura Maven zusammen. Mein Test-Logic 
-Projekt verwendet das Cobertura-Plugin. Gibt es also eine Möglichkeit, wenn MVN Install beim Test-Logic -Projekt überspringen kann. Ich kann all diese Cobertura-Dinge überspringen und das Test-Logic -Projekt ordnungsgemäß erstellen? Wenn ich dieses Test-Logic < /code> -Projekt ordnungsgemäß erstellen kann, kann ich möglicherweise auch ein neues Webapp-Projekt erstellen. /> Thanks.

Update:-< /strong> < /p>

Ich habe gerade meinen Pom überprüft. Das Test-Logic-Projekt hat keine Cobertura-Sache. Unten finden Sie meine pom.xml -Datei - < / p > < b r / > < b r / > < c o d e > & l t ; p r o j e c t x m l n s = " h t t p : / / m a v e n . a p a c h e . o r g / P O M / 4 . 0 . 0 " x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " < b r / > x s i : s c h e m a L o c a t i o n = " h t t p : / / m a v e n . a p a c h e . o r g / P O M / 4 . 0 . 0 h t t p : / / m a v e n . a p a c h e . o r g / x s d / m a v e n - 4 . 0 . 0 . x s d " & g t ; < b r / > & l t ; m o d e l V e r s i o n & g t ; 4 . 0 . 0 & l t ; / m o d e l V e r s i o n & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . p a r e n t & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; t e s t - p a r e n t & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; M A I N & l t ; / v e r s i o n & g t ; < b r / > & l t ; p a c k a g i n g & g t ; p o m & l t ; / p a c k a g i n g & g t ; < b r / > & l t ; n a m e & g t ; H o s t - P C & l t ; / n a m e & g t ; < b r / > < b r / > & l t ; p r o p e r t i e s & g t ; < b r / > & l t ; p r o j e c t . b u i l d . s o u r c e E n c o d i n g & g t ; U T F - 8 & l t ; / p r o j e c t . b u i l d . s o u r c e E n c o d i n g & g t ; < b r / > & l t ; p r o j e c t . r e p o r t i n g . o u t p u t E n c o d i n g & g t ; U T F - 8 & l t ; / p r o j e c t . r e p o r t i n g . o u t p u t E n c o d i n g & g t ; < b r / > & l t ; r e l e a s e . v e r s i o n & g t ; M A I N & l t ; / r e l e a s e . v e r s i o n & g t ; < b r / > & l t ; c o b e r t u r a . v e r s i o n & g t ; 1 . 9 . 4 & l t ; / c o b e r t u r a . v e r s i o n & g t ; < b r / > & l t ; / p r o p e r t i e s & g t ; < b r / > < b r / > & l t ; m o d u l e s & g t ; < b r / > & l t ; m o d u l e & g t ; l o g i c & l t ; / m o d u l e & g t ; < b r / > & l t ; m o d u l e & g t ; n e w - w e b a p p & l t ; / m o d u l e & g t ; < b r / > & l t ; / m o d u l e s & g t ; < b r / > < b r / > & l t ; p l u g i n R e p o s i t o r i e s & g t ; < b r / > & l t ; p l u g i n R e p o s i t o r y & g t ; < b r / > & l t ; i d & g t ; c a u c h o & l t ; / i d & g t ; < b r / > & l t ; n a m e & g t ; C a u c h o & l t ; / n a m e & g t ; < b r / > & l t ; u r l & g t ; h t t p : / / c a u c h o . c o m / m 2 - s n a p s h o t & l t ; / u r l & g t ; < b r / > & l t ; / p l u g i n R e p o s i t o r y & g t ; < b r / > & l t ; / p l u g i n R e p o s i t o r i e s & g t ; < b r / > < b r / > & l t ; r e p o s i t o r i e s & g t ; < b r / > & l t ; r e p o s i t o r y & g t ; < b r / > & l t ; i d & g t ; c a u c h o . m a v e n - r e p o & l t ; / i d & g t ; < b r / > & l t ; n a m e & g t ; C a u c h o R e p o s i t o r y & l t ; / n a m e & g t ; < b r / > & l t ; u r l & g t ; h t t p : / / c a u c h o . c o m / m 2 - s n a p s h o t & l t ; / u r l & g t ; < b r / > & l t ; / r e p o s i t o r y & g t ; < b r / > & l t ; r e p o s i t o r y & g t ; < b r / > & l t ; i d & g t ; j a v a . n e t - P u b l i c & l t ; / i d & g t ; < b r / > & l t ; n a m e & g t ; M a v e n J a v a N e t S n a p s h o t s a n d R e l e a s e s & l t ; / n a m e & g t ; < b r / > & l t ; u r l & g t ; h t t p s : / / m a v e n . j a v a . n e t / c o n t e n t / g r o u p s / p u b l i c / & l t ; / u r l & g t ; < b r / > & l t ; / r e p o s i t o r y & g t ; < b r / > & l t ; / r e p o s i t o r i e s & g t ; < b r / > < b r / > & l t ; d e p e n d e n c i e s & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . c a u c h o & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; r e s i n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 4 . 0 - S N A P S H O T & l t ; / v e r s i o n & g t ; < b r / > & l t ; s c o p e & g t ; p r o v i d e d & l t ; / s c o p e & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . c a u c h o & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; r e s i n - j a v a e e & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 4 . 0 - S N A P S H O T & l t ; / v e r s i o n & g t ; < b r / > & l t ; s c o p e & g t ; p r o v i d e d & l t ; / s c o p e & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; j a v a x . v a l i d a t i o n & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; v a l i d a t i o n - a p i & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 1 . 0 . 0 . G A & l t ; / v e r s i o n & g t ; < b r / > & l t ; s c o p e & g t ; p r o v i d e d & l t ; / s c o p e & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; j a v a x . x m l . b i n d & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j a x b - a p i & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 2 . 2 . 4 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . s u n . x m l . b i n d & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; j a x b - i m p l & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 2 . 2 . 4 - 1 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . g o o g l e . g u a v a & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; g u a v a & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 1 2 . 0 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . s l f 4 j & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; s l f 4 j - a p i & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 1 . 7 . 5 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c h . q o s . l o g b a c k & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; l o g b a c k - c l a s s i c & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 1 . 0 . 1 3 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . t e s t n g & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; t e s t n g & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 6 . 3 & l t ; / v e r s i o n & g t ; < b r / > & l t ; s c o p e & g t ; t e s t & l t ; / s c o p e & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; / d e p e n d e n c i e s & g t ; < b r / > < b r / > & l t ; d e p e n d e n c y M a n a g e m e n t & g t ; < b r / > & l t ; d e p e n d e n c i e s & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; c o m . p a r e n t & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; t e s t - l o g i c & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; $ { p r o j e c t . v e r s i o n } & l t ; / v e r s i o n & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; / d e p e n d e n c i e s & g t ; < b r / > & l t ; / d e p e n d e n c y M a n a g e m e n t & g t ; < b r / > < b r / > < b r / > & l t ; p r o f i l e s & g t ; < b r / > & l t ; p r o f i l e & g t ; < b r / > & l t ; i d & g t ; c o b e r t u r a - i n s t r u m e n t & l t ; / i d & g t ; < b r / > & l t ; a c t i v a t i o n & g t ; < b r / > & l t ; p r o p e r t y & g t ; < b r / > & l t ; n a m e & g t ; c o b e r t u r a - b u i l d & l t ; / n a m e & g t ; < b r / > & l t ; / p r o p e r t y & g t ; < b r / > & l t ; / a c t i v a t i o n & g t ; < b r / > & l t ; m o d u l e s & g t ; < b r / > & l t ; m o d u l e & g t ; t e s t - c o b e r t u r a & l t ; / m o d u l e & g t ; < b r / > & l t ; / m o d u l e s & g t ; < b r / > & l t ; b u i l d & g t ; < b r / > & l t ; p l u g i n s & g t ; < b r / > & l t ; p l u g i n & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . c o d e h a u s . m o j o & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; c o b e r t u r a - m a v e n - p l u g i n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 2 . 5 . 2 & l t ; / v e r s i o n & g t ; < b r / > & l t ; c o n f i g u r a t i o n & g t ; < b r / > & l t ; / c o n f i g u r a t i o n & g t ; < b r / > & l t ; e x e c u t i o n s & g t ; < b r / > & l t ; e x e c u t i o n & g t ; < b r / > & l t ; i d & g t ; i n s t r u m e n t - c o d e & l t ; / i d & g t ; < b r / > & l t ; p h a s e & g t ; p r o c e s s - c l a s s e s & l t ; / p h a s e & g t ; < b r / > & l t ; g o a l s & g t ; < b r / > & l t ; g o a l & g t ; i n s t r u m e n t & l t ; / g o a l & g t ; < b r / > & l t ; / g o a l s & g t ; < b r / > & l t ; c o n f i g u r a t i o n & g t ; < b r / > & l t ; a t t a c h & g t ; t r u e & l t ; / a t t a c h & g t ; < b r / > & l t ; / c o n f i g u r a t i o n & g t ; < b r / > & l t ; / e x e c u t i o n & g t ; < b r / > & l t ; / e x e c u t i o n s & g t ; < b r / > & l t ; / p l u g i n & g t ; < b r / > & l t ; p l u g i n & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . a p a c h e . m a v e n . p l u g i n s & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; m a v e n - s o u r c e - p l u g i n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 2 . 2 . 1 & l t ; / v e r s i o n & g t ; < b r / > & l t ; e x e c u t i o n s & g t ; < b r / > & l t ; e x e c u t i o n & g t ; < b r / > & l t ; i d & g t ; a t t a c h - s o u r c e s & l t ; / i d & g t ; < b r / > & l t ; g o a l s & g t ; < b r / > & l t ; g o a l & g t ; j a r & l t ; / g o a l & g t ; < b r / > & l t ; / g o a l s & g t ; < b r / > & l t ; / e x e c u t i o n & g t ; < b r / > & l t ; / e x e c u t i o n s & g t ; < b r / > & l t ; i n h e r i t e d & g t ; t r u e & l t ; / i n h e r i t e d & g t ; < b r / > & l t ; / p l u g i n & g t ; < b r / > & l t ; / p l u g i n s & g t ; < b r / > & l t ; / b u i l d & g t ; < b r / > & l t ; d e p e n d e n c i e s & g t ; < b r / > & l t ; d e p e n d e n c y & g t ; < b r / > & l t ; g r o u p I d & g t ; n e t . s o u r c e f o r g e . c o b e r t u r a & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; c o b e r t u r a - r u n t i m e & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; $ { c o b e r t u r a . v e r s i o n } & l t ; / v e r s i o n & g t ; < b r / > & l t ; s c o p e & g t ; p r o v i d e d & l t ; / s c o p e & g t ; < b r / > & l t ; t y p e & g t ; p o m & l t ; / t y p e & g t ; < b r / > & l t ; / d e p e n d e n c y & g t ; < b r / > & l t ; / d e p e n d e n c i e s & g t ; < b r / > & l t ; / p r o f i l e & g t ; < b r / > & l t ; / p r o f i l e s & g t ; < b r / > < b r / > < b r / > & l t ; b u i l d & g t ; < b r / > & l t ; f i n a l N a m e & g t ; t e s t - $ { p r o j e c t . v e r s i o n } - r $ { b u i l d N u m b e r } & l t ; / f i n a l N a m e & g t ; < b r / > & l t ; p l u g i n M a n a g e m e n t & g t ; < b r / > & l t ; p l u g i n s & g t ; < b r / > & l t ; p l u g i n & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . c o d e h a u s . m o j o & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; b u i l d n u m b e r - m a v e n - p l u g i n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 1 . 0 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / p l u g i n & g t ; < b r / > & l t ; p l u g i n & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . c o d e h a u s . m o j o & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; c o b e r t u r a - m a v e n - p l u g i n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 2 . 5 . 2 & l t ; / v e r s i o n & g t ; < b r / > & l t ; / p l u g i n & g t ; < b r / > & l t ; / p l u g i n s & g t ; < b r / > & l t ; / p l u g i n M a n a g e m e n t & g t ; < b r / > < b r / > & l t ; p l u g i n s & g t ; < b r / > & l t ; p l u g i n & g t ; < b r / > & l t ; g r o u p I d & g t ; o r g . c o d e h a u s . m o j o & l t ; / g r o u p I d & g t ; < b r / > & l t ; a r t i f a c t I d & g t ; b u i l d n u m b e r - m a v e n - p l u g i n & l t ; / a r t i f a c t I d & g t ; < b r / > & l t ; v e r s i o n & g t ; 1 . 0 & l t ; / v e r s i o n & g t ; < b r / > & l t ; e x e c u t i o n s & g t ; < b r / > & l t ; e x e c u t i o n & g t ; < b r / > & l t ; p h a s e & g t ; v a l i d a t e & l t;/phase>

create




true
${project.parent.basedir}
false
false



org.apache.felix
maven-bundle-plugin
2.3.6


bundle-manifest
process-resources

manifest





jar
bundle
war


${buildNumber}




org.codehaus.mojo
cobertura-maven-plugin
2.5.2



com/parent/**/*.class






85
85
true
85
85
85
85


com.parent.*

90
80







clean
check










org.codehause.mojo
codertura-maven-plugin
2.5.2


html
xml

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post