You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Andy Seaborne <an...@apache.org> on 2012/02/22 20:27:43 UTC
POM
> svn co http://svn.apache.org/repos/asf/incubator/jena/Jena2/Fuseki/trunk/ Fuseki
> cd Fuseki/
> mvn eclipse:eclipse
Anything wrong with .classpath and .project?
m2e?
> It is probably something related to:
>
> <resources>
> <!-- Order of resource elements matters -->
> <resource>
> <filtering>false</filtering>
> <directory>src/main/resources</directory>
> </resource>
> <resource>
> <filtering>true</filtering>
> <directory>src/main/resources</directory>
> <includes>
> <include>org/apache/jena/fuseki/fuseki-properties.xml</include>
> </includes>
> </resource>
> </resources>
It's written like that so the files under META-INF do not get processed.
Otherwise I get (started after adding src/main/resources/META-INF/ to
get proper LICENSE, NOTICE and DEPENDENCIES files)
maven2:
[INFO] [remote-resources:process {execution: default}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error rendering velocity resource.
maven3;
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:process
(default) on project jena-fuseki: Error rendering velocity resource.
NullPointerException -> [Help 1]
>
> ... having two<resource>s pointing to the same<directory> somehow is
> confusing my Maven and/or is there a bug in maven-remote-resources-plugin!?
> Is this causing problems to someone else?
>
> This seems to fix the problem I am experiencing:
....
Re: POM
Posted by Paolo Castagna <ca...@googlemail.com>.
Andy Seaborne wrote:
>
>> How do you update .classpath file when a dependency in the pom.xml file
>> changes?
>
> Currently - manually!
Ack.
>
> But as eclipse:eclipse randomizes the order of, say, src folder, would
> trample on scala settings (not relevant here), does not include
> JavaSE-1.6 (?) and I have to remember to change the output folder with
> -D, that's just the price to pay.
>
> Automation only goes so far.
>
> Andy
>
>>
>> Paolo
Re: POM
Posted by Andy Seaborne <an...@apache.org>.
> How do you update .classpath file when a dependency in the pom.xml file
> changes?
Currently - manually!
But as eclipse:eclipse randomizes the order of, say, src folder, would
trample on scala settings (not relevant here), does not include
JavaSE-1.6 (?) and I have to remember to change the output folder with
-D, that's just the price to pay.
Automation only goes so far.
Andy
>
> Paolo
Re: POM
Posted by Paolo Castagna <ca...@googlemail.com>.
Andy Seaborne wrote:
>> svn co
>> http://svn.apache.org/repos/asf/incubator/jena/Jena2/Fuseki/trunk/ Fuseki
>> cd Fuseki/
>> mvn eclipse:eclipse
>
> Anything wrong with .classpath and .project?
I edited the pom.xml to remove/add a dependency (FreeMarker-->Velocity switch).
Then I run mvn eclipse:eclipse to update the .classpath file for Eclipse.
> m2e?
>
>> It is probably something related to:
>>
>> <resources>
>> <!-- Order of resource elements matters -->
>> <resource>
>> <filtering>false</filtering>
>> <directory>src/main/resources</directory>
>> </resource>
>> <resource>
>> <filtering>true</filtering>
>> <directory>src/main/resources</directory>
>> <includes>
>> <include>org/apache/jena/fuseki/fuseki-properties.xml</include>
>> </includes>
>> </resource>
>> </resources>
>
> It's written like that so the files under META-INF do not get processed.
>
> Otherwise I get (started after adding src/main/resources/META-INF/ to
> get proper LICENSE, NOTICE and DEPENDENCIES files)
>
> maven2:
> [INFO] [remote-resources:process {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error rendering velocity resource.
>
> maven3;
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:process
> (default) on project jena-fuseki: Error rendering velocity resource.
> NullPointerException -> [Help 1]
Ok, you see my issue/problem.
How do you update .classpath file when a dependency in the pom.xml file
changes?
Paolo
>
>
>
>>
>> ... having two<resource>s pointing to the same<directory> somehow is
>> confusing my Maven and/or is there a bug in
>> maven-remote-resources-plugin!?
>> Is this causing problems to someone else?
>>
>> This seems to fix the problem I am experiencing:
>
> ....