I tried adding two new dependencies/mappings for mc jars into the jboss/microcontainer
location to see how many to one type of mappings would work, and I'm seeing the
pom.xml fail to validate because of missing dependency versions. I don't see them for
the existing dependency elements, so is this because of the
org.jboss.jbossas:jboss-as-parent missing them?
| [starksm@succubus thirdparty]$ mvn package
| [INFO] Scanning for projects...
| [INFO] ------------------------------------------------------------------------
| [ERROR] FATAL ERROR
| [INFO] ------------------------------------------------------------------------
| [INFO] Error building POM (may not be this project's POM).
|
|
| Project ID: org.jboss.jbossas:jboss-as-thirdparty
| POM Location: /home/svn/JBossHead/jboss-head/thirdparty/pom.xml
| Validation Messages:
|
| [0] 'dependencies.dependency.version' is missing for
org.jboss.microcontainer:jboss-classloader
|
|
| Reason: Failed to validate POM for project org.jboss.jbossas:jboss-as-thirdparty at
/home/svn/JBossHead/jboss-head/thirdparty/pom.xml
|
|
| [INFO] ------------------------------------------------------------------------[INFO]
Trace
| org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project
org.jboss.jbossas:jboss-as-thirdparty at
/home/svn/JBossHead/jboss-head/thirdparty/pom.xml
| at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
| at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
| at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
| at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
| at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
| at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
| Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate
POM for project org.jboss.jbossas:jboss-as-thirdparty at
/home/svn/JBossHead/jboss-head/thirdparty/pom.xml
| at
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:998)
| at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:801)
| at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479)
| at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
| at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
| at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
| ... 11 more
|
The example fragments I added were:
| <mappedDependencies>
| <dependency>
| <groupId>corg.jboss.microcontainer</groupId>
| <artifactId>jboss-aop-mc-int</artifactId>
| <mapping>
| <componentId>jboss/microcontainer</componentId>
| <artifactId>jboss-aop-mc-int</artifactId>
| </mapping>
| </dependency>
| <dependency>
| <groupId>corg.jboss.microcontainer</groupId>
| <artifactId>jboss-classloader</artifactId>
| <mapping>
| <componentId>jboss/microcontainer</componentId>
| <artifactId>jboss-classloader</artifactId>
| </mapping>
| </dependency>
| </mappedDependencies>
| ...
| <dependency>
| <groupId>org.jboss.microcontainer</groupId>
| <artifactId>jboss-aop-mc-int</artifactId>
| </dependency>
| <dependency>
| <groupId>org.jboss.microcontainer</groupId>
| <artifactId>jboss-classloader</artifactId>
| </dependency>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132701#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...