What I did was just: "New" -> "Maven Project". From the menu displayed the, I
selected "Create a simple project" and "Use default workspace location".
Then I specified the following fields:
Group-Id: com.day.cq5.myapp
Artifact: Id: ui
Name: CQ5 MyApp UI
Description: This is the UI module

That's it. Now the pom.xml is in error with message:
Multiple annotations found at this line:
    - Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution:
default-compile,
     phase: compile)
    - Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution:
default-
     testCompile, phase: test-compile)
    - CoreException: Could not calculate build plan: Plugin
org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies
could not be
     resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2:
ArtifactResolutionException: Failure to transfer
     org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from
http://repo.maven.apache.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. Original error: Could not transfer artifact
org.apache.maven.plugins:maven-
     compiler-plugin:pom:2.3.2 from/to central
(http://repo.maven.apache.org/maven2): null to
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/
     maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom

And it is not possible to add a java source folder and/or a ja package to the
project. I don't see how create a Maven Project with "packaging jar" - there is
now selection provided to choose.



Adrien Rivard <[email protected]> hat am 8. Februar 2013 um 17:25
geschrieben:

> 
> 
>  On Fri, Feb 8, 2013 at 5:01 PM, Matthew Piggott <[email protected]
> <mailto:[email protected]> > wrote:
>    > >    I don't know if the tutorial is incorrect, hasn't been followed or
>    > > is out of date.
> > 
> >  > 
>  With a quick scan they are a few things that seems totally wrong for a maven
> project
>  - changing the jdk version in the project properties => this must be
> specified only in the pom.xml file, eclipse will choose the appropriate jdk
> automatically
>  - copying the jars and adding them manually to the project classpath  => Make
> me wonder why are they using maven at all?
> 
>  That said your problem is probably not related to this. If you still have the
> error, I'd suggest to retry with a new project with packaing jar.
>  Send all the errors message if you still have some.
> 
>    > > 
> >    JDT will only allow you to create a Java package in a folder that has
> > been designated as a Java Source folder; as I mentioned in my previous
> > message this probably means you declared the wrong packaging type in the
> > maven pom.
> > 
> > 
> >    On 8 February 2013 10:22, Ulrich Schmidt
> > <[email protected] <mailto:[email protected]>
> > > wrote:
> >      > > > As I already said, I'm working on a sample: "CQ5: Developing with
> >      > > > Eclipse"
> > >      (
> > > http://dev.day.com/docs/en/cq/current/developing/developmenttools/developing_with_eclipse.html?cq_ck=1360336344421#Creating%20the%20Project%20Structure%20in%20Eclipse
> > > <http://dev.day.com/docs/en/cq/current/developing/developmenttools/developing_with_eclipse.html?cq_ck=1360336344421#Creating%20the%20Project%20Structure%20in%20Eclipse>
> > > ).
> > >      This sample requires plugin "Maven Integration for Eclipse" to be
> > > installed.
> > >      After creating a Maven Project I'm supposed to create a package
> > > within the
> > >      folder src/main/java - that's all.
> > >      The sample isn'T a new one - so I'm convinced that it should normally
> > > work. I
> > >      want to make sure that I did not miss something to install or
> > > activate which has
> > >      been forgotten in this sample.
> > >      Any idea what I can do here?
> > >      Ulrich
> > > 
> > >      Matthew Piggott < [email protected]
> > > <mailto:[email protected]> > hat am 8. Februar 2013 um 15:48
> > >      geschrieben:
> > > 
> > >      >  Sounds like you probably created a project with a packaging type
> > >      > other than
> > >      > jar.
> > >      >
> > >      >
> > >      >  On 8 February 2013 09:42, Ulrich Schmidt <
> > >      > [email protected]
> > >      > <mailto:[email protected]>
> > >      > <mailto: [email protected]
> > >      > <mailto:[email protected]> > > wrote:
> > >      >    > >    I'm starting with Maven and work on a sample which
> > >      >    > > requests me to
> > >      >    > > create a package within a Maven Project. But this fails;
> > >      >    > > Eclipse Juno
> > >      >    > > rejects the request with message "Source folder is not a
> > >      >    > > Java
> > >      >    > > project.".
> > >      > >    I've installed "Maven Integration for Eclipse" from the
> > >      > > Eclipse
> > >      > > Marketplace and started with an empty workspace.
> > >      > >    There is another problem pending: After creating the Maven
> > >      > > Project the
> > >      > > pom.xml-file is indcated as being in error. I will post this in
> > >      > > another
> > >      > > thread but want to mention it here; I don't think so but maybe it
> > >      > > helps
> > >      > > explaining the error in this post.
> > >      > >
> > >      > >    _______________________________________________
> > >      > >    m2e-users mailing list
> > >      > >     [email protected] <mailto:[email protected]> <mailto:
> > >      > > [email protected] <mailto:[email protected]> >
> > >      > >     https://dev.eclipse.org/mailman/listinfo/m2e-users
> > >      > > <https://dev.eclipse.org/mailman/listinfo/m2e-users>
> > >      > > < https://dev.eclipse.org/mailman/listinfo/m2e-users
> > >      > > <https://dev.eclipse.org/mailman/listinfo/m2e-users> >
> > >      > >  >
> > >      _______________________________________________
> > >      m2e-users mailing list
> > >      [email protected] <mailto:[email protected]>
> > >      https://dev.eclipse.org/mailman/listinfo/m2e-users
> > > <https://dev.eclipse.org/mailman/listinfo/m2e-users>
> > >    > > 
> >    _______________________________________________
> >    m2e-users mailing list
> >    [email protected] <mailto:[email protected]>
> >    https://dev.eclipse.org/mailman/listinfo/m2e-users
> > <https://dev.eclipse.org/mailman/listinfo/m2e-users>
> >  > 
> 
> 
>  --
>  Adrien Rivard
> 
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to