maven build failed using hudson

74 views
Skip to first unread message

Forrest Xia

unread,
Jan 14, 2011, 1:32:16 PM1/14/11
to hudson-users
Hi,

Does anyone see this error when using hudson build maven project?

My platform is windows 7, maven version 2.2.1, java version is
1.6.0_20. Please advise how to avoid the following problem.

Found mavenVersion 2.2.1 from file
jar:file:/D:/work/tools/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
Parsing POMs
ERROR: Failed to parse POMs
org.apache.maven.project.ProjectBuildingException: Some problems were
encountered while processing the POMs: [ERROR] Unknown packaging: car
@ line 33, column 16 [WARNING] 'repositories.repository.layout' for
java.net uses the unsupported value 'legacy', artifact resolution
might fail. @ org.apache.geronimo:geronimo:3.0-SNAPSHOT,
D:\work\hudson\winsvc\jobs\G 3.0 Server Daily
Build\workspace\asf\geronimo\server\trunk\pom.xml, line 2435, column
29 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)
at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:360) at
hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:330) at
hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:321) at
hudson.maven.MavenModuleSetBuild$PomParser.readChilds(MavenModuleSetBuild.java:1184)
at hudson.maven.MavenModuleSetBuild$PomParser.readChilds(MavenModuleSetBuild.java:1188)
at hudson.maven.MavenModuleSetBuild$PomParser.readChilds(MavenModuleSetBuild.java:1188)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1107)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:985)
at hudson.FilePath.act(FilePath.java:756) at
hudson.FilePath.act(FilePath.java:738) at
hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:691)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:527)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
at hudson.model.Run.run(Run.java:1362) at
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:401) at
hudson.model.ResourceController.execute(ResourceController.java:88) at
hudson.model.Executor.run(Executor.java:145) Archiving artifacts

Tony França

unread,
Jan 14, 2011, 3:01:08 PM1/14/11
to hudson...@googlegroups.com
I had the same issue build flex projects with flexmojos (packaging=swc)
I gave up using maven project type. Using shell projects instead.

Works for me...

Cheers
Tony

olive...@gmail.com

unread,
Jan 14, 2011, 3:25:31 PM1/14/11
to hudson...@googlegroups.com
Hello,
In Hudson Maven Plugin we are now using maven3 apis to parse poms.
So in maven3, legacy repositories are not supported anymore.
You have two solutions :
* use a repository manager (some of them ensure to "transform" a maven1 repo to maven2 one) and btw it's a good practice to use a repo manager and not have repositories in your pom
* change your java.net (to an other repository which contains the same artifacts : I guess one those here [1] will help you )

Thanks,

olive...@gmail.com

unread,
Jan 14, 2011, 3:57:26 PM1/14/11
to hudson...@googlegroups.com
Hello,
Yes it's a know issue [1]
I'm working on it. 
Not sure when I will have finished but stay tuned as I will ask guy you for testing :-) .

Forrest Xia

unread,
Jan 29, 2011, 2:42:41 AM1/29/11
to hudson...@googlegroups.com
Any news about this issue? thanks!

Forrest

olive...@gmail.com

unread,
Jan 29, 2011, 11:21:57 AM1/29/11
to hudson...@googlegroups.com
Oups sorry.
I have worked on other oss stuff recently.
I will have more cycles for hudson end of next week.

Thanks,

Mykola Nikishov

unread,
Jan 29, 2011, 2:02:53 PM1/29/11
to hudson...@googlegroups.com
On 14.01.11 20:32, Forrest Xia wrote:

> Does anyone see this error when using hudson build maven project?

> Parsing POMs


> ERROR: Failed to parse POMs
> org.apache.maven.project.ProjectBuildingException: Some problems were
> encountered while processing the POMs:

> [ERROR] Unknown packaging: car @ line 33, column 16

Your project uses 'car' packaging type but its implementation is missing?

[1]
http://www.sonatype.com/books/maven-book/reference/lifecycle-sect-other-packaging.html
[2]
http://www.sonatype.com/people/2009/08/create-a-customized-build-process-in-maven/,
'Working Around Known Issues'

Mykola Nikishov

unread,
Jan 29, 2011, 2:10:16 PM1/29/11
to hudson...@googlegroups.com
On 14.01.11 22:25, ol...@apache.org wrote:

> In Hudson Maven Plugin we are now using maven3 apis to parse poms.
> So in maven3, legacy repositories are not supported anymore.

Legacy layout should not be used directly anyway but it's a warning and
not an error:

>> [WARNING] 'repositories.repository.layout' for java.net uses the
unsupported value 'legacy', artifact resolution might fail.

It's POM parsing that failed and not an artifact resolution. So the real
problem is unknown packaging type 'car'.

Reply all
Reply to author
Forward
0 new messages